// $Revision: 1.7 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: StockBrowser // File: AxisDrawer.h // Build/Version: 1.0.0 // // Description: TAxisDrawer class draws a set of axes in a TStandardGraph. // The axes default to black. The axes are drawn to be as // long as the return value from TStandardGraph::GetAxisLengths. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_AXISDRAWER #define TaligentSamples_AXISDRAWER class TAxisDrawer; #ifndef TaligentSamples_GRAPHDRAWER #include "GraphDrawer.h" #endif #ifndef TaligentSamples_GRAPHRANGE #include "GraphRange.h" // for GraphValue #endif #ifndef Taligent_RGBCOLOR #include #endif //============================================================================== // TAxisDrawer class TAxisDrawer : public TGraphDrawer { public: TaligentTypeExtensionDeclarationsMacro(TAxisDrawer) public: TAxisDrawer(); TAxisDrawer(GraphValue xAxisLocation); TAxisDrawer(const TAxisDrawer& source); virtual ~TAxisDrawer(); TAxisDrawer& operator=(const TAxisDrawer& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual const TRGBColor& GetAxisColor() const; virtual GraphValue GetXAxisLocation() const; virtual void SetAxisColor(const TRGBColor& color); virtual void SetXAxisLocation(GraphValue xAxisLocation); virtual void DrawIntoGraph(TGrafPort& port) const; virtual TGRect GetBounds() const; private: enum {kOriginalVersion}; TRGBColor fAxisColor; GraphValue fXAxisLocation; }; #endif