JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.swing.gauge
Class JCNeedleStyle

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

public class JCNeedleStyle
extends JCIndicatorStyle
implements Serializable

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.swing.gauge.JCIndicatorStyle
ARROW, CIRCLE, POINTER, RECTANGLE, TAILED_ARROW, TAILED_POINTER, 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
JCNeedleStyle()
          Default constructor
JCNeedleStyle(int[] xpoints, int[] ypoints, int numPoints)
          Constructs a needle 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
 

Constructor Detail

JCNeedleStyle

public JCNeedleStyle(int[] xpoints,
                     int[] ypoints,
                     int numPoints)
Constructs a needle using the points of a polygon. For a user-defined needle.

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

JCNeedleStyle

public JCNeedleStyle()
Default constructor


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