|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAxisTickPainter
Interface to paint ticks for a trace.
Caution
There is no guarantee that further manipulation on the
given
instance than painting just
the label or tick will not produce layout problems. E.g. changing the color
or font is not recommended as these should be assigned to the
Graphics2D
ITrace2D
/
.
Chart2D
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,
java.lang.String label,
java.awt.Graphics g)
Paint the given label for the x axis. |
void |
paintXTick(int x,
int y,
boolean isMajorTick,
boolean isBottomSide,
java.awt.Graphics g)
Paint the little marker for a label of the x axis. |
void |
paintYLabel(int x,
int y,
java.lang.String label,
java.awt.Graphics g)
Paint the given label for the y axis. |
void |
paintYTick(int x,
int y,
boolean isMajorTick,
boolean isLeftSide,
java.awt.Graphics g)
Paint the little marker for a label of the y axis. |
Method Detail |
---|
int getMajorTickLength()
Implementations should access a static variable for performance boost.
int getMinorTickLength()
Implementations should access a static variable for performance boost.
void paintXLabel(int x, int y, java.lang.String label, java.awt.Graphics g)
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.void paintXTick(int x, int y, boolean isMajorTick, boolean isBottomSide, java.awt.Graphics g)
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.isBottomSide
- if true the tick is painted for an IAxis
on the bottom of the chart (see e.g.:
Chart2D.addAxisXBottom(info.monitorenter.gui.chart.axis.AAxis)
).g
- the graphic context to draw on.void paintYLabel(int x, int y, java.lang.String label, java.awt.Graphics g)
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.void paintYTick(int x, int y, boolean isMajorTick, boolean isLeftSide, java.awt.Graphics g)
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.isLeftSide
- if true the tick is painted for an IAxis
on the left side (see e.g.:
Chart2D.addAxisYLeft(info.monitorenter.gui.chart.axis.AAxis)
).g
- the graphic context to draw on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |