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.


Constructor Index

 o RAGNeedleGauge()
Construct a bar indicator with initial value 0 and a range from 0 to 100.
 o RAGNeedleGauge(int, int, int)
Minimal constructor for a RAGNeedleGauge, it accepts the initial value, the minimum value the maximum value.
 o RAGNeedleGauge(int, int, int, int, String, Color, int, int)
Creates a new PointerGauge with the specified zone dividing values and title.

Method Index

 o copyright()
 o 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.
 o getAGThreshold()
Return the threshold value for where amber turns to green.
 o getRAThreshold()
Return the value of the threshold where red turns to amber.
 o setAGThreshold(int)
Set the threshold value where amber turns to green.
 o setRAThreshold(int)
Set the threshold value where red turns to amber.

Constructors

 o 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.

 o 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.

 o 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.

Methods

 o copyright
 public static String copyright()
 o getRAThreshold
 public int getRAThreshold()
Return the value of the threshold where red turns to amber.

 o setRAThreshold
 public void setRAThreshold(int value)
Set the threshold value where red turns to amber. Constrained to the gauge range.

 o getAGThreshold
 public int getAGThreshold()
Return the threshold value for where amber turns to green.

 o setAGThreshold
 public void setAGThreshold(int value)
Set the threshold value where amber turns to green.

 o 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