|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Chart
This class defines the methods to access a chart. It provides methods to set the multiple chart components. You can set multiple ChartRenderer giving them a z-coordinate. The ChartRenderer that is rendered first is the one with the lowest z-coordinate.
| Method Summary | |
|---|---|
void |
addChartRenderer(AbstractChartRenderer renderer,
int z)
Adds a ChartRenderer with a specific z-coordinate. |
java.awt.Rectangle |
getBounds()
Returns the Bounds for the Chart. |
ChartDataModel |
getChartDataModel()
Returns the ChartDataModel. |
java.util.Map |
getChartRenderer()
Returns the Map of all ChartRenderers. |
AbstractChartRenderer |
getChartRenderer(int z)
Returns the ChartRenderer with a specific z-coordinate. |
CoordSystem |
getCoordSystem()
Returns the coordinate system. |
Legend |
getLegend()
Returns this chart's legend. |
Title |
getTitle()
Returns the title for this chart. |
void |
render(java.awt.Graphics2D g)
Does the layout of the title, legend and coordinate system and calls the render method of all those including the ChartRenderers. |
void |
setBounds(java.awt.Rectangle r)
Sets the Bounds for this Chart. |
void |
setChartDataModel(ChartDataModel model)
Stores the ChartDataModel for this Chart. |
void |
setChartRenderer(java.util.Map renderer)
Sets the Map with all ChartRenderers. |
void |
setCoordSystem(CoordSystem c)
Sets the coordinate system for this chart, which can be null if the ChartRenderer doesn't need a coordinate system, e.g. |
void |
setLegend(Legend l)
Sets the legend for this chart. |
void |
setTitle(Title t)
Sets the title for this chart. |
| Method Detail |
|---|
void setLegend(Legend l)
l - The Legend this Chart contains.Legend getLegend()
null.void setTitle(Title t)
t - This Chart's Title.Title getTitle()
null.void setCoordSystem(CoordSystem c)
c - The Coordinate System for the Chart.CoordSystem getCoordSystem()
null.void setChartRenderer(java.util.Map renderer)
renderer - The Map of ChartRenderers.java.util.Map getChartRenderer()
void addChartRenderer(AbstractChartRenderer renderer,
int z)
renderer - the ChartRendererz - its z-coordinate.AbstractChartRenderer getChartRenderer(int z)
z - the z-coordinate of the desired ChartRenderer.
null if none has been found.void setChartDataModel(ChartDataModel model)
model - the ChartDataModelChartDataModel getChartDataModel()
void setBounds(java.awt.Rectangle r)
r - the Rectangle object defining the boundsjava.awt.Rectangle getBounds()
void render(java.awt.Graphics2D g)
g - the Graphics2D object to paint in.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||