public abstract class ALcdVVXAxisRendererJ2D extends Object implements ILcdVVXAxisRenderer
ILcdVVXAxisRenderer
.
It paints icons on the XAxis and paints labels underneath the icons. The labels
can be displayed in a specific rotation angle.Constructor and Description |
---|
ALcdVVXAxisRendererJ2D() |
Modifier and Type | Method and Description |
---|---|
int |
getHeight(Graphics aGraphics,
TLcdVVJPanel aVV) |
abstract ILcdIcon |
getXAxisIcon(int aPointIndex) |
abstract String |
getXAxisLabel(int aPointIndex) |
abstract Color |
getXAxisLabelBackground(int aPointIndex) |
abstract Color |
getXAxisLabelColor(int aPointIndex) |
abstract Font |
getXAxisLabelFont(int aPointIndex) |
abstract double |
getXAxisLabelRotationDegrees(int aPointIndex) |
abstract boolean |
isLabeled(int aPointIndex) |
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
paintOnXAxis(int[] aXLabelPositionArray,
int aStartPointIndex,
int aLength,
Rectangle aBounds,
Graphics aGraphics,
TLcdVVJPanel aVV) |
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.aTraceOn
- if true then all log messages are recorded for this
instance. If false, then only the informative, warning and
error log messages are recorded.public boolean isTraceOn()
true
if tracing is enabled for this class.public int getHeight(Graphics aGraphics, TLcdVVJPanel aVV)
getHeight
in interface ILcdVVXAxisRenderer
aGraphics
- the graphics involvedpublic void paintOnXAxis(int[] aXLabelPositionArray, int aStartPointIndex, int aLength, Rectangle aBounds, Graphics aGraphics, TLcdVVJPanel aVV)
paintOnXAxis
in interface ILcdVVXAxisRenderer
aXLabelPositionArray
- an array containing all the
X-coordinates of the visible main profile points.aStartPointIndex
- the index of the first visible main profile point.aLength
- the number of visible main profile points, note here that
aXLabelPositionArray.length must not be used. aLength should be used
instead!aBounds
- 1) the location of this rectangle (x,y) corresponds to the
most left point on the lowest visible grid-line line.
2) the width corresponds to the whole width of the x-axis
3) the height corresponds to the distance between x-axis and the
bottom of the graphicspublic abstract Color getXAxisLabelBackground(int aPointIndex)
aPointIndex
- the relative to the first point visible point-index of the main profile pointTLcdVVJPanel.setStartingPointIndex(int)
public abstract ILcdIcon getXAxisIcon(int aPointIndex)
aPointIndex
- the relative to the first point visible point-index of the main profile pointTLcdVVJPanel.setStartingPointIndex(int)
public abstract boolean isLabeled(int aPointIndex)
aPointIndex
- the relative to the first point visible point-index of the main profile pointTLcdVVJPanel.setStartingPointIndex(int)
public abstract String getXAxisLabel(int aPointIndex)
aPointIndex
- the relative to the first point visible point-index of the main profile pointTLcdVVJPanel.setStartingPointIndex(int)
public abstract double getXAxisLabelRotationDegrees(int aPointIndex)
aPointIndex
- the relative to the first point visible point-index of the main profile pointTLcdVVJPanel.setStartingPointIndex(int)
public abstract Font getXAxisLabelFont(int aPointIndex)
aPointIndex
- the relative to the first point visible point-index of the main profile pointTLcdVVJPanel.setStartingPointIndex(int)
public abstract Color getXAxisLabelColor(int aPointIndex)
aPointIndex
- the relative to the first point visible point-index of the main profile pointTLcdVVJPanel.setStartingPointIndex(int)