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
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. |
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 |
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
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()
getExtrema
public Rectangle getExtrema()