Difference between revisions of "TAChart Chart"
From Lazarus wiki
Jump to navigationJump to searchLine 7: | Line 7: | ||
GetFullExtent <br> | GetFullExtent <br> | ||
GetLegendItems <br> | GetLegendItems <br> | ||
+ | GraphToImage <br> | ||
+ | ImageToGraph <br> | ||
+ | XGraphToImage <br> | ||
+ | XImageToGraph <br> | ||
+ | YGraphToImage <br> | ||
+ | YImageToGraph <br> | ||
# [[#IsPointInViewPort_id|'''IsPointInViewPort <F>''']] | # [[#IsPointInViewPort_id|'''IsPointInViewPort <F>''']] | ||
Line 35: | Line 41: | ||
# [[#Properties_id|'''Properties''']] | # [[#Properties_id|'''Properties''']] | ||
* [[#Published_prop_id|'''Published''']] | * [[#Published_prop_id|'''Published''']] | ||
+ | Drawer <br> | ||
+ | <br> | ||
+ | <br> | ||
+ | <br> | ||
+ | |||
* [[#Unpublished_prop_id|'''Unpublished''']] | * [[#Unpublished_prop_id|'''Unpublished''']] | ||
+ | ActiveToolIndex <br> | ||
+ | Broadcaster <br> | ||
+ | ChartHeight <br> | ||
+ | ChartWidth <br> | ||
+ | ClipRect <br> | ||
+ | CurrentExtent <br> | ||
+ | ExtentBroadcaster <br> | ||
+ | IsZoomed <br> | ||
+ | LogicalExtent <br> | ||
+ | OnChartPaint <br> | ||
+ | PrevLogicalExtent <br> | ||
+ | RenderingParams <br> | ||
+ | ReticulePos <br> | ||
+ | SeriesCount <br> | ||
+ | XGraphMax <br> | ||
+ | XGraphMin <br> | ||
+ | YGraphMax <br> | ||
+ | YGraphMin <br> | ||
+ | |||
+ | |||
# [[#Events_id|'''Events''']] | # [[#Events_id|'''Events''']] | ||
Line 77: | Line 108: | ||
function YImageToGraph(AY: Integer): Double; inline; | function YImageToGraph(AY: Integer): Double; inline; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
published | published |
Revision as of 16:06, 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
- IsPointInViewPort <F>
- EraseBackground
- Procedure GetChildren
- Procedure Paint
- Procedure SetChildOrder
- Procedure DrawLineHoriz
- Procedure DrawLineVert
- Procedure DrawOnCanvas
AddSeries
DeleteSeries
RemoveSeries
ClearSeries
CopyToClipboardBitmap
DisableRedrawing
Draw
DrawLegendOn
EnableRedrawing
PaintOnAuxCanvas
PaintOnCanvas
Prepare
SaveToBitmapFile
SaveToFile
StyleChanged
ZoomFull
Drawer
ActiveToolIndex
Broadcaster
ChartHeight
ChartWidth
ClipRect
CurrentExtent
ExtentBroadcaster
IsZoomed
LogicalExtent
OnChartPaint
PrevLogicalExtent
RenderingParams
ReticulePos
SeriesCount
XGraphMax
XGraphMin
YGraphMax
YGraphMin
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 property AutoFocus: Boolean read FAutoFocus write FAutoFocus default false; property AllowZoom: Boolean read FAllowZoom write FAllowZoom default true; property AntialiasingMode: TChartAntialiasingMode read FAntialiasingMode write SetAntialiasingMode default amDontCare; property AxisList: TChartAxisList read FAxisList write SetAxisList; property AxisVisible: Boolean read FAxisVisible write SetAxisVisible default true; property BackColor: TColor read FBackColor write SetBackColor default clBtnFace; property BottomAxis: TChartAxis index calBottom read GetAxisByAlign write SetAxisByAlign stored false; property Depth: TChartDistance read FDepth write SetDepth default 0; property ExpandPercentage: Integer read FExpandPercentage write SetExpandPercentage default 0; property Extent: TChartExtent read FExtent write SetExtent; property ExtentSizeLimit: TChartExtent read FExtentSizeLimit write SetExtentSizeLimit; property Foot: TChartTitle read FFoot write SetFoot; property Frame: TChartPen read FFrame write SetFrame; property GUIConnector: TChartGUIConnector read FGUIConnector write SetGUIConnector; property LeftAxis: TChartAxis index calLeft read GetAxisByAlign write SetAxisByAlign stored false; property Legend: TChartLegend read FLegend write SetLegend; property Margins: TChartMargins read FMargins write SetMargins; property MarginsExternal: TChartMargins read FMarginsExternal write SetMarginsExternal; property Proportional: Boolean read FProportional write SetProportional default false; property ReticuleMode: TReticuleMode read FReticuleMode write SetReticuleMode default rmNone; property Series: TChartSeriesList read FSeries; property Title: TChartTitle read FTitle write SetTitle; property Toolset: TBasicChartToolset read FToolset write SetToolset;
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 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 property OnClick; property OnDblClick; property OnDragDrop; property OnDragOver; property OnEndDrag; property OnMouseDown; property OnMouseMove; property OnMouseUp; property OnStartDrag;