All Packages Class Hierarchy This Package Previous Next Index
Class utils.GUI.AngleDisplay
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----utils.GUI.AngleDisplay
- public class AngleDisplay
- extends Canvas
provides a graphical means to show an angle,
basically as an arrow on a circle.
I have chosen to work in radians
-
AngleDisplay()
-
-
AngleDisplay(double)
- construct angle display with given initial orientation
-
getFieldColor()
-
-
getPointerColor()
-
-
getValue()
-
-
minimumSize()
-
-
paint(Graphics)
-
-
preferredSize()
-
-
resize(int, int)
-
-
setFieldColor(Color)
- sets the background of the dial
does not force repaint
-
setPointerColor(Color)
- sets the color of the pointer
does not force repaint
-
setValue(double)
- sets the direction of the arrow
this does force repaint
-
update(Graphics)
-
AngleDisplay
public AngleDisplay(double init_val)
- construct angle display with given initial orientation
AngleDisplay
public AngleDisplay()
setValue
public void setValue(double new_ang)
- sets the direction of the arrow
this does force repaint
getValue
public double getValue()
setPointerColor
public void setPointerColor(Color c)
- sets the color of the pointer
does not force repaint
getPointerColor
public Color getPointerColor()
getFieldColor
public Color getFieldColor()
setFieldColor
public void setFieldColor(Color c)
- sets the background of the dial
does not force repaint
resize
public void resize(int width,
int height)
- Overrides:
- resize in class Component
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Component
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Component
update
public void update(Graphics g)
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Canvas
All Packages Class Hierarchy This Package Previous Next Index