// $Revision: 1.9 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: StockBrowser // File: GraphDrawer.h // Build/Version: 1.0.0 // // Description: TGraphDrawer is abstract class that provides a protocol // for drawing into a TStandardGraph. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_GRAPHDRAWER #define TaligentSamples_GRAPHDRAWER class TGraphDrawer; #ifndef Taligent_TALIGENTTYPE #include #endif #ifndef Taligent_BASEGEOMETRY #include // Included for TGRect. #endif #ifndef TaligentSamples_GRAPHRANGE #include "GraphRange.h" #endif class TStandardGraph; class TGrafPort; //============================================================================== // TGraphDrawer class TGraphDrawer { public: TaligentTypeExtensionDeclarationsMacro_Abstract(TGraphDrawer) public: TGraphDrawer(); TGraphDrawer(const TGraphDrawer& source); virtual ~TGraphDrawer(); TGraphDrawer& operator=(const TGraphDrawer& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual const TStandardGraph& GetTargetGraph() const; virtual void SetTargetGraph(const TStandardGraph* graph); virtual void Prepare(const TStandardGraph& graph); virtual void DrawIntoGraph(TGrafPort& port) const = 0; virtual TGRect GetBounds() const = 0; private: enum {kOriginalVersion}; const TStandardGraph* fTargetGraph; }; #endif