|
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.GridPart
The GridPart
is the abstract super class of all grids.
It holds some pen instances and other properties that are relevant to paint a grid.
Field Summary |
Fields inherited from class li.netcat.chart.util.AbstractPart |
BACKGROUND, FOREGROUND, PERSPECTIVE |
Constructor Summary | |
GridPart()
Constructs a new GridPart and initializes it to its defaults. |
Method Summary | |
Pen |
_getGridPen()
Deprecated. Replaced by getMumericGridPen() |
Pen |
_getMarkPen()
Deprecated. replaced by getDiscreteGridPen(). |
void |
_setGridPen(Pen pen)
Deprecated. Replaced by setMumericGridPen() |
void |
_setMarkPen(Pen pen)
Deprecated. replaced by setDiscreteGridPen() |
Pen |
getBackgroundPen()
Returns the background pen. |
Pen |
getBackgroundPenAt(int index)
Utility method that returns the background pen for the given background segment index. |
PenBox |
getBackgroundPenBox()
Returns the pen box that is used to paint the background (areas between the numeric grid lines). |
Pen |
getBorderPen()
Returns the pen that is used to paint the border of the grid. |
Pen |
getDiscreteGridPen()
Returns the pen that is used to paint the marks or grid lines that go along the discrete axis of the chart. |
Pen |
getDiscreteGridPenAt(int index)
Utility method that returns the grid pen used to paint the grid lines or marks along the discrete axis. |
PenBox |
getDiscreteGridPenBox()
Returns the pen box that is used to paint the grid lines or marks along the discrete axis. |
float |
getMarkLineLength()
Returns the length of the marks. |
Pen |
getNumericGridPen()
Returns the pen that is used to paint the marks or grid lines that go along the discrete axis of the chart. |
Pen |
getNumericGridPenAt(int index)
Utility method that returns the grid pen used to paint the grid lines or marks along the numeric axis. |
PenBox |
getNumericGridPenBox()
Returns the pen box that is used to paint the grid lines that go along the numeric axis of the grid. |
boolean |
getPaintBackground()
Returns the paint background flag. |
void |
setBackgroundPaint(java.awt.Paint paint)
Sets the given paint as background paint. |
void |
setBackgroundPen(Pen pen)
Sets the given pen as background pen. |
void |
setBackgroundPenBox(PenBox penBox)
Sets the pen box that is used to paint the background (areas between the numeric grid lines). |
void |
setBorderPen(Pen pen)
Sets the pen that is used to paint the border of the grid. |
void |
setDiscreteGridPen(Pen pen)
Sets the pen that is used to paint the marks of the grid. |
void |
setDiscreteGridPenBox(PenBox penBox)
Sets the pen box that is used to paint the grid lines or marks along the discrete axis. |
void |
setMarkLineLength(float length)
Sets the length of the marks. |
void |
setNumericGridPen(Pen pen)
Sets the pen that is used to paint the marks of the grid. |
void |
setNumericGridPenBox(PenBox penBox)
Sets the pen box that is used to paint the grid lines or marks that go along the numeric axis of the grid. |
void |
setPaintBackground(boolean flag)
Sets the paint background flag. |
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 |
Methods inherited from interface li.netcat.chart.Part |
getLayout |
Constructor Detail |
public GridPart()
GridPart
and initializes it to its defaults.
Method Detail |
public Pen getBackgroundPen()
null
.public void setBackgroundPen(Pen pen)
pen
- The pen that is used to paint the background, not null
.public PenBox getBackgroundPenBox()
null
, the pen returned by getBackgroundPen() is used to
paint the background.
null
if the default pen shall used.public Pen getBackgroundPenAt(int index)
public void setBackgroundPenBox(PenBox penBox)
null
,
the pen returned by getBackgroundPen() is used to paint the background.
penBox
- The pen box that provides the pens for the background or null
if the default pen shall used.public void setBackgroundPaint(java.awt.Paint paint)
paint
- The background paint, or null
to avoid filling the background.public boolean getPaintBackground()
true
if the background gets painted.public void setPaintBackground(boolean flag)
flag
- Specify true
to paint the background.public Pen getBorderPen()
null
.public void setBorderPen(Pen pen)
pen
- The pen that paints the border, might be null
.public Pen getDiscreteGridPen()
public void setDiscreteGridPen(Pen pen)
pen
- The pen that paints the marks, might be null
.public PenBox getDiscreteGridPenBox()
null
,
the pen returned by getDiscreteGridPen() is used to paint the marks or lines.
null
if the default pen shall be used.public void setDiscreteGridPenBox(PenBox penBox)
null
,
the pen returned by getMarkPen() is used to paint all grid marks.
penBox
- The pen box that provides the pens for the grid marks or null
if the default pen shall used.public Pen getDiscreteGridPenAt(int index)
public Pen getNumericGridPen()
public void setNumericGridPen(Pen pen)
pen
- The pen that paints the marks, might be null
.public PenBox getNumericGridPenBox()
null
,
the pen returned by getNumericGridPen() is used to paint all grid lines.
null
if the default pen shall be used.public void setNumericGridPenBox(PenBox penBox)
null
, the pen returned by getGridPen() is used to paint all grid lines.
penBox
- The pen box that provides the pens for the grid or null
if the default pen shall be used.public Pen getNumericGridPenAt(int index)
public float getMarkLineLength()
public void setMarkLineLength(float length)
length
- The length of the marks.public Pen _getMarkPen()
public void _setMarkPen(Pen pen)
pen
- The pen that paints the marks, might be null
.public Pen _getGridPen()
null
.public void _setGridPen(Pen pen)
pen
- The pen that paints the grid lines, might be null
.
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |