JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.swing.gauge
Class JCCircularGauge.GaugeType

java.lang.Object
  |
  +--com.klg.jclass.swing.gauge.JCCircularGauge.GaugeType
All Implemented Interfaces:
Serializable
Enclosing class:
JCCircularGauge

public static class JCCircularGauge.GaugeType
extends Object
implements Serializable

Enums for gauge types. There are nine gauge types defined by start and sweep angles:

  1. FULL_CIRCLE (0-360 degrees)
  2. TOP_HALF_CIRCLE (0-180 degrees)
  3. BOTTOM_HALF_CIRCLE (180-180 degrees)
  4. LEFT_HALF_CIRCLE (90-180 degrees)
  5. RIGHT_HALF_CIRCLE (270-180 degrees)
  6. UPPER_RIGHT_QUARTER_CIRCLE (0-90 degrees)
  7. LOWER_RIGHT_QUARTER_CIRCLE (270-90 degrees)
  8. UPPER_LEFT_QUARTER_CIRCLE (90-90 degrees)
  9. LOWER_LEFT_QUARTER_CIRCLE (180-90 degrees)

See Also:
Serialized Form

Field Summary
static JCCircularGauge.GaugeType BOTTOM_HALF_CIRCLE
          The scale is a semicircle oriented so that its diameter is horizontal and its circumference is below its base.
static JCCircularGauge.GaugeType FULL_CIRCLE
          The scale is a full circle.
static JCCircularGauge.GaugeType LEFT_HALF_CIRCLE
          The scale is a semicircle oriented so that its diameter is vertical and its circumference is to the left of its base.
static JCCircularGauge.GaugeType LOWER_LEFT_QUARTER_CIRCLE
          A quadrant whose arc lies southwest.
static JCCircularGauge.GaugeType LOWER_RIGHT_QUARTER_CIRCLE
          A quadrant whose arc lies southeast.
static JCCircularGauge.GaugeType RIGHT_HALF_CIRCLE
          The scale is a semicircle oriented so that its diameter is vertical and its circumference is to the right of its base.
static JCCircularGauge.GaugeType TOP_HALF_CIRCLE
          The scale is a semicircle oriented so that its diameter is horizontal and its circumference is above its base.
static JCCircularGauge.GaugeType UPPER_LEFT_QUARTER_CIRCLE
          A quadrant whose arc lies northwest.
static JCCircularGauge.GaugeType UPPER_RIGHT_QUARTER_CIRCLE
          A quadrant whose arc lies northeast.
 
Method Summary
 boolean equals(JCCircularGauge.GaugeType type)
          Return true if the objects have the same start and sweep angles.
 int getStartAngle()
          Returns the start angle for this gauge.
 int getSweepAngle()
          Returns the sweep angle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FULL_CIRCLE

public static final JCCircularGauge.GaugeType FULL_CIRCLE
The scale is a full circle.


TOP_HALF_CIRCLE

public static final JCCircularGauge.GaugeType TOP_HALF_CIRCLE
The scale is a semicircle oriented so that its diameter is horizontal and its circumference is above its base.


BOTTOM_HALF_CIRCLE

public static final JCCircularGauge.GaugeType BOTTOM_HALF_CIRCLE
The scale is a semicircle oriented so that its diameter is horizontal and its circumference is below its base.


LEFT_HALF_CIRCLE

public static final JCCircularGauge.GaugeType LEFT_HALF_CIRCLE
The scale is a semicircle oriented so that its diameter is vertical and its circumference is to the left of its base.


RIGHT_HALF_CIRCLE

public static final JCCircularGauge.GaugeType RIGHT_HALF_CIRCLE
The scale is a semicircle oriented so that its diameter is vertical and its circumference is to the right of its base.


UPPER_RIGHT_QUARTER_CIRCLE

public static final JCCircularGauge.GaugeType UPPER_RIGHT_QUARTER_CIRCLE
A quadrant whose arc lies northeast.


LOWER_RIGHT_QUARTER_CIRCLE

public static final JCCircularGauge.GaugeType LOWER_RIGHT_QUARTER_CIRCLE
A quadrant whose arc lies southeast.


UPPER_LEFT_QUARTER_CIRCLE

public static final JCCircularGauge.GaugeType UPPER_LEFT_QUARTER_CIRCLE
A quadrant whose arc lies northwest.


LOWER_LEFT_QUARTER_CIRCLE

public static final JCCircularGauge.GaugeType LOWER_LEFT_QUARTER_CIRCLE
A quadrant whose arc lies southwest.

Method Detail

getStartAngle

public int getStartAngle()
Returns the start angle for this gauge.

Returns:
the start angle

getSweepAngle

public int getSweepAngle()
Returns the sweep angle. The sweep angle is the angle between the gauge's start and stop angles.

Returns:
the sweep angle

equals

public boolean equals(JCCircularGauge.GaugeType type)
Return true if the objects have the same start and sweep angles.

Parameters:
type -
Returns:
true if the objects have the same start and sweep angles

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