JClass 4.5.0 API
Documentation

com.klg.jclass.swing.gauge
Class JCTickStyle

java.lang.Object
  |
  +--java.awt.Polygon
        |
        +--com.klg.jclass.swing.gauge.JCTickStyle

public class JCTickStyle
extends Polygon
implements Serializable

Provides constants 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
protected  Rectangle boundingBox
           
static JCTickStyle CIRCLE
          Circle
static JCTickStyle DIAMOND
          Diamond
static JCTickStyle LINE
          Line
static JCTickStyle RECTANGLE
          Rectangle
static JCTickStyle REVERSE_TRIANGLE
          Reverse Triangle
static JCTickStyle TRIANGLE
          Triangle
 
Fields inherited from class java.awt.Polygon
bounds, npoints, xpoints, ypoints
 
Constructor Summary
JCTickStyle()
           
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.
 
Method Summary
 Rectangle getExtrema()
           
 
Methods inherited from class java.awt.Polygon
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boundingBox

protected Rectangle boundingBox

DIAMOND

public static final JCTickStyle DIAMOND
Diamond

TRIANGLE

public static final JCTickStyle TRIANGLE
Triangle

REVERSE_TRIANGLE

public static final JCTickStyle REVERSE_TRIANGLE
Reverse Triangle

RECTANGLE

public static final JCTickStyle RECTANGLE
Rectangle

LINE

public static final JCTickStyle LINE
Line

CIRCLE

public static final 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()
Method Detail

getExtrema

public Rectangle getExtrema()

Copyright© 1999-2000 KL Group Inc.
All rights reserved.