|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.monitorenter.gui.chart.axistickpainters.AxisTickPainterDefault
public class AxisTickPainterDefault
Default implementation for a tick painter that uses all given arguments (no proprietary behaviour).
Constructor Summary | |
---|---|
AxisTickPainterDefault()
Defcon. |
Method Summary | |
---|---|
int |
getMajorTickLength()
Returns the major tick length in pixel. |
int |
getMinorTickLength()
Returns the minor tick length in pixel. |
void |
paintXLabel(int x,
int y,
String label,
Graphics2D g)
Paint the given label for the x axis. |
void |
paintXTick(int x,
int y,
boolean isMajorTick,
Graphics2D g)
Paint the little marker for a label of the x axis. |
void |
paintYLabel(int x,
int y,
String label,
Graphics2D g)
Paint the given label for the y axis. |
void |
paintYTick(int x,
int y,
boolean isMajorTick,
Graphics2D g)
Paint the little marker for a label of the y axis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AxisTickPainterDefault()
Method Detail |
---|
public void paintXLabel(int x, int y, String label, Graphics2D g)
IAxisTickPainter
paintXLabel
in interface IAxisTickPainter
x
- the x coordinate of the baseline for the label.y
- the y coordinate of the baseline for the label.label
- the formatted label String.g
- the graphic context to draw on.IAxisTickPainter.paintXLabel(int, int,
java.lang.String, java.awt.Graphics2D)
public void paintXTick(int x, int y, boolean isMajorTick, Graphics2D g)
IAxisTickPainter
paintXTick
in interface IAxisTickPainter
x
- the x coordinate of the baseline for the label.y
- the y coordinate of the baseline for the label.isMajorTick
- if true, this is a major tick.g
- the graphic context to draw on.IAxisTickPainter.paintXTick(int, int,
boolean, java.awt.Graphics2D)
public void paintYLabel(int x, int y, String label, Graphics2D g)
IAxisTickPainter
paintYLabel
in interface IAxisTickPainter
x
- the x coordinate of the baseline for the label.y
- the y coordinate of the baseline for the label.label
- the formatted label String.g
- the graphic context to draw on.IAxisTickPainter.paintYLabel(int, int,
java.lang.String, java.awt.Graphics2D)
public void paintYTick(int x, int y, boolean isMajorTick, Graphics2D g)
IAxisTickPainter
paintYTick
in interface IAxisTickPainter
x
- the x coordinate of the baseline for the label.y
- the y coordinate of the baseline for the label.isMajorTick
- if true, this is a major tick.g
- the graphic context to draw on.IAxisTickPainter.paintYTick(int, int,
boolean, java.awt.Graphics2D)
public int getMajorTickLength()
IAxisTickPainter
Implementations should access a static variable for performance boost.
getMajorTickLength
in interface IAxisTickPainter
IAxisTickPainter.getMajorTickLength()
public int getMinorTickLength()
IAxisTickPainter
Implementations should access a static variable for performance boost.
getMinorTickLength
in interface IAxisTickPainter
IAxisTickPainter.getMinorTickLength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |