All Packages This Package Class Hierarchy Class Search Index
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----kh.awt.Dial
|
+----kh.awt.AnalogDial
|
+----kh.awt.ScaledDial
|
+----kh.awt.HandedDial
| Summary |
public class HandedDial
extends kh.awt.ScaledDial
{
// Fields 1
public static final Color defaultHandColor;
// Constructors 1
public HandedDial(int);
// Methods 6
protected void paintComponent(Graphics);
public void setHandLength(int, double);
public void setHandLength(int, Color);
public void setHandValue(int, double);
public void setHands(double);
public void setValue(double);
}
This class adds hands to a scaled dial - each hand has a value which is expressed in terms of the values shown in the ScaledDial
| Fields |
· defaultHandColor | Summary | Top |
public static final Color defaultHandColor
| Constructors |
· HandedDial | Summary | Top |
public HandedDial(int numHands)
| Methods |
· paintComponent | Summary | Top |
protected void paintComponent(Graphics g)
- Overrides:
- paintComponent in class ScaledDial
· setHandLength | Summary | Top |
public void setHandLength(int handNum,
double length)
Parameter Description handNum is the hand to alter length is the new length for the hand. 0.0=hidden, 1.0=max
· setHandLength | Summary | Top |
public void setHandLength(int handNum,
Color c)
Parameter Description handNum is the hand to alter color is the new color for the hand
· setHandValue | Summary | Top |
public void setHandValue(int handNum,
double value)
Parameter Description handNum is the hand to alter value the position for the hand
· setHands | Summary | Top |
public void setHands(double value)
Set all hand's positions based on the divisors assocated with each hand this allows you to call one function to set all hand locations
· setValue | Summary | Top |
public void setValue(double value)
Sets the hands - after interpreting the value as a floating point #
- Overrides:
- setValue in class AnalogDial
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7