JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.swing.gauge
Class JCIndicatorStyle

java.lang.Object
  |
  +--java.awt.Polygon
        |
        +--com.klg.jclass.swing.gauge.JCPolygon
              |
              +--com.klg.jclass.swing.gauge.JCIndicatorStyle
All Implemented Interfaces:
Serializable, Shape
Direct Known Subclasses:
JCNeedleStyle

public class JCIndicatorStyle
extends JCPolygon
implements Serializable

Provides constants for the built-in indicator styles for a JCIndicator and provides a constructor for defining a user-defined indicator style. Alternatively, custom indicator styles may be defined by subclassing.

See Also:
Serialized Form

Field Summary
static com.klg.jclass.swing.gauge.JCIndicatorStyle ARROW
          Arrow polygon using these points.
static com.klg.jclass.swing.gauge.JCIndicatorStyle CIRCLE
          Circle
static com.klg.jclass.swing.gauge.JCIndicatorStyle POINTER
          A pointer indicator using these points.
static com.klg.jclass.swing.gauge.JCIndicatorStyle RECTANGLE
          Rectangle
static com.klg.jclass.swing.gauge.JCIndicatorStyle TAILED_ARROW
          Tailed Arrow polygon (tail extends beyond center).
static com.klg.jclass.swing.gauge.JCIndicatorStyle TAILED_POINTER
          A tailed pointer indicator (tail extends beyond center).
static com.klg.jclass.swing.gauge.JCIndicatorStyle TRIANGLE
          Triangle using ponits.
 
Fields inherited from class com.klg.jclass.swing.gauge.JCPolygon
boundingBox
 
Fields inherited from class java.awt.Polygon
bounds, npoints, xpoints, ypoints
 
Constructor Summary
JCIndicatorStyle()
          Default constuctor
JCIndicatorStyle(int[] xpoints, int[] ypoints, int numPoints)
          Construct a indicator using the points of a polygon.
 
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

POINTER

public static final com.klg.jclass.swing.gauge.JCIndicatorStyle POINTER
A pointer indicator using these points.

 new int[] { 0,	0,	90,	100,	90,	0}
 new int[] { -5, 5,	5,	0,		-5,	-5}

 --------------*
 |               \
 |                *
 |               /
 --------------*
 


ARROW

public static final com.klg.jclass.swing.gauge.JCIndicatorStyle ARROW
Arrow polygon using these points.

 new int[] { 0,	0,	100,	100,	120,	100,	100,	0},
 new int[] { 5, -5,	-5,		-10,	0,		10,		5,		5},


 |\
 --------* \
 |          *
 --------* /
 |/
 


TRIANGLE

public static final com.klg.jclass.swing.gauge.JCIndicatorStyle TRIANGLE
Triangle using ponits.

 new int[] {0,	100,	0},
 new int[] {-7,	0,		7},

 *
 | \
 |  *
 | /
 *

 


RECTANGLE

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


CIRCLE

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


TAILED_POINTER

public static final com.klg.jclass.swing.gauge.JCIndicatorStyle TAILED_POINTER
A tailed pointer indicator (tail extends beyond center). It uses these points.

 new int[] { -20,		-20,	90,	100,	90,	-20}
 new int[] { -5,		5,		5,	0,		-5,	-5}


 --------------*
 |               \
 |   x(Center)    *
 |               /
 --------------*
 


TAILED_ARROW

public static final com.klg.jclass.swing.gauge.JCIndicatorStyle TAILED_ARROW
Tailed Arrow polygon (tail extends beyond center).

 new int[] { -20,	-20,	100,	100,	120,	100,	100,	-20},
 new int[] { 5, -5,	-5,		-10,	0,		10,		5,		5},


 |\
 ---------------------* \
 |  x(Center)            *
 ---------------------* /
 |/
 

Constructor Detail

JCIndicatorStyle

public JCIndicatorStyle(int[] xpoints,
                        int[] ypoints,
                        int numPoints)
Construct a indicator using the points of a polygon. For a user-defined indicator.

Parameters:
xpoints - the x coordinates for the polygon
ypoints - the y coordinates for the polygon
numPoints - the number of points in this polygon

JCIndicatorStyle

public JCIndicatorStyle()
Default constuctor


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