|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.render.AbstractRenderer
com.approximatrix.charting.AbstractChart
public abstract class AbstractChart
Implements the standard getter and setter methods for a chart.
| Field Summary | |
|---|---|
protected java.awt.Rectangle |
bounds
|
protected CoordSystem |
coord
|
protected Legend |
legend
|
protected ChartDataModel |
model
|
protected RowColorModel |
rcModel
|
protected java.util.HashMap |
renderer
|
protected Title |
title
|
| Constructor Summary | |
|---|---|
AbstractChart()
Creates new AbstractChart |
|
| Method Summary | |
|---|---|
void |
addChartRenderer(AbstractChartRenderer render,
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. |
RowColorModel |
getRowColorModel()
Returns the RowColorModel for this chart. |
Title |
getTitle()
Returns the title for this chart. |
void |
paintDefault(java.awt.Graphics2D g)
This method is called by the paint method to do the actual painting. |
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 render)
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 |
setRowColorModel(RowColorModel rcm)
Sets the RowColorModel for this chart. |
void |
setTitle(Title t)
Sets the title for this chart. |
| Methods inherited from class com.approximatrix.charting.render.AbstractRenderer |
|---|
getDirectRender, setDirectRender |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.approximatrix.charting.render.Renderer |
|---|
getPreferredSize |
| Field Detail |
|---|
protected java.util.HashMap renderer
protected java.awt.Rectangle bounds
protected Legend legend
protected CoordSystem coord
protected Title title
protected RowColorModel rcModel
protected ChartDataModel model
| Constructor Detail |
|---|
public AbstractChart()
| Method Detail |
|---|
public void addChartRenderer(AbstractChartRenderer render,
int z)
addChartRenderer in interface Chartrender - the ChartRendererz - the z-coordinate, the highest coordinate is in front.public java.util.Map getChartRenderer()
getChartRenderer in interface Chartjava.util.Map with all ChartRendererspublic AbstractChartRenderer getChartRenderer(int z)
getChartRenderer in interface Chartz - the z-coordinate
public CoordSystem getCoordSystem()
getCoordSystem in interface Chartpublic Legend getLegend()
getLegend in interface Chartpublic Title getTitle()
getTitle in interface Chartpublic RowColorModel getRowColorModel()
public void setChartRenderer(java.util.Map render)
setChartRenderer in interface Chartrender - a java.util.Map with all ChartRenderers.public void setCoordSystem(CoordSystem c)
setCoordSystem in interface Chartc - the CoordSystem objectpublic void setLegend(Legend l)
setLegend in interface Chartl - the Legendpublic void setTitle(Title t)
setTitle in interface Chartt - the Title objectpublic void setRowColorModel(RowColorModel rcm)
rcm - the new RowColorModelpublic void setChartDataModel(ChartDataModel model)
setChartDataModel in interface Chartmodel - the ChartDataModelpublic ChartDataModel getChartDataModel()
getChartDataModel in interface Chartpublic void setBounds(java.awt.Rectangle r)
setBounds in interface ChartsetBounds in interface RenderersetBounds in class AbstractRendererr - the Rectangle object defining this chart's bounds.public java.awt.Rectangle getBounds()
getBounds in interface ChartgetBounds in interface RenderergetBounds in class AbstractRendererRectangle object defining this chart's bounds.public void paintDefault(java.awt.Graphics2D g)
paintDefault in class AbstractRendererg - the Graphics2D object to paint in.public void render(java.awt.Graphics2D g)
render in interface Chartrender in interface Rendererrender in class AbstractRendererg - the Graphics2D object to paint in.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||