Hide Comments
Hide Comments

Comments (0)

Extends the RSChartPanel.TRSChartGraphic class to provide additional properties that are useful for a chart layer. A chart layer is similar to layers in Adobe Photoshop. The RSChartPanel.TRSChartPanel component displays itself using layers: there is a background layer that is painted first followed by a gradient layer which is painted on top (and can obscure) the background layer. Then, the charts and related graphical elements are displayed (e.g., header, footer, legend, axes). Finally, the TRSChartPanel paints a foreground layer on top of everything. The TRSChartLayer class provides the graphical properties for the Background and Foreground layers.

Namespace: RSChartPanel

expandingInheritance Hierarchy

TPersistent
  RSChartPanel.TRSChartGraphic
    RSChartPanel.TRSChartLayer
 

expandingSyntax

Delphi

type
  TRSChartLayer = class(TRSChartGraphic)
  end; 
 

expandingConstructors

 

Name

Description

public constructor

Create

Initializes a new instance of the TRSChartGraphic class. (Inherited from RSChartPanel.TRSChartGraphic.)

public destructor

Destroy

Represents the destructor of the TRSChartLayer class. (Overrides RSChartPanel.TRSChartGraphic.Destroy.)

Top

expandingProperties

 

Name

Description

published property

Brush

Determines the color and pattern for filling graphical shapes on the layer. Set the Brush property to specify the color and pattern to use when filling in graphical shapes. The value of Brush is a TBrush VCL or FMX object. Set the properties of the TBrush object to specify the color and pattern or bitmap to use when filling in spaces on the layer.
 

protected property

HorizontalAxis

Represents property HorizontalAxis.

published property

Image

Specifies the picture that appears in the layer. Use Image to specify the image for the TRSChartLayer object. Image is a reference to a TRSPicture object (TPicture in VCL and TBitmap in FMX). Use properties and methods of TRSPicture to specify a bitmap, icon, metafile, or user-defined graphic to be displayed by the chart layer. The     ImageMode property specifies how the Image will be drawn within the bounds of the chart layer.

Setting Image at design time brings up the Picture Editor, which can be used to specify the file that contains the image.
 

published property

ImageMode

Controls how the Image is painted within the layer. See RSChartConsts|TImageMode for more information.

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

Specifies the kind of pen the chart graphic area uses for drawing lines and outlining shapes in the layer. Set Pen to specify the pen to use for drawing lines and outlining shapes in the layer. The value of Pen is a TRSPen object (TPen in VCL, and TStrokeBrush in FMX). Set the properties of the TRSPen object to specify the color, style, width, and mode of the pen

published property

Transparent

Specifies whether the layer is transparent or not. If the layer is not transparent, it is filled with the   Brush before drawing any Image.

protected property

VerticalAxis

Represents property VerticalAxis.

published property

Visible

Represents property Visible.

published property

Zoomable

Specifies whether the layer is zoomable or not. If the layer is not zoomable, when you zoom the chart, the layer is still drawn as if unzoomed.

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 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)

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

protected method

Drawn(TCanvas,TCanvasRect)

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

protected method

Initialize

Represents method Initialize. (Overrides RSChartPanel.TRSChartGraphic.Initialize.)

protected method

InitializeEvents

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

protected method

InternalDraw(TCanvas,TCanvasRect)

Represents method InternalDraw(TCanvas,TCanvasRect). (Overrides RSChartPanel.TRSChartGraphic.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

expandingSee Also

Comments (0)

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