public class AxisTickPainterInwards extends Object implements IAxisTickPainter
Constructor and Description |
---|
AxisTickPainterInwards()
Defcon.
|
Modifier and Type | Method and Description |
---|---|
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,
Graphics g)
Paint the given label for the x axis.
|
void |
paintXTick(int x,
int y,
boolean isMajorTick,
boolean isBottomSide,
Graphics g)
Paint the little marker for a label of the x axis.
|
void |
paintYLabel(int x,
int y,
String label,
Graphics g)
Paint the given label for the y axis.
|
void |
paintYTick(int x,
int y,
boolean isMajorTick,
boolean isLeftSide,
Graphics g)
Paint the little marker for a label of the y axis.
|
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()
public void paintXLabel(int x, int y, String label, Graphics 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.Graphics)
public void paintXTick(int x, int y, boolean isMajorTick, boolean isBottomSide, Graphics 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.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.IAxisTickPainter.paintXTick(int, int,
boolean, boolean, java.awt.Graphics)
public void paintYLabel(int x, int y, String label, Graphics 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.Graphics)
public void paintYTick(int x, int y, boolean isMajorTick, boolean isLeftSide, Graphics 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.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.IAxisTickPainter.paintYTick(int, int,
boolean, boolean, java.awt.Graphics)
Copyright © 2018. All rights reserved.