All Packages Class Hierarchy This Package Previous Next Index
Class utils.GUI.DoubleGraphicsDisplay
java.lang.Object
|
+----utils.GUI.DoubleGraphicsDisplay
- public class DoubleGraphicsDisplay
- extends Object
a class which allows one to draw formatted doubles
onto a component. cf. DoubleTextDisplay
-
EMPTY
-
-
DoubleGraphicsDisplay(double, int)
-
-
DoubleGraphicsDisplay(double, int, int)
-
-
DoubleGraphicsDisplay(int)
-
-
DoubleGraphicsDisplay(int, int)
-
-
draw(Graphics)
-
-
getExtent()
-
-
getHeight()
-
-
getLLCorner()
-
-
getSigFigs()
-
-
getValue()
-
-
getWidth()
-
-
measure(Font)
- establishes various internal variables, which are needed
to draw the value
-
setLLCorner(int, int)
- sets the position of the lower left corner.
-
setLLCorner(Point)
-
-
setValue(double)
- sets the value to display
EMPTY
public static final String EMPTY
DoubleGraphicsDisplay
public DoubleGraphicsDisplay(double v,
int sigfig,
int size)
- Parameters:
- v - -- the value to display
- sigfig - -- number of significant figures to display
- size - --- maximum number of charaters in the display
DoubleGraphicsDisplay
public DoubleGraphicsDisplay(double v,
int sigfig)
DoubleGraphicsDisplay
public DoubleGraphicsDisplay(int sigfig)
DoubleGraphicsDisplay
public DoubleGraphicsDisplay(int sigfig,
int size)
getSigFigs
public int getSigFigs()
- Returns:
- s the number of significant figures in display
measure
public void measure(Font abs)
- establishes various internal variables, which are needed
to draw the value
getHeight
public int getHeight()
getWidth
public int getWidth()
getExtent
public Dimension getExtent()
draw
public void draw(Graphics g)
setValue
public void setValue(double v)
- sets the value to display
getValue
public double getValue()
setLLCorner
public void setLLCorner(int x,
int y)
- sets the position of the lower left corner.
used to move the display around
setLLCorner
public void setLLCorner(Point q)
getLLCorner
public Point getLLCorner()
All Packages Class Hierarchy This Package Previous Next Index