|
|||||||||
| 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.ExtendedChart
public class ExtendedChart
| Field Summary | |
|---|---|
static int |
LINEAR_X_LINEAR_Y
Constant to specify a linear xy coordinate system during chart construction |
static int |
NO_COORDINATE_SYSTEM
Present for future expansion |
| Fields inherited from class com.approximatrix.charting.AbstractChart |
|---|
bounds, coord, legend, model, rcModel, renderer, title |
| Fields inherited from class com.approximatrix.charting.render.AbstractRenderer |
|---|
listener |
| Constructor Summary | |
|---|---|
protected |
ExtendedChart()
Creates new empty DefaultChart. |
|
ExtendedChart(ChartDataModel model,
java.lang.String title)
Creates a new DefaultChart with the given model and title string and no coordinate system. |
|
ExtendedChart(ChartDataModel model,
java.lang.String title,
int coord)
Creates a new DefaultChart with the given model and title string and a coordinate system. |
|
ExtendedChart(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. |
void |
zoom(java.awt.Rectangle area)
Zooms in on a specified rectangle area of the chart by setting the max and min values to display. |
| 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 final int LINEAR_X_LINEAR_Y
public static final int NO_COORDINATE_SYSTEM
| Constructor Detail |
|---|
protected ExtendedChart()
public ExtendedChart(ChartDataModel model,
java.lang.String title)
model - the ChartDataModeltitle - the title String
public ExtendedChart(ChartDataModel model,
java.lang.String title,
int coord)
model - the ChartDataModeltitle - the title Stringcoord - the id of the coordinate system configuration
public ExtendedChart(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.public void zoom(java.awt.Rectangle area)
area - A Rectangle specifying the area in graphics coordinates to zoom
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||