Difference between revisions of "TAChart Chart"

From Free Pascal wiki
Jump to navigationJump to search
Line 38: Line 38:
 
StyleChanged <br>
 
StyleChanged <br>
 
ZoomFull <br>
 
ZoomFull <br>
 
 
# [[#Properties_id|'''Properties''']]
 
# [[#Properties_id|'''Properties''']]
 
* [[#Published_prop_id|'''Published''']]
 
* [[#Published_prop_id|'''Published''']]
Line 54: Line 53:
 
ShowHint <br>
 
ShowHint <br>
 
Visible <br>
 
Visible <br>
 
 
Drawer <br>
 
Drawer <br>
 
AutoFocus <br>
 
AutoFocus <br>
Line 99: Line 97:
 
YGraphMin <br>
 
YGraphMin <br>
 
# [[#Events_id|'''Events''']]
 
# [[#Events_id|'''Events''']]
 +
OnAfterDraw <br>
 +
OnAfterDrawBackground <br>
 +
OnAfterDrawBackWall <br>
 +
OnAfterPaint <br>
 +
OnBeforeDrawBackground <br>
 +
OnBeforeDrawBackWall <br>
 +
OnDrawReticule <br>
 +
OnExtentChanged <br>
 +
OnExtentChanging <br>
 +
OnClick <br>
 +
OnDblClick <br>
 +
OnDragDrop <br>
 +
OnDragOver <br>
 +
OnEndDrag <br>
 +
OnMouseDown <br>
 +
OnMouseMove <br>
 +
OnMouseUp <br>
 +
OnStartDrag <br>
 +
 +
 
* [[#Methods_Public_id|'''Public Methods''']]
 
* [[#Methods_Public_id|'''Public Methods''']]
 
** [[#Functions_id|'''Functions''']]
 
** [[#Functions_id|'''Functions''']]
Line 114: Line 132:
 
** [[#Unpublished_prop_id|'''Published''']]
 
** [[#Unpublished_prop_id|'''Published''']]
 
* [[#Events_id|'''Events''']]
 
* [[#Events_id|'''Events''']]
 
  
 
<br><br><br>
 
<br><br><br>
  
 
   public // Helpers for series drawing
 
   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;
 

Revision as of 16:15, 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

OnAfterDraw
OnAfterDrawBackground
OnAfterDrawBackWall
OnAfterPaint
OnBeforeDrawBackground
OnBeforeDrawBackWall
OnDrawReticule
OnExtentChanged
OnExtentChanging
OnClick
OnDblClick
OnDragDrop
OnDragOver
OnEndDrag
OnMouseDown
OnMouseMove
OnMouseUp
OnStartDrag





 public // Helpers for series drawing