ChartDirector 7.0 (Java Edition)

ChartViewer.setChart


Usage

public void setChart(BaseChart c)

Description

Sets a BaseChart object for display.

When a BaseChart object is set into the ChartViewer, the ChartViewer will display the chart image, and also collect various chart metrics for supporting viewports. A reference to the BaseChart object will be stored internally, so that it can be retrieved later using this property.

ChartViewer internally does not need the stored BaseChart reference after the chart image is displayed. In systems with very limited memory (such as embedded systems), if the stored BaseChart reference is not needed, the ChartViewer.disposeReference may be used to dispose the reference, so that it may be garbage collected.

Arguments

ArgumentDefaultDescription
c(Mandatory)The BaseChart object to be displayed.

Return Value

None