oracle.dss.gauge
Class DrawableObject.TickLabel
java.lang.Object
   oracle.dss.gauge.DrawableObject
oracle.dss.gauge.DrawableObject
       oracle.dss.gauge.DrawableObject.Label
oracle.dss.gauge.DrawableObject.Label
           oracle.dss.gauge.DrawableObject.TickLabel
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 oracle.dss.gauge.DrawableObject | 
| getAffineTransform, getComponentIndex, getComponentType, getLabelDimensions, getLabelObject, getTickLabelObject, isSelected, isVisible, render, setSelected, setVisible | 
 
| 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- GaugeAttributesclass.
- transform- Instance of- AffineTransformto apply
                  to this shape before rendering it
- labelType- 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- GaugeAttributesclass
- bounds- Rectangle in which this label should be drawn
- fontColor- Instance of- Colorrepresenting
                  the font color of this ticklabel
- font- Instance of- Fontrepresenting the
             font for this ticklabel
- text- String value for this label
- g- Graphics2D instance to use for setup of this label
- compType- Type of component to which this object belongs;
                 valid values are constants in the- GaugeConstantsclass 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,
         andTICK_INCREMENTSfrom theGaugeAttributesclass.
 
Copyright © 1997, 2011, Oracle. All rights reserved.