Hide Comments
Hide Comments

Comments (0)

Implements the properties and methods necessary to display a header or footer in a chart panel. This includes properties such as  Text and Font. The TRSChartHeader class extends the FMX.RS.ChartPanel.TRSChartImageArea class and redefines the Draw method to properly draw a header or footer.
 

Namespace: FMX.RS.ChartPanel

expandingInheritance Hierarchy

TInterfacedPersistent
  FMX.RS.ChartPanel.TRSChartGraphic
    FMX.RS.ChartPanel.TRSChartGraphicArea
      FMX.RS.ChartPanel.TRSChartImageArea
        FMX.RS.ChartPanel.TRSChartHeader
 

expandingSyntax

Delphi

type
  TRSChartHeader = class(TRSChartImageArea)
  end; 
 

expandingConstructors

 

Name

Description

public constructor

Create(TRSCustomChartPanel,Boolean)

Overloaded. Initializes a new instance of the TRSChartHeader class.

public destructor

Destroy

Represents the destructor of the TRSChartHeader class. (Overrides FMX.RS.ChartPanel.TRSChartImageArea.Destroy.)

Top

expandingProperties

 

Name

Description


published property

Alignment

Specifies how the Text is aligned within the header.

The following are possible values of TAlignment:
 


taLeftJustify

Text is left-justified: Lines all begin at the left edge of the header



taCenter

Text is centered in the header



taRightJustify

Text is right-justified: Lines all end at the right edge of the header

















































published property

Angle

Controls the angle in degrees at which the   Text is rotated within the header. Specify an angle between 0 and 359 for the rotation. An angle of 0 specifies a normal text label while an angle of 90 specifies a text label drawn complete rotated on its side.

published property

Brush

Represents property Brush.

published property

Font

Specifies the font used to draw each header's Text. Set Font to specify the font to use for writing text. The value of Font is a TFont object. Set the properties of the TFont object to specify the font face, color, size, style, and any other aspects of the font (except for the Angle or rotation).
 

published property

FontFill


published property

Height

Specifies the height in pixels of the chart header. It specifies the height of the rectangle that contains the chart header or footer in the chart panel. The height cannot be smaller than the Font's height.

published property

Image

Represents property Image.

published property

ImageOptions

Represents property ImageOptions.

protected property

IsHeader

Represents property IsHeader.

public property

OnChange

Occurs immediately after the chart graphic object changes. Write an OnChange event handler to take specific action when the chart graphic changes. The properties of the chart graphic reflect the new settings when OnChange occurs.

alert_cautionWarning

For chart graphics that a chart or chart panel creates, you shouldn't assign a handler to this event. The chart or chart panel has already assigned an event handler.

published property

Opacity

Represents property Opacity.

published property

Pen

Represents property Pen.

published property

Text

Specifies the text, or title caption, of the header or footer. This is the text actually written in the chart header

published property

Visible

Represents property Visible.

published property

Width

Specifies the width in pixels of the chart header. It specifies the width of the rectangle that contains the chart header or footer in the chart panel.

noteNote

At this time, this property is ignored.

Top

expandingMethods

 

Name

Description

public method

Assign(TPersistent)

Copies the contents of another similar object to the current object

alert_noteNotes to Inheritors

Most objects override Assign to handle the assignment of properties from similar objects. When overriding Assign, call the inherited method if the destination object cannot handle the assignment of properties from the class of the Source parameter

protected method

Changed

Overloaded. Represents method Changed. (Inherited from FMX.RS.ChartPanel.TRSChartGraphic.)

public method

Clone

Creates a "deep" copy of the chart graphic. It constructs a new chart graphic of the correct type and then calls the   Assign method to copy its properties to the new copy. (Inherited from FMX.RS.ChartPanel.TRSChartGraphic.)

protected method

DestRect(TCanvasRect)

Represents method DestRect(TCanvasRect). (Inherited from FMX.RS.ChartPanel.TRSChartImageArea.)

public method

Draw(TCanvas,TCanvasRect)

Overloaded. Paints the chart graphic to the specified Canvas in the specified location. It uses the current canvas' brush and pen. Use the Draw method to paint the chart graphic to any canvas and anywhere and with any size on the canvas.

alert_noteNotes to Inheritors

Descendant classes of TRSChartGraphic override the InternalDraw method to actually paint themselves.

public method

Draw(TCanvas,TCanvasRect,TRSChartAxis,TRSChartAxis)

Overloaded.  Paints the chart graphic to the specified Canvas in the specified location. It uses the current canvas' brush and pen. Use the Draw method to paint the chart graphic to any canvas and anywhere and with any size on the canvas.

The VertAxis and HorizAxis parameters can be used to provide point to pixel conversions (see FMX.RS.ChartPanel.TRSChartAxis ).

alert_noteNotes to Inheritors

Descendant classes of TRSChartGraphic override the InternalDraw method to actually paint themselves.

protected method

Drawing(TCanvas,TCanvasRect)

Represents method Drawing(TCanvas,TCanvasRect). (Overrides FMX.RS.ChartPanel.TRSChartGraphicArea.Drawing(TCanvas,TCanvasRect).)

protected method

Drawn(TCanvas,TCanvasRect)

Represents method Drawn(TCanvas,TCanvasRect). (Inherited from FMX.RS.ChartPanel.TRSChartGraphic.)

protected method

FreeNotification(TObject)

Represents method FreeNotification(TObject). (Inherited from FMX.RS.ChartPanel.TRSChartGraphic.)

protected method

Initialize

Represents method Initialize. (Overrides FMX.RS.ChartPanel.TRSChartImageArea.Initialize.)

protected method

InitializeEvents

Represents method InitializeEvents. (Overrides FMX.RS.ChartPanel.TRSChartImageArea.InitializeEvents.)

protected method

InternalDraw(TCanvas,TCanvasRect)

Represents method InternalDraw(TCanvas,TCanvasRect). (Overrides FMX.RS.ChartPanel.TRSChartImageArea.InternalDraw(TCanvas,TCanvasRect).)

protected method

SenderChanged(TObject)

Represents method SenderChanged(TObject). (Overrides FMX.RS.ChartPanel.TRSChartImageArea.SenderChanged(TObject).)

public method

TiledDraw(TCanvas,TCanvasRect,TTileGraphic,TCanvasPixel,TCanvasPixel)

Overloaded.  Tiles the image across the entire input rectangle.

The Image is drawn at full size from the top left of the ARect across and down until outside of the input rectangle. Use the overloaded TiledDraw methods to constrain the size of the Image.

public method

TiledDraw(TCanvas,TCanvasRect,TTileGraphic,TCanvasPixel,TCanvasPixel,TCanvasPixel,TCanvasPixel)

Overloaded.  Tiles the image across the entire input rectangle.

The Image is drawn at ImageWidth, ImageHeight size from the top left of the ARect across and down until outside of the input rectangle.

public method

TiledDraw(TCanvas,TCanvasRect,TTileGraphic,TCanvasRect)

Overloaded.  Tiles the image across the entire input rectangle.

The Image is drawn at ImageRect size from the top left of the ARect across and down until outside of the input rectangle.

protected method

VisibleChanged

Represents method VisibleChanged. (Overrides FMX.RS.ChartPanel.TRSChartImageArea.VisibleChanged.)

Top

expandingEvents

 

Name

Description

public event

OnDraw

Occurs just after the chart graphic is painted. Write an OnDraw event handler to take specific action when the chart graphic has finished painting. The OnDraw event also allows you to do custom painting after the chart graphic has painted. (Inherited from FMX.RS.ChartPanel.TRSChartGraphic.)

public event

OnDrawing

Occurs just before the chart graphic is painted. Write an OnDrawing event handler to take specific action when the chart graphic is about to paint. If the event handler sets the DoDraw parameter to False, the chart graphic will not be painted. The OnDraw event also allows you to do custom painting before the chart graphic has been painted. (Inherited from FMX.RS.ChartPanel.TRSChartGraphic.)

Top

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb