Package info.monitorenter.gui.chart
Interface IAxisTickPainter
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AxisTickPainterDefault
public interface IAxisTickPainter extends java.io.SerializableInterface to paint ticks for a trace.Caution
There is no guarantee that further manipulation on the giveninstance 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 theGraphics2DITrace2D/.Chart2D- Version:
- $Revision: 1.7 $
- Author:
- Achim Westermann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetMajorTickLength()Returns the major tick length in pixel.intgetMinorTickLength()Returns the minor tick length in pixel.voidpaintXLabel(int x, int y, java.lang.String label, java.awt.Graphics g)Paint the given label for the x axis.voidpaintXTick(int x, int y, boolean isMajorTick, boolean isBottomSide, java.awt.Graphics g)Paint the little marker for a label of the x axis.voidpaintYLabel(int x, int y, java.lang.String label, java.awt.Graphics g)Paint the given label for the y axis.voidpaintYTick(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
-
getMajorTickLength
int getMajorTickLength()
Returns the major tick length in pixel.Implementations should access a static variable for performance boost.
- Returns:
- the major tick length in pixel.
-
getMinorTickLength
int getMinorTickLength()
Returns the minor tick length in pixel.Implementations should access a static variable for performance boost.
- Returns:
- the minor tick length in pixel.
-
paintXLabel
void paintXLabel(int x, int y, java.lang.String label, java.awt.Graphics g)Paint the given label for the x axis.- Parameters:
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.
-
paintXTick
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.- Parameters:
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 anon the bottom of the chart (see e.g.:IAxis).Chart2D.addAxisXBottom(info.monitorenter.gui.chart.axis.AAxis)g- the graphic context to draw on.
-
paintYLabel
void paintYLabel(int x, int y, java.lang.String label, java.awt.Graphics g)Paint the given label for the y axis.- Parameters:
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.
-
paintYTick
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.- Parameters:
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 anon the left side (see e.g.:IAxis).Chart2D.addAxisYLeft(info.monitorenter.gui.chart.axis.AAxis)g- the graphic context to draw on.
-
-