|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectli.netcat.chart.util.AbstractPart
li.netcat.chart.util.GraphPart
li.netcat.chart.util.CartesianGraphPart
li.netcat.chart.util.LinePart
Represents a line graph that looks for example like this:
As with all Cartesian parts, the orientation can be specified. It is also possible to specify, whether or not to paint the lines or symbols.
Field Summary |
Fields inherited from class li.netcat.chart.util.CartesianGraphPart |
HORIZONTAL, VERTICAL |
Fields inherited from class li.netcat.chart.util.GraphPart |
STACK_STRATEGY_APPEND, STACK_STRATEGY_GROUP, STACK_TYPE_NOT_STACKED, STACK_TYPE_STACKED, STACK_TYPE_STACKED_PERCENT |
Fields inherited from class li.netcat.chart.util.AbstractPart |
BACKGROUND, FOREGROUND, PERSPECTIVE |
Constructor Summary | |
LinePart(ChartModel model)
Constructs a new LinePart using the given ChartModel , the type STACK_TYPE_NOT_STACKED and a
horizontal orientation. |
|
LinePart(ChartModel model,
int stackType,
int orientation)
Constructs a new LinePart using the given ChartModel , stack type and orientation. |
|
LinePart(ChartModel model,
int stackType,
int orientation,
boolean paintLines,
boolean paintSymbols)
Constructs a new LinePart using the given ChartModel , stack type and orientation. |
Method Summary | |
Layout |
getLayout(java.awt.Graphics g)
Returns an instance of a layout that is able to report the bounds of this part and is able to paint this part. |
boolean |
getPaintLines()
Returns true if the lines get painted. |
boolean |
getPaintSymbols()
Returns true if the symbols get painted. |
void |
setPaintLines(boolean paintLines)
If true this line part will paint the lines. |
void |
setPaintSymbols(boolean paintSymbols)
If true this line part will paint the symbols. |
Methods inherited from class li.netcat.chart.util.CartesianGraphPart |
getHeight, getHorizontalScaleModel, getOrientation, getValueLocation, getVerticalScaleModel, getWidth, setHorizontalScaleModel, setOrientation, setSize, setVerticalScaleModel |
Methods inherited from class li.netcat.chart.util.GraphPart |
getChartModel, getDiscreetLength, getDiscreetScaleModel, getGraphLook, getLegendModel, getNumericLength, getNumericScaleModel, getStackModel, setChartModel, setDiscreetLength, setDiscreetScaleModel, setGraphLook, setLegendModel, setNumericLength, setNumericScaleModel, setStackModel |
Methods inherited from class li.netcat.chart.util.AbstractPart |
getChart, getPerspective, invalidate, setChart, setPerspective |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LinePart(ChartModel model)
LinePart
using the given ChartModel
, the type STACK_TYPE_NOT_STACKED
and a
horizontal orientation.
model
- The ChartModel
that provides the data. null
will be replaced by an empty ChartModel
.public LinePart(ChartModel model, int stackType, int orientation)
LinePart
using the given ChartModel
, stack type and orientation.
model
- The ChartModel
that provides the data. null
will be replaced by an empty ChartModel
.stackType
- The type of the resulting graph. Specify one of
STACK_TYPE_NOT_STACKED
, STACK_TYPE_STACKED
or STACK_TYPE_STACKED_PERCENT
.orientation
- The orientation of the resulting graph. Specify
HORIZONTAL
or VERTICAL
.public LinePart(ChartModel model, int stackType, int orientation, boolean paintLines, boolean paintSymbols)
LinePart
using the given ChartModel
, stack type and orientation.
model
- The ChartModel
that provides the data. null
will be replaced by an empty ChartModel
.stackType
- The type of the resulting graph. Specify one of
STACK_TYPE_NOT_STACKED
, STACK_TYPE_STACKED
or STACK_TYPE_STACKED_PERCENT
.orientation
- The orientation of the resulting graph. Specify
HORIZONTAL
or VERTICAL
.paintLines
- If true
this line part will paint the lines.paintSymbols
- If true
this line part will paint the symbols.Method Detail |
public boolean getPaintLines()
true
if the lines get painted.
true
if the lines get painted.public void setPaintLines(boolean paintLines)
true
this line part will paint the lines.
paintLines
- The flag.public boolean getPaintSymbols()
true
if the symbols get painted.
true
if the symbols get painted.public void setPaintSymbols(boolean paintSymbols)
true
this line part will paint the symbols.
paintSymbols
- The flag.public Layout getLayout(java.awt.Graphics g)
Part
g
- The relevant graphics object.
null
.
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |