|
|||||||||
| 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
com.approximatrix.charting.DefaultChart
public class DefaultChart
The Default class to create a chart.
| Field Summary | |
|---|---|
static int |
LINEAR_X_LINEAR_Y
|
static int |
NO_COORDINATE_SYSTEM
|
| Fields inherited from class com.approximatrix.charting.AbstractChart |
|---|
bounds, coord, legend, MISSING_LEGEND_WIDTH, MISSING_TITLE_HEIGHT, model, rcModel, renderer, title |
| Fields inherited from class com.approximatrix.charting.render.AbstractRenderer |
|---|
listener |
| Constructor Summary | |
|---|---|
protected |
DefaultChart()
Creates new empty DefaultChart. |
|
DefaultChart(ChartDataModel model,
java.lang.String title)
Creates a new DefaultChart with the given model and title string and no coordinate system. |
|
DefaultChart(ChartDataModel model,
java.lang.String title,
int coord)
Creates a new DefaultChart with the given model and title string and a coordinate system. |
|
DefaultChart(ChartDataModel model,
java.lang.String title,
int coord,
java.lang.String xaxis,
java.lang.String yaxis)
Creates a new DefaultChart with the given model and title string and a coordinate system. |
| Method Summary | |
|---|---|
java.awt.Dimension |
getPreferredSize()
Should compute the preferred size of the 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. |
| Methods inherited from class com.approximatrix.charting.AbstractChart |
|---|
addChartRenderer, getBounds, getChartDataModel, getChartRenderer, getChartRenderer, getCoordSystem, getLegend, getRowColorModel, getTitle, paintDefault, setBounds, setChartDataModel, setChartRenderer, setCoordSystem, setLegend, setRowColorModel, setTitle |
| Methods inherited from class com.approximatrix.charting.render.AbstractRenderer |
|---|
addRenderChangeListener, clearRenderChangeListeners, fireRenderChangeEvent, getDirectRender, isDifferentBounds, removeRenderChangeListener, setDirectRender |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int LINEAR_X_LINEAR_Y
public static int NO_COORDINATE_SYSTEM
| Constructor Detail |
|---|
protected DefaultChart()
public DefaultChart(ChartDataModel model,
java.lang.String title)
model - the ChartDataModeltitle - the title String
public DefaultChart(ChartDataModel model,
java.lang.String title,
int coord)
model - the ChartDataModeltitle - the title Stringcoord - the id of the coordinate system configuration
public DefaultChart(ChartDataModel model,
java.lang.String title,
int coord,
java.lang.String xaxis,
java.lang.String yaxis)
model - the ChartDataModeltitle - the title Stringcoord - the id of the coordinate system configurationxaxis - the x-axis' unityaxis - the y-axis' unit| Method Detail |
|---|
public java.awt.Dimension getPreferredSize()
nullpublic void render(java.awt.Graphics2D g)
render in interface Chartrender in interface Rendererrender in class AbstractChartg - the Graphics2D object to paint in.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||