All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.eou.toolkit.gauge.RAGNeedleGauge
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----com.ibm.eou.toolkit.gauge.BaseGauge
|
+----com.ibm.eou.toolkit.gauge.NeedleGauge
|
+----com.ibm.eou.toolkit.gauge.RAGNeedleGauge
- public class RAGNeedleGauge
- extends NeedleGauge
This gauge is semicircular with a swinging needle.
The area within the needle is divided into three color segments:
Red, Amber, Green. The thresholds between these segments can be specified.
A title may also be drawn.
-
RAGNeedleGauge()
- Construct a bar indicator with initial value 0 and a range from 0 to 100.
-
RAGNeedleGauge(int, int, int)
- Minimal constructor for a RAGNeedleGauge, it accepts the initial value, the minimum value
the maximum value.
-
RAGNeedleGauge(int, int, int, int, String, Color, int, int)
- Creates a new PointerGauge with the specified zone dividing values and title.
-
copyright()
-
-
gaugeModelChanged(GaugeModelChangeEvent)
- This method can be overriden by extending classes which
need to react to a change to one or more of the models settings.
-
getAGThreshold()
- Return the threshold value for where amber turns to green.
-
getRAThreshold()
- Return the value of the threshold where red turns to amber.
-
setAGThreshold(int)
- Set the threshold value where amber turns to green.
-
setRAThreshold(int)
- Set the threshold value where red turns to amber.
RAGNeedleGauge
public RAGNeedleGauge(int initialValue,
int minimum,
int maximum,
int numberOfTicks,
String title,
Color needleColor,
int RAThreshold,
int AGThreshold)
- Creates a new PointerGauge with the specified zone dividing values and title.
Both the zone dividing values must be between minimum and maximum.
RAGNeedleGauge
public RAGNeedleGauge(int initialValue,
int minimum,
int maximum)
- Minimal constructor for a RAGNeedleGauge, it accepts the initial value, the minimum value
the maximum value. The remaining properties default to change
from red to amber a quarter of
the way around the arc, and to change from amber to green three quarters of the way
around the gauge.
RAGNeedleGauge
public RAGNeedleGauge()
- Construct a bar indicator with initial value 0 and a range from 0 to 100.
The remaining properties default to change
from red to amber a quarter of
the way around the arc, and to change from amber to green three quarters of the way
around the gauge.
copyright
public static String copyright()
getRAThreshold
public int getRAThreshold()
- Return the value of the threshold where red turns to amber.
setRAThreshold
public void setRAThreshold(int value)
- Set the threshold value where red turns to amber. Constrained to the gauge range.
getAGThreshold
public int getAGThreshold()
- Return the threshold value for where amber turns to green.
setAGThreshold
public void setAGThreshold(int value)
- Set the threshold value where amber turns to green.
gaugeModelChanged
protected void gaugeModelChanged(GaugeModelChangeEvent e)
- This method can be overriden by extending classes which
need to react to a change to one or more of the models settings.
- Overrides:
- gaugeModelChanged in class NeedleGauge
All Packages Class Hierarchy This Package Previous Next Index