Hide Comments
Hide Comments

Comments (0)

Extends the RSCharts.TRSCustomChartPointInfo class to provide the default property values for shapes in a shape chart ( RSCharts.TRSCustomShapeChart or RSCharts.TRSShapeChart component). When you create a new shape in a shape chart, the new shape value ( RSCharts.TRSShapeChartValue ) is initialized to the DefaultShape of the shape chart.

noteNote

Unlike the TRSChartPointInfo class for the TRSCustomPointChart component, this class defines the default appearance of the shape. Each shape value can be modified after it is created.

Namespace: RSCharts

expandingInheritance Hierarchy

TPersistent
  RSChartPanel.TRSChartGraphic
    RSChartPanel.TRSChartGraphicArea
      RSCharts.TRSCustomChartPointInfo
        RSCharts.TRSCustomDefaultShape
          RSCharts.TRSDefaultShape
 

expandingSyntax

Delphi

type
  TRSCustomDefaultShape = class(TRSCustomChartPointInfo)
  end; 
 

expandingConstructors

 

Name

Description

public constructor

Create(TRSCustomPointChart)

Overloaded. Initializes a new instance of the TRSCustomChartPointInfo class. (Inherited from RSCharts.TRSCustomChartPointInfo.)

public destructor

Destroy

Represents the destructor of the TRSCustomDefaultShape class. (Overrides RSChartPanel.TRSChartGraphicArea.Destroy.)

Top

expandingProperties

 

Name

Description

protected property

Alignment

Specifies the location of the Caption within the 2D boundaries of the shape. Use the Alignment property to position your text within the shape.

protected property

Brush

Represents property Brush. (Inherited from RSCharts.TRSCustomChartPointInfo.)

protected property

DefaultStyle

Defines the default geometric shape of a point value. This style is the fallback style when the Style cannot be drawn, in other words, if the Style is ssImage and there is not an image available, the DefaultStyle is used instead. The shape is drawn as large as possible within the bounding rectangle (defined with   Height and   Width properties).
 (Inherited from RSCharts.TRSCustomChartPointInfo.)

protected property

Font

Specifies the font used to draw each shape's Caption. 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.
 

protected property

Height

The Height and Width properties define the height and width of all points in a point chart ( RSCharts.TRSCustomPointChart). The value is in pixels. Use the Height and Width property to specify the point size in pixels for all points in a point chart.
 (Inherited from RSCharts.TRSCustomChartPointInfo.)

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.

public property

Opacity

Specifies the opacity of the graphic when drawn. The opacity is a value between 0 (invisible) and 1 (fully opaque). Any value in-between controls the transparency of the value.

alert_cautionImportant Note

This is an FMX only feature. Any value > 0 is drawn fully opaque in the VCL version

public property

Owner

Represents property Owner. (Inherited from RSCharts.TRSCustomChartPointInfo.)

protected property

Pen

Represents property Pen. (Inherited from RSCharts.TRSCustomChartPointInfo.)

protected property

Style

Defines the geometric shape used for every point value in a point chart ( RSCharts.TRSCustomPointChart). In general, this Style defines the shape of every point in the point chart. However, if the Style is ssImage, in cases where there is no image, the   DefaultStyle will be used instead. The shape is drawn as large as possible within the bounding rectangle (defined with   Height and   Width properties). (Inherited from RSCharts.TRSCustomChartPointInfo.)

public property

Visible

Indicates whether this graphic should be drawn or not. The chart panel uses the Visible property to determine if it should call the Draw method for the chart graphic.
 (Inherited from RSChartPanel.TRSChartGraphic.)

protected property

Width

The Height and Width properties define the height and width of all points in a point chart ( RSCharts.TRSCustomPointChart). The value is in pixels. Use the Height and Width property to specify the point size in pixels for all points in a point chart.
 (Inherited from RSCharts.TRSCustomChartPointInfo.)

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

AssignTo(TPersistent)

Represents method AssignTo(TPersistent).

protected method

Changed

Overloaded. Represents method Changed. (Inherited from RSChartPanel.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 RSChartPanel.TRSChartGraphic.)

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 RSChartPanel.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 RSChartPanel.TRSChartGraphic.Drawing(TCanvas,TCanvasRect).)

protected method

Drawn(TCanvas,TCanvasRect)

Represents method Drawn(TCanvas,TCanvasRect). (Inherited from RSChartPanel.TRSChartGraphic.)

protected method

DrawPoint(TCanvas,TCanvasRect,Single,TImageList,Integer)

Represents method DrawPoint(TCanvas,TCanvasRect,Single,TImageList,Integer). (Inherited from RSCharts.TRSCustomChartPointInfo.)

protected method

Initialize

Represents method Initialize. (Overrides RSCharts.TRSCustomChartPointInfo.Initialize.)

protected method

InitializeEvents

Represents method InitializeEvents. (Overrides RSChartPanel.TRSChartGraphicArea.InitializeEvents.)

protected method

InternalDraw(TCanvas,TCanvasRect)

Represents method InternalDraw(TCanvas,TCanvasRect). (Overrides RSChartPanel.TRSChartGraphicArea.InternalDraw(TCanvas,TCanvasRect).)

protected method

SenderChanged(TObject)

Overloaded. Represents method SenderChanged(TObject). (Inherited from RSChartPanel.TRSChartGraphic.)

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. (Inherited from RSChartPanel.TRSChartGraphic.)

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 RSChartPanel.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 RSChartPanel.TRSChartGraphic.)

Top

expandingFields

 

Name

Description

protected field

FDefaultStyle

Represents field FDefaultStyle. (Inherited from RSCharts.TRSCustomChartPointInfo.)

protected field

FHeight

Represents field FHeight. (Inherited from RSCharts.TRSCustomChartPointInfo.)

protected field

FStyle

Represents field FStyle. (Inherited from RSCharts.TRSCustomChartPointInfo.)

protected field

FWidth

Represents field FWidth. (Inherited from RSCharts.TRSCustomChartPointInfo.)

Top

expandingSee Also

Comments (0)

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