All Packages This Package Class Hierarchy Class Search Index
Class kh.awt.Dial
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----kh.awt.Dial
public abstract class Dial
extends javax.swing.JComponent
implements kh.awt.AwtValueReceiver
{
// Fields 6
public static final Color adviseColor;
protected DoubleRange[] advisory;
protected double maxValue;
protected double minValue;
public static final Color warningColor;
protected DoubleRange[] warnings;
// Constructors 1
public Dial();
// Methods 9
public DoubleRange[] getAdvisoryRanges();
public JComponent getComponent();
public Dimension getPreferredSize();
public DoubleRange[] getWarningRanges();
public void setAdvisoryRanges(DoubleRange[]);
public void setMaxValue(double);
public void setMinValue(double);
public abstract void setValue(double);
public void setWarningRanges(DoubleRange[]);
}
This class provides a superclass which is common to all graphical
dials. Both round and non round classes subclass from this class.
- Extended By:
- AnalogDial, BargraphDial, DigitalDial
public static final Color adviseColor
protected DoubleRange[] advisory
protected double maxValue
protected double minValue
public static final Color warningColor
protected DoubleRange[] warnings
public Dial()
Default constructor
public DoubleRange[] getAdvisoryRanges()
Returns the range of values which should be colored yellow. or empty
for no yellow ranges
public JComponent getComponent()
- Implements:
- getComponent in interface AwtValueReceiver
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class JComponent
public DoubleRange[] getWarningRanges()
Returns the range of values which should be colored red or empty
for no red ranges
public void setAdvisoryRanges(DoubleRange[] array)
Sets the range of values which should be colored yellow. or empty
for no yellow ranges
public void setMaxValue(double value)
public void setMinValue(double value)
public abstract void setValue(double value)
This method is needed to support the ValueReceiver interface.
A scaled dial only has bounds - it does not yet have a way of actually
displaying a result. Subclasses need to implement this method.
See Also:
ValueReceiver
public void setWarningRanges(DoubleRange[] array)
Sets the range of values which should be colored red or empty
for no red ranges
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7