|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.AbstractView<PaintTags>
lt.monarch.chart.AbstractChart<PaintTags,GeneralProjector>
lt.monarch.chart.MultiSeriesChartBase<ChartPaintTags,Projector2D>
lt.monarch.chart.chart2D.Chart2D
public class Chart2D extends MultiSeriesChartBase<ChartPaintTags,Projector2D>
Manages 2-dimensional chart objects
| Modifier and Type | Field and Description |
|---|---|
protected Projector |
projector
a projector used to map Point2D objects into the chart area |
| Fields inherited from class lt.monarch.chart.AbstractChart |
|---|
draftMode, locale, plugins |
| Fields inherited from class lt.monarch.chart.AbstractView |
|---|
layoutInvalid, paintStyle, style |
| Constructor and Description |
|---|
Chart2D()
Constructs a new Chart2D. |
Chart2D(Projector2D projector)
Constructs a new Chart2D with the specified projector. |
| Modifier and Type | Method and Description |
|---|---|
void |
addBottomXAxis(Axis2DX ax)
Deprecated. use addXAxis (Axis2DX, Alignment) |
void |
addLeftYAxis(Axis2DY ay)
Deprecated. use addYAxis (Axis2DY, Alignment) |
void |
addRightYAxis(Axis2DY ay)
Deprecated. use addYAxis (Axis2DY, Alignment) |
void |
addTopXAxis(Axis2DX ax)
Deprecated. use addXAxis (Axis2DX, Alignment) |
void |
addXAxis(Axis2DX ax,
Alignment axisPosition)
Add one more X axis, which should appear at the specified side of the chart. |
void |
addYAxis(Axis2DY ay,
Alignment axisPosition)
Add one more Y axis, which should appear at the specified side of the chart. |
void |
dispose()
Cleans this chart object. |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
ChartBreakLine |
getBreakLine()
Returns chart break line. |
double |
getChartAreaMargin(Alignment alignment)
Gets chart area margin. |
double |
getMinAxisWidth(Alignment alignment)
Gets minimum axis width. |
Projector2D |
getProjector()
Returns a projector used to map Point2D objects into the chart area. |
float |
getStackedXAxisMargin()
Gets margin between stacked x axis. |
float |
getStackedYAxisMargin()
Gets margin between stacked y axis. |
Axis2D[] |
getXAxes()
Returns all x axes that are added to the chart |
Axis2D[] |
getYAxes()
Returns all y axes that are added to the chart |
protected void |
layout(AbstractGraphics g)
Layouts chart objects |
protected void |
paintChart(AbstractGraphics g)
Paints the chart. |
Projector2D |
projector()
Deprecated. use getProjector() |
void |
removeBottomXAxis(Axis ax)
Deprecated. use removeXAxis (Axis2DY, Alignment) |
void |
removeLeftYAxis(Axis ay)
Deprecated. use removeYAxis (Axis2DY, Alignment) |
void |
removeRightYAxis(Axis ay)
Deprecated. use removeYAxis (Axis2DY, Alignment) |
void |
removeTopXAxis(Axis ax)
Deprecated. use removeXAxis (Axis2DY, Alignment) |
void |
removeXAxis(Axis2DX ax,
Alignment axisPosition)
Removes X axis on the specified side of the chart. |
void |
removeYAxis(Axis2DY ay,
Alignment axisPosition)
Removes Y axis on the specified side of the chart. |
void |
setBottomXAxis(Axis2DX ax)
Deprecated. use setXAxis (Axis2DX, Alignment) |
void |
setBreakLine(ChartBreakLine breakLine_)
Sets chart break line. |
void |
setChartAreaMargin(double width,
Alignment alignment)
Sets chart area margin. |
void |
setLeftYAxis(Axis2DY ay)
Deprecated. use setYAxis (Axis2DY, Alignment) |
void |
setMinAxisWidth(double width,
Alignment alignment)
Sets minimum axis width. |
void |
setRightYAxis(Axis2DY ay)
Deprecated. use setYAxis (Axis2DY, Alignment) |
void |
setStackedBottomXAxisProportion(double[] stackedBottomXAxisProportion)
Deprecated. use setStackedXAxisProportion (double[], Alignment) |
void |
setStackedLeftYAxisProportion(double[] stackedLeftYAxisProportion)
Deprecated. use setStackedYAxisProportion (double[], Alignment) |
void |
setStackedRightYAxisProportion(double[] stackedRightYAxisProportion)
Deprecated. use setStackedYAxisProportion (double[], Alignment) |
void |
setStackedTopXAxisProportion(double[] stackedTopXAxisProportion)
Deprecated. use setStackedXAxisProportion (double[], Alignment) |
void |
setStackedXAxisMargin(float margin)
Sets margin between stacked x axis. |
void |
setStackedXAxisProportion(double[] stackedXAxisProportion,
Alignment axisPosition)
Sets the value how much of the area will take each stacked axis on the specified side of the chart |
void |
setStackedYAxisMargin(float margin)
Sets margin between stacked y axis. |
void |
setStackedYAxisProportion(double[] stackedYAxisProportion,
Alignment axisPosition)
Sets the value how much of the area will take each stacked axis on the specified side of the chart |
void |
setTopXAxis(Axis2DX ax)
Deprecated. use setXAxis (Axis2DX, Alignment) |
void |
setXAxis(Axis2DX ax)
Sets the X axis, which should appear at the bottom of the chart. |
void |
setXAxis(Axis2DX ax,
Alignment axisPosition)
Sets the X axis, which should appear at the specified side of the chart. |
void |
setYAxis(Axis2DY ay)
Sets the Y axis on the left side of the chart. |
void |
setYAxis(Axis2DY ay,
Alignment axisPosition)
Sets the Y axis, which should appear at the specified side of the chart. |
| Methods inherited from class lt.monarch.chart.MultiSeriesChartBase |
|---|
activate, addObject, createLegendEntries, deactivate, findObject, getContainingObjects, getObjects, layoutObjects, removeObject, replaceObject, reset, setObjects, shiftObjects |
| Methods inherited from class lt.monarch.chart.AbstractChart |
|---|
addPlugin, disableDrafMode, enableDraftMode, fillEntitySheet, getDescription, getLocale, getParentEntity, getPlugins, getShortDescription, invalidate, isDraftMode, paint, removePlugin, removePlugins, setDraftMode, setLocale |
| Methods inherited from class lt.monarch.chart.AbstractView |
|---|
addViewListener, clone, container, getAlignmentX, getAlignmentY, getBounds, getChartObjectBounds, getContainer, getGraphicsType, getHeight, getMaximumSize, getMinimumSize, getPaintMode, getPaintStyle, getParent, getPreferredSize, getSize, getSize, getStyle, getStyle, getWidth, getX, getY, isLayoutValid, removeViewListener, render, repaint, repaint, setAlignmentX, setAlignmentY, setBounds, setBounds, setContainer, setLocation, setMaximumSize, setMinimumSize, setPaintMode, setPreferredSize, setSize, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface lt.monarch.chart.engine.View |
|---|
addViewListener, clone, container, getAlignmentX, getAlignmentY, getBounds, getGraphicsType, getHeight, getMaximumSize, getMinimumSize, getPreferredSize, getSize, getSize, getStyle, getWidth, getX, getY, removeViewListener, render, repaint, repaint, setAlignmentX, setAlignmentY, setBounds, setBounds, setContainer, setLocation, setMaximumSize, setMinimumSize, setPreferredSize, setSize, validate |
| Field Detail |
|---|
protected final Projector projector
| Constructor Detail |
|---|
public Chart2D(Projector2D projector)
Chart2D with the specified projector.
projector - the projectorpublic Chart2D()
Chart2D. A new
lt.monarch.chart.chart2D.SimpleProjector2D is used as chart projector.
| Method Detail |
|---|
@Deprecated public Projector2D projector()
public Projector2D getProjector()
public void setYAxis(Axis2DY ay)
setYAxis
ay - y axis@Deprecated public void setLeftYAxis(Axis2DY ay)
ay - y axis@Deprecated public void setRightYAxis(Axis2DY ay)
ay - y axis
public void setMinAxisWidth(double width,
Alignment alignment)
width - minimum width relative size in range [0,1]alignment - axis sidepublic double getMinAxisWidth(Alignment alignment)
alignment - axis side
public void setChartAreaMargin(double width,
Alignment alignment)
width - relative size in range [0,1]alignment - axis sidepublic double getChartAreaMargin(Alignment alignment)
alignment - axis side
public void setYAxis(Axis2DY ay,
Alignment axisPosition)
ay - y axisaxisPosition - axis position on the chart: left or rightpublic void setXAxis(Axis2DX ax)
ax - x axis@Deprecated public void setBottomXAxis(Axis2DX ax)
ax - x axis@Deprecated public void setTopXAxis(Axis2DX ax)
ax - x axis
public void setXAxis(Axis2DX ax,
Alignment axisPosition)
ax - x axisaxisPosition - axis position on the chart: top or bottom@Deprecated public void addTopXAxis(Axis2DX ax)
ax - x axis@Deprecated public void addBottomXAxis(Axis2DX ax)
ax - x axis
public void addXAxis(Axis2DX ax,
Alignment axisPosition)
ax - x axisaxisPosition - axis position on the chart: top or bottompublic void setStackedYAxisMargin(float margin)
margin - relative size in range [0,1]public float getStackedYAxisMargin()
@Deprecated public void addLeftYAxis(Axis2DY ay)
ay - y axis@Deprecated public void addRightYAxis(Axis2DY ay)
ay - y axis
public void addYAxis(Axis2DY ay,
Alignment axisPosition)
ay - y axisaxisPosition - axis position on the chart: left or right@Deprecated public void removeLeftYAxis(Axis ay)
ay - y axis@Deprecated public void removeRightYAxis(Axis ay)
ay - y axis
public void removeYAxis(Axis2DY ay,
Alignment axisPosition)
ay - y axisaxisPosition - axis position on the chart: left or right@Deprecated public void removeTopXAxis(Axis ax)
ax - x axis@Deprecated public void removeBottomXAxis(Axis ax)
ax - x axis
public void removeXAxis(Axis2DX ax,
Alignment axisPosition)
ax - x axisaxisPosition - axis position on the chart: top or bottompublic Axis2D[] getYAxes()
public Axis2D[] getXAxes()
protected void layout(AbstractGraphics g)
layout in class MultiSeriesChartBase<ChartPaintTags,Projector2D>g - Graphics contextprotected void paintChart(AbstractGraphics g)
MultiSeriesChartBaselayout methods for AbstractBarSeries
are called. Layout method itself is not static, but bar and series spacing access methods are
static. All chart objects are drawn.
paintChart in class MultiSeriesChartBase<ChartPaintTags,Projector2D>g - the Graphics context in which chart will be paintedAbstractBarSeries.layout(int, int)public void dispose()
dispose in interface Viewdispose in class MultiSeriesChartBase<ChartPaintTags,Projector2D>
protected void finalize()
throws java.lang.Throwable
cleanup method if it isn't called
yet.
finalize in class MultiSeriesChartBase<ChartPaintTags,Projector2D>java.lang.Throwable - the Exception raised by this method
@Deprecated
public void setStackedLeftYAxisProportion(double[] stackedLeftYAxisProportion)
throws java.lang.IllegalArgumentException
stackedLeftYAxisProportion - Covered area by the each stacked y axis. Double value from
0 to 1java.lang.IllegalArgumentException - if any of arguments in array is less than 0 or greater than
1.
@Deprecated
public void setStackedRightYAxisProportion(double[] stackedRightYAxisProportion)
throws java.lang.IllegalArgumentException
stackedRightYAxisProportion - Covered area by the each stacked y axis. Double value from
0 to 1java.lang.IllegalArgumentException - if any of arguments in array is less than 0 or greater than
1.
public void setStackedYAxisProportion(double[] stackedYAxisProportion,
Alignment axisPosition)
throws java.lang.IllegalArgumentException
stackedYAxisProportion - Covered area by the each stacked y axis. Double value from
0 to 1axisPosition - axis position on the chart: left or rightjava.lang.IllegalArgumentException - if any of arguments in array is less than 0 or greater than
1.
@Deprecated
public void setStackedTopXAxisProportion(double[] stackedTopXAxisProportion)
throws java.lang.IllegalArgumentException
stackedTopXAxisProportion - Covered area by the each stacked x axis. Double value from 0
to 1java.lang.IllegalArgumentException - if any of arguments in array is less than 0 or greater than
1.
@Deprecated
public void setStackedBottomXAxisProportion(double[] stackedBottomXAxisProportion)
throws java.lang.IllegalArgumentException
stackedBottomXAxisProportion - Covered area by the each stacked x axis. Double value
from 0 to 1java.lang.IllegalArgumentException - if any of arguments in array is less than 0 or greater than
1.
public void setStackedXAxisProportion(double[] stackedXAxisProportion,
Alignment axisPosition)
throws java.lang.IllegalArgumentException
stackedXAxisProportion - Covered area by the each stacked x axis. Double value from
0 to 1axisPosition - axis position on the chart: top or bottomjava.lang.IllegalArgumentException - if any of arguments in array is less than 0 or greater than
1.public void setStackedXAxisMargin(float margin)
margin - relative size in range [0,1]public float getStackedXAxisMargin()
public void setBreakLine(ChartBreakLine breakLine_)
throws InvalidParameterException
breakLine_ - chart creak lineInvalidParameterException - when chart can't contain breaklinepublic ChartBreakLine getBreakLine()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||