Class AxisTickPainterDefault
java.lang.Object
info.monitorenter.gui.chart.axistickpainters.AxisTickPainterDefault
- All Implemented Interfaces:
IAxisTickPainter,Serializable
Default implementation for a tick painter that uses all given arguments (no
proprietary behaviour).
- Version:
- $Revision: 1.7 $
- Author:
- Achim Westermann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the major tick length in pixel.intReturns the minor tick length in pixel.voidpaintXLabel(int x, int y, String label, Graphics g) Paint the given label for the x axis.voidpaintXTick(int x, int y, boolean isMajorTick, boolean isBottomSide, Graphics g) Paint the little marker for a label of the x axis.voidpaintYLabel(int x, int y, String label, Graphics g) Paint the given label for the y axis.voidpaintYTick(int x, int y, boolean isMajorTick, boolean isLeftSide, Graphics g) Paint the little marker for a label of the y axis.
-
Constructor Details
-
AxisTickPainterDefault
public AxisTickPainterDefault()Defcon.
-
-
Method Details
-
getMajorTickLength
public int getMajorTickLength()Description copied from interface:IAxisTickPainterReturns the major tick length in pixel.Implementations should access a static variable for performance boost.
- Specified by:
getMajorTickLengthin interfaceIAxisTickPainter- Returns:
- the major tick length in pixel.
- See Also:
-
getMinorTickLength
public int getMinorTickLength()Description copied from interface:IAxisTickPainterReturns the minor tick length in pixel.Implementations should access a static variable for performance boost.
- Specified by:
getMinorTickLengthin interfaceIAxisTickPainter- Returns:
- the minor tick length in pixel.
- See Also:
-
paintXLabel
Description copied from interface:IAxisTickPainterPaint the given label for the x axis.- Specified by:
paintXLabelin interfaceIAxisTickPainter- 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.- See Also:
-
paintXTick
Description copied from interface:IAxisTickPainterPaint the little marker for a label of the x axis.- Specified by:
paintXTickin interfaceIAxisTickPainter- 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.- See Also:
-
paintYLabel
Description copied from interface:IAxisTickPainterPaint the given label for the y axis.- Specified by:
paintYLabelin interfaceIAxisTickPainter- 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.- See Also:
-
paintYTick
Description copied from interface:IAxisTickPainterPaint the little marker for a label of the y axis.- Specified by:
paintYTickin interfaceIAxisTickPainter- 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.- See Also:
-