Hide Comments
Hide Comments

Comments (0)

Encapsulates a list of FMX.RS.ChartPanel.TRSCustomChart components. The FMX.RS.ChartPanel.TRSCustomChartPanel component uses this class (    Charts property) to hold what charts to display in the panel. The FMX.RS.ChartPanel.TRSChartAxis class uses this class ( Charts property) to hold the charts that are associated with the axis.

noteNote

The order of the charts in the list matters. For the chart panel, the chart at Index 0 is drawn first, and then every chart is drawn over it. For the chart axis, the first chart defines the labels.

Namespace: FMX.RS.ChartPanel

expandingInheritance Hierarchy

TRSComponentList
  FMX.RS.ChartPanel.TRSChartList
 

expandingSyntax

Delphi

type 
  TRSChartList = class(TRSComponentList) 
  end;  
 

expandingConstructors

 

Name

Description

public constructor

Create(TRSCustomChartPanel)

Constructs the chart list and sets the Owner property to the AOwner parameter.

Top

expandingProperties

 

Name

Description

public property

ActiveChart

Returns the active chart in the chart list.

The ActiveChart is the most important chart in the chart list. It is used by the FMX.RS.ChartPanel.TRSChartAxis class to determine the LabelStyle and if it is IsDateTime axis. It is also used by the legend ( FMX.RS.ChartPanel.TRSChartLegend). The ActiveChart must be a visible chart.
 

public property

Items[Integer]

Provides direct access to the charts in the list. Use Items to directly access a chart in the list. Index identifies each chart by its position in the list.

Items is the default property of TRSChartList. That means you can omit the property name. Thus, instead of writing ChartList.Items[i], you can write ChartList[i]
 
 

public property

NumLegendVisible

Returns the number of visible charts in the list (e.g., FMX.RS.ChartPanel.TRSCustomChart.Visible is true) that should be shown in a legend (coShowInLegend in Options)

public property

NumVisible

Returns the number of visible charts in the list (e.g., FMX.RS.ChartPanel.TRSCustomChart.Visible is true).

public property

Owner

Returns the chart panel that owns the chart list. If the chart list is part of a chart axis ( FMX.RS.ChartPanel.TRSChartAxis), this property returns nil.
 

Top

expandingMethods

 

Name

Description

public method

Add(TRSCustomChart)

Adds a chart to the list. Call Add to add a chart to the list. The Add method returns the Index where the new Item is located.

If you add a chart to the TRSCustomChartPanel.Charts list, the chart's Panel property is changed to the panel and it is displayed. If you add a chart to a TRSChartAxis.Charts list, the chart's HorizontalAxis or VerticalAxis is assigned to that chart axis.

The order of the charts in the list matters. For the chart panel, the chart at Index 0 is drawn first, and then every chart is drawn over it. For the chart axis, the first chart defines the labels.
 

public method

AddOne(TRSCustomChart)

Adds a chart to the list. Call AddOne to add a chart to the list. The Add method returns the Index where the new Item is located. The chart is only added to the list if it is not already in the list.

If you add a chart to the TRSCustomChartPanel.Charts list, the chart's Panel property is changed to the panel and it is displayed. If you add a chart to a TRSChartAxis.Charts list, the chart's HorizontalAxis or VerticalAxis is assigned to that chart axis.

The order of the charts in the list matters. For the chart panel, the chart at Index 0 is drawn first, and then every chart is drawn over it. For the chart axis, the first chart defines the labels.
 

public method

Extract(TRSCustomChart)

Removes the chart from the chart list. The method removes the specified chart from the list. Call Extract to remove a chart from the list. After a chart is removed, all the charts that follow it are moved up in index position and Count is decremented

public method

FindGroupPrevious(TRSCustomChart)

Returns the previous chart in the group that is visible, i.e., find a chart earlier in the list which is Visible and Group = AChart.Group

Used when stacking charts

public method

FindVisible

Returns the first visible chart in the list (e.g., FMX.RS.ChartPanel.TRSCustomChart.Visible is true).

public method

First

Returns the first chart in the list. Call First to obtain the first chart in the list.

public method

GetEnumerator

Represents method GetEnumerator.

public method

IndexOf(TRSCustomChart)

Returns the index of a chart. Call IndexOf to obtain the index of a chart in the list. If the Item is not found, this method returns -1.

public method

Insert(Integer,TRSCustomChart)

Inserts a chart into the list at a specified position. Call Insert to insert a chart into the list. AChart is the chart to insert, and Index indicates the position (zero-offset) where the chart should be added.

The order of the charts in the list matters. For the chart panel, the chart at Index 0 is drawn first, and then every chart is drawn over it. For the chart axis, the first chart defines the labels.
 
 

public method

Last

Returns the last chart in the list. Call Last to obtain the last chart in the list.

protected method

Notify(TComponentListInstance,TRSListNotification)

Represents method Notify(TComponentListInstance,TRSListNotification).

public method

Remove(TRSCustomChart)

Deletes the first reference to the Chart parameter from the Items array. Call Remove to remove a specific chart from the Items array when its index is unknown. The value returned is the index of the item in the Items array before it was removed. After an item is removed, all the items that follow it are moved up in index position and the Count is reduced by one.

If the Items array contains more than one copy of the item, only the first copy is deleted.
 

protected method

VisibleChanged(TRSCustomChart)

Represents method VisibleChanged(TRSCustomChart).

Top

expandingEvents

 

Name

Description

protected event

OnNotify

Represents property OnNotify.

Top

expandingSee Also

Comments (0)

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