Class gjt.Bargauge
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.Bargauge

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----gjt.Bargauge

public class Bargauge
extends Canvas
A bargauge which can be filled (wholly or partially) with a client-specified color. Fill color is specified at construction time; both fill color and fill percent may be set after construction time.

See Also:
ThreeDRectangle, BargaugeTest

Constructor Index

 o Bargauge(Color)

Method Index

 o fill()
 o minimumSize()
 o paint(Graphics)
 o paramString()
 o preferredSize()
 o reshape(int, int, int, int)
 o resize(int, int)
 o setFillColor(Color)
 o setFillPercent(double)

Constructors

 o Bargauge
  public Bargauge(Color fillColor)

Methods

 o setFillColor
  public void setFillColor(Color fillColor)
 o setFillPercent
  public void setFillPercent(double percentage)
 o resize
  public void resize(int w,
                     int h)
Overrides:
resize in class Component
 o reshape
  public void reshape(int x,
                      int y,
                      int w,
                      int h)
Overrides:
reshape in class Component
 o minimumSize
  public Dimension minimumSize()
Overrides:
minimumSize in class Component
 o preferredSize
  public Dimension preferredSize()
Overrides:
preferredSize in class Component
 o paint
  public void paint(Graphics g)
Overrides:
paint in class Canvas
 o fill
  public void fill()
 o paramString
  protected String paramString()
Overrides:
paramString in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index