Difference between revisions of "TAChart Chart"

From Free Pascal wiki
Jump to navigationJump to search
Line 41: Line 41:
 
# [[#Properties_id|'''Properties''']]
 
# [[#Properties_id|'''Properties''']]
 
* [[#Published_prop_id|'''Published''']]
 
* [[#Published_prop_id|'''Published''']]
 +
Align <br>
 +
Anchors <br>
 +
BorderSpacing <br>
 +
Color <br>
 +
DoubleBuffered <br>
 +
DragCursor <br>
 +
DragMode <br>
 +
Enabled <br>
 +
ParentColor <br>
 +
ParentShowHint <br>
 +
PopupMenu <br>
 +
ShowHint <br>
 +
Visible <br>
 +
 
Drawer <br>
 
Drawer <br>
 
AutoFocus <br>
 
AutoFocus <br>
Line 65: Line 79:
 
Title <br>
 
Title <br>
 
Toolset <br>
 
Toolset <br>
 
 
<br>
 
<br>
 
<br>
 
 
 
* [[#Unpublished_prop_id|'''Unpublished''']]
 
* [[#Unpublished_prop_id|'''Unpublished''']]
 
ActiveToolIndex <br>
 
ActiveToolIndex <br>
Line 90: Line 98:
 
YGraphMax <br>
 
YGraphMax <br>
 
YGraphMin <br>
 
YGraphMin <br>
 
 
 
# [[#Events_id|'''Events''']]
 
# [[#Events_id|'''Events''']]
 
 
<br>
 
 
* [[#Methods_Public_id|'''Public Methods''']]
 
* [[#Methods_Public_id|'''Public Methods''']]
 
** [[#Functions_id|'''Functions''']]
 
** [[#Functions_id|'''Functions''']]
Line 154: Line 157:
 
       read FOnExtentChanging write FOnExtentChanging;
 
       read FOnExtentChanging write FOnExtentChanging;
  
  published
 
    property Align;
 
    property Anchors;
 
    property BorderSpacing;
 
    property Color default clBtnFace;
 
    property DoubleBuffered;
 
    property DragCursor;
 
    property DragMode;
 
    property Enabled;
 
    property ParentColor;
 
    property ParentShowHint;
 
    property PopupMenu;
 
    property ShowHint;
 
    property Visible;
 
  
 
   published
 
   published

Revision as of 16:12, 20 December 2013

The Chart is the component from where you control much of the behaviour of your diagrams.


Clone
SaveToImage
GetFullExtent
GetLegendItems
GraphToImage
ImageToGraph
XGraphToImage
XImageToGraph
YGraphToImage
YImageToGraph

  1. IsPointInViewPort <F>
  2. EraseBackground

  3. Procedure GetChildren
  4. Procedure Paint
  5. Procedure SetChildOrder
  6. Procedure DrawLineHoriz
  7. Procedure DrawLineVert
  8. Procedure DrawOnCanvas

AddSeries
DeleteSeries
RemoveSeries
ClearSeries
CopyToClipboardBitmap
DisableRedrawing
Draw
DrawLegendOn
EnableRedrawing
PaintOnAuxCanvas
PaintOnCanvas
Prepare
SaveToBitmapFile
SaveToFile
StyleChanged
ZoomFull

  1. Properties

Align
Anchors
BorderSpacing
Color
DoubleBuffered
DragCursor
DragMode
Enabled
ParentColor
ParentShowHint
PopupMenu
ShowHint
Visible

Drawer
AutoFocus
AllowZoom
AntialiasingMode
AxisList
AxisVisible
BackColor
BottomAxis
Depth
ExpandPercentage
Extent
ExtentSizeLimit
Foot
Frame
GUIConnector
LeftAxis
Legend
Margins
MarginsExternal
Proportional
ReticuleMode
Series
Title
Toolset

ActiveToolIndex
Broadcaster
ChartHeight
ChartWidth
ClipRect
CurrentExtent
ExtentBroadcaster
IsZoomed
LogicalExtent
OnChartPaint
PrevLogicalExtent
RenderingParams
ReticulePos
SeriesCount
XGraphMax
XGraphMin
YGraphMax
YGraphMin

  1. Events





 public // Helpers for series drawing
   procedure DrawLineHoriz(ADrawer: IChartDrawer; AY: Integer);
   procedure DrawLineVert(ADrawer: IChartDrawer; AX: Integer);
   procedure DrawOnCanvas(Rect: TRect; ACanvas: TCanvas); deprecated;
   function IsPointInViewPort(const AP: TDoublePoint): Boolean;
 public
   property Drawer: IChartDrawer read FConnectorData.FDrawer;
 public // Coordinate conversion
   function GraphToImage(const AGraphPoint: TDoublePoint): TPoint;
   function ImageToGraph(const APoint: TPoint): TDoublePoint; overload;
   function ImageToGraph(const AX, AY: Integer): TDoublePoint; overload;
   function XGraphToImage(AX: Double): Integer; inline;
   function XImageToGraph(AX: Integer): Double; inline;
   function YGraphToImage(AY: Double): Integer; inline;
   function YImageToGraph(AY: Integer): Double; inline;


 published
 published
   property OnAfterDraw: TDrawEvent read FOnAfterDraw write SetOnAfterDraw;
   property OnAfterDrawBackground: TChartAfterDrawEvent
     read FOnAfterDrawBackground write SetOnAfterDrawBackground;
   property OnAfterDrawBackWall: TChartAfterDrawEvent
     read FOnAfterDrawBackWall write SetOnAfterDrawBackWall;
   property OnAfterPaint: TChartEvent read FOnAfterPaint write FOnAfterPaint;
   property OnBeforeDrawBackground: TChartBeforeDrawEvent
     read FOnBeforeDrawBackground write SetOnBeforeDrawBackground;
   property OnBeforeDrawBackWall: TChartBeforeDrawEvent
     read FOnBeforeDrawBackWall write SetOnBeforeDrawBackWall;
   property OnDrawReticule: TDrawReticuleEvent
     read FOnDrawReticule write SetOnDrawReticule;
   property OnExtentChanged: TChartEvent
     read FOnExtentChanged write FOnExtentChanged;
   property OnExtentChanging: TChartEvent
     read FOnExtentChanging write FOnExtentChanging;


 published
   property OnClick;
   property OnDblClick;
   property OnDragDrop;
   property OnDragOver;
   property OnEndDrag;
   property OnMouseDown;
   property OnMouseMove;
   property OnMouseUp;
   property OnStartDrag;