Package com.luciad.view.vertical
Class ALcdVVXAxisRendererJ2D
java.lang.Object
com.luciad.view.vertical.ALcdVVXAxisRendererJ2D
- All Implemented Interfaces:
ILcdVVXAxisRenderer
This class is an abstract implementation of the
ILcdVVXAxisRenderer
.
It paints icons on the XAxis and paints labels underneath the icons. The labels
can be displayed in a specific rotation angle.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
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
Deprecated.This method has been deprecated.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.void
setTraceOn
(boolean aTraceOn) Deprecated.This method has been deprecated.
-
Constructor Details
-
ALcdVVXAxisRendererJ2D
public ALcdVVXAxisRendererJ2D()
-
-
Method Details
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istrue
then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn
- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for this class instance. Calling this method with eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
then only the informative, warning and error log messages are recorded.- Parameters:
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.
-
isTraceOn
public boolean isTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
getHeight
- Specified by:
getHeight
in interfaceILcdVVXAxisRenderer
- Parameters:
aGraphics
- the graphics involved- Returns:
- the amount of pixels required by this renderer
-
paintOnXAxis
public void paintOnXAxis(int[] aXLabelPositionArray, int aStartPointIndex, int aLength, Rectangle aBounds, Graphics aGraphics, TLcdVVJPanel aVV) - Specified by:
paintOnXAxis
in interfaceILcdVVXAxisRenderer
- Parameters:
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 graphics
-
getXAxisLabelBackground
- Parameters:
aPointIndex
- the relative to the first point visible point-index of the main profile point- Returns:
- the background of the label painted for the point with the given relative index at the X-axis. Return null if you do not want a label with a background.
- See Also:
-
getXAxisIcon
- Parameters:
aPointIndex
- the relative to the first point visible point-index of the main profile point- Returns:
- the icon to paint for the point with the given relative index at the X-axis. Return null if you don't want an icon painted on the X-axis.
- See Also:
-
isLabeled
public abstract boolean isLabeled(int aPointIndex) - Parameters:
aPointIndex
- the relative to the first point visible point-index of the main profile point- Returns:
- whether a label should be painted for the point with the given relative index.
- See Also:
-
getXAxisLabel
- Parameters:
aPointIndex
- the relative to the first point visible point-index of the main profile point- Returns:
- the text of the label painted for the point with the given relative index at the X-axis.
- See Also:
-
getXAxisLabelRotationDegrees
public abstract double getXAxisLabelRotationDegrees(int aPointIndex) - Parameters:
aPointIndex
- the relative to the first point visible point-index of the main profile point- Returns:
- the rotation of the label painted for the point with the given relative index at the X-axis.
- See Also:
-
getXAxisLabelFont
- Parameters:
aPointIndex
- the relative to the first point visible point-index of the main profile point- Returns:
- the font of the label painted for the point with the given relative index at the X-axis.
- See Also:
-
getXAxisLabelColor
- Parameters:
aPointIndex
- the relative to the first point visible point-index of the main profile point- Returns:
- the color of the label text painted for the point with the given relative index at the X-axis.
- See Also:
-