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


Constructor Index

 o AngleDisplay()
 o AngleDisplay(double)
construct angle display with given initial orientation

Method Index

 o getFieldColor()
 o getPointerColor()
 o getValue()
 o minimumSize()
 o paint(Graphics)
 o preferredSize()
 o resize(int, int)
 o setFieldColor(Color)
sets the background of the dial does not force repaint
 o setPointerColor(Color)
sets the color of the pointer does not force repaint
 o setValue(double)
sets the direction of the arrow this does force repaint
 o update(Graphics)

Constructors

 o AngleDisplay
 public AngleDisplay(double init_val)
construct angle display with given initial orientation

 o AngleDisplay
 public AngleDisplay()

Methods

 o setValue
 public void setValue(double new_ang)
sets the direction of the arrow this does force repaint

 o getValue
 public double getValue()
 o setPointerColor
 public void setPointerColor(Color c)
sets the color of the pointer does not force repaint

 o getPointerColor
 public Color getPointerColor()
 o getFieldColor
 public Color getFieldColor()
 o setFieldColor
 public void setFieldColor(Color c)
sets the background of the dial does not force repaint

 o resize
 public void resize(int width,
                    int height)
Overrides:
resize in class Component
 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Component
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Component
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Canvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index