oracle.dss.gauge
Class DrawableObject.TickLabel
java.lang.Object
oracle.dss.gauge.DrawableObject
oracle.dss.gauge.DrawableObject.Label
oracle.dss.gauge.DrawableObject.TickLabel
- Enclosing class:
- DrawableObject
public static class DrawableObject.TickLabel
- extends DrawableObject.Label
This class defines a tick label.
Constructor Summary |
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 |
Method Summary |
int |
getTickType()
Gets the type of this tick label. |
Methods inherited from class oracle.dss.gauge.DrawableObject.Label |
contains, getAngle, getBounds, getFont, getFontColor, getGraphics, getLabelType, getText, getTruncatedBounds, getTruncatedText, setTruncatedBounds, setTruncatedText |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrawableObject.TickLabel
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)
- Constructor for creating an DrawableObject instance of TickLabel
- Parameters:
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_
getTickType
public int getTickType()
- Gets the type of this tick label.
- Returns:
- Type of this tick label; can be
TICK_METRIC
,
TIC_THRESHOLD
,
TICK_MIN_MAX
,
and TICK_INCREMENTS
from the GaugeAttributes
class.
Copyright © 1997, 2009, Oracle. All rights reserved.