JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.swing.gauge
Class JCTickStyle

java.lang.Object
  |
  +--java.awt.Polygon
        |
        +--com.klg.jclass.swing.gauge.JCPolygon
              |
              +--com.klg.jclass.swing.gauge.JCTickStyle
All Implemented Interfaces:
Serializable, Shape

public class JCTickStyle
extends JCPolygon
implements Serializable

Provides the constants from the built-in tick styles for a JCTick, and provides a constructor for passing in a user-defined tick style. Alternatively, custom tick styles may be defined by subclassing.

See Also:
Serialized Form

Field Summary
static com.klg.jclass.swing.gauge.JCTickStyle CIRCLE
          Circle
static com.klg.jclass.swing.gauge.JCTickStyle DIAMOND
          Diamond
static com.klg.jclass.swing.gauge.JCTickStyle LINE
          Line
static com.klg.jclass.swing.gauge.JCTickStyle RECTANGLE
          Rectangle
static com.klg.jclass.swing.gauge.JCTickStyle REVERSE_TRIANGLE
          Reverse Triangle
static com.klg.jclass.swing.gauge.JCTickStyle TRIANGLE
          Triangle
 
Fields inherited from class com.klg.jclass.swing.gauge.JCPolygon
boundingBox
 
Fields inherited from class java.awt.Polygon
bounds, npoints, xpoints, ypoints
 
Constructor Summary
JCTickStyle()
          Default constructor
JCTickStyle(int[] xpoints, int[] ypoints, int numPoints)
          The JCTickStyle constructor allows you to define your own (x, y) coordinate pairs for a new tick style.
 
Methods inherited from class com.klg.jclass.swing.gauge.JCPolygon
getExtrema
 
Methods inherited from class java.awt.Polygon
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIAMOND

public static final com.klg.jclass.swing.gauge.JCTickStyle DIAMOND
Diamond


TRIANGLE

public static final com.klg.jclass.swing.gauge.JCTickStyle TRIANGLE
Triangle


REVERSE_TRIANGLE

public static final com.klg.jclass.swing.gauge.JCTickStyle REVERSE_TRIANGLE
Reverse Triangle


RECTANGLE

public static final com.klg.jclass.swing.gauge.JCTickStyle RECTANGLE
Rectangle


LINE

public static final com.klg.jclass.swing.gauge.JCTickStyle LINE
Line


CIRCLE

public static final com.klg.jclass.swing.gauge.JCTickStyle CIRCLE
Circle

Constructor Detail

JCTickStyle

public JCTickStyle(int[] xpoints,
                   int[] ypoints,
                   int numPoints)
The JCTickStyle constructor allows you to define your own (x, y) coordinate pairs for a new tick style.

Parameters:
xpoints - the array of x coordinates, as in java.awt.Polygon
ypoints - the array of y coordinates, as in java.awt.Polygon
numPoints - the number of points in the definition of the polygon

JCTickStyle

public JCTickStyle()
Default constructor


Copyright © 2004 Quest Software Inc..
All rights reserved.