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

  Summary

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.


  Cross Reference

Extended By:
AnalogDial, BargraphDial, DigitalDial





  Fields

· adviseColor

Summary  |  Top
   public static final Color adviseColor


· advisory

Summary  |  Top
   protected DoubleRange[] advisory


· maxValue

Summary  |  Top
   protected double maxValue


· minValue

Summary  |  Top
   protected double minValue


· warningColor

Summary  |  Top
   public static final Color warningColor


· warnings

Summary  |  Top
   protected DoubleRange[] warnings


  Constructors

· Dial

Summary  |  Top

   public Dial() 

Default constructor



  Methods

· getAdvisoryRanges

Summary  |  Top
   public DoubleRange[] getAdvisoryRanges() 

Returns the range of values which should be colored yellow. or empty for no yellow ranges



· getComponent

Summary  |  Top
   public JComponent getComponent() 
Implements:
getComponent in interface AwtValueReceiver


· getPreferredSize

Summary  |  Top
   public Dimension getPreferredSize() 
Overrides:
getPreferredSize in class JComponent


· getWarningRanges

Summary  |  Top
   public DoubleRange[] getWarningRanges() 

Returns the range of values which should be colored red or empty for no red ranges



· setAdvisoryRanges

Summary  |  Top
   public void setAdvisoryRanges(DoubleRange[] array) 

Sets the range of values which should be colored yellow. or empty for no yellow ranges



· setMaxValue

Summary  |  Top
   public void setMaxValue(double value) 


· setMinValue

Summary  |  Top
   public void setMinValue(double value) 


· setValue

Summary  |  Top
   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



· setWarningRanges

Summary  |  Top
   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