All Packages  This Package  Class Hierarchy  Class Search  Index

Class kh.awt.AnalogDial
java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----kh.awt.Dial
                                   |
                                   +----kh.awt.AnalogDial

  Summary

public abstract class  AnalogDial
     extends kh.awt.Dial
{
          // Fields 1
     public static final Color defaultFaceColor;

          // Constructors 1
     public AnalogDial();

          // Methods 5
     protected Point getCenter();
     protected int getMaxRadius();
     protected Point getPoint(double, int);
     protected void paintComponent(Graphics);
     public abstract void setValue(double);
}

This class provides round dials - you probably want HandedDial for most uses.


  Cross Reference

Extended By:
ScaledDial





  Fields

· defaultFaceColor

Summary  |  Top
   public static final Color defaultFaceColor


  Constructors

· AnalogDial

Summary  |  Top

   public AnalogDial() 

Default constructor



  Methods

· getCenter

Summary  |  Top
   protected Point getCenter() 


· getMaxRadius

Summary  |  Top
   protected int getMaxRadius() 


· getPoint

Summary  |  Top
   protected Point getPoint(double angle, 
                            int radius) 


· paintComponent

Summary  |  Top
   protected void paintComponent(Graphics g) 
Overrides:
paintComponent in class JComponent


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

Overrides:
setValue in class Dial

See Also: ValueReceiver



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7