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
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 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 |
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 polygonypoints
- the y coordinates for the polygonnumPoints
- the number of points in this polygon
JCNeedleStyle
public JCNeedleStyle()
- Default constructor