public static class DrawableObject.TickLabel extends DrawableObject.Label
DrawableObject.Image, DrawableObject.Label, DrawableObject.Shape, DrawableObject.TickLabel, DrawableObject.Transform
m_transform
Constructor and Description |
---|
DrawableObject.TickLabel(int compType,
java.awt.Graphics2D g,
java.lang.String text,
java.awt.Font font,
java.awt.Color fontColor,
java.awt.Rectangle bounds,
java.lang.String labelType,
java.awt.geom.AffineTransform transform,
int tickType)
Constructor for creating an DrawableObject instance of TickLabel
|
Modifier and Type | Method and Description |
---|---|
int |
getTickType()
Gets the type of this tick label.
|
contains, getAngle, getBounds, getFont, getFontColor, getGraphics, getLabelType, getText, getTruncatedBounds, getTruncatedText, setTruncatedBounds, setTruncatedText
getAffineTransform, getComponentIndex, getComponentType, getLabelDimensions, getLabelObject, getTickLabelObject, isSelected, isVisible, render, setSelected, setVisible
public DrawableObject.TickLabel(int compType, java.awt.Graphics2D g, java.lang.String text, java.awt.Font font, java.awt.Color fontColor, java.awt.Rectangle bounds, java.lang.String labelType, java.awt.geom.AffineTransform transform, int tickType)
tickType
- Type of tick label; can be TICK_METRIC,
TICK_THRESHOLD, TICK_MIN_MAX, or TICK_INCREMENTS from
the GaugeAttributes
class.transform
- Instance of AffineTransform
to apply
to this shape before rendering itlabelType
- Type of label; can be TOP_LABEL, BOTTOM_LABEL,
METRIC_LABEL_POSITION, ELEMENTA_TOPLABEL,
ELEMENTA_BOTTOMLABEL, ELEMENTB_TOPLABEL,
ELEMENTB_BOTTOMLABEL, INTERSECTIONAB_TOPLABEL,
and INTERSECTIONAB_BOTTOMLABEL from
GaugeAttributes
classbounds
- Rectangle in which this label should be drawnfontColor
- Instance of Color
representing
the font color of this ticklabelfont
- Instance of Font
representing the
font for this ticklabeltext
- String value for this labelg
- Graphics2D instance to use for setup of this labelcompType
- Type of component to which this object belongs;
valid values are constants in the
GaugeConstants
class beginning with
ID_