All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.beans.gauge.Needle
java.lang.Object
|
+----java.awt.Component
|
+----COM.ibm.beans.gauge.BaseGauge
|
+----COM.ibm.beans.gauge.Needle
- public class Needle
- extends BaseGauge
- implements Serializable
This gauge is semicircular with a swinging needle. A color
gradient may be provided to hilight segments of the gauge range.
A title may also be drawn.
Needle()
- Default constructor
copyright()
-
getBarStyle()
- 'get' accessor method for barStyle property
getGradientOutside()
- 'set' accessor method for gradientOutside property
getMinimumSize()
- Returns the minimum required size for this gauge
getNeedleColor()
- 'get' accessor method for the needleColor property
getTicks()
- 'get' accessor method for the ticks property
getTitle()
- 'get' accessor method for the title property
paint(Graphics,
Dimension, long, long, long, boolean, long, long, long)
- Paint the gauge.
paintHighlight(Graphics,
Dimension)
- Override this method to paint on top of the gauge.
setBackground(Color)
- 'set' accessor method for background property
setBarStyle(int)
- 'set' accessor method for barStyle property
setBounds(int,
int, int, int)
- Over-ridden Component method to reset images and
dimensions when the gauge is resized
setForeground(Color)
- 'set' accessor method for foreground property
setGradient(ColorGradient)
-
setGradientOutside(boolean)
- 'set' accessor method for gradientOutside property
setNeedleColor(Color)
- 'set' accessor method for the needleColor property
setTicks(int)
- 'set' accessor method for the ticks property
setTitle(String)
- 'set' accessor method for the title property
Needle
public Needle()
- Default constructor
copyright
public static String copyright()
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum required size for this gauge
- Overrides:
- getMinimumSize
in class Component
setBounds
public synchronized void setBounds(int x,
int y,
int w,
int h)
- Over-ridden Component method to reset images and
dimensions when the gauge is resized
- Overrides:
- setBounds
in class Component
setTicks
public void setTicks(int newvalue)
- 'set' accessor method for the ticks property
getTicks
public int getTicks()
- 'get' accessor method for the ticks property
setTitle
public void setTitle(String newtitle)
- 'set' accessor method for the title property
getTitle
public String getTitle()
- 'get' accessor method for the title property
setNeedleColor
public void setNeedleColor(Color newcolor)
- 'set' accessor method for the needleColor property
getNeedleColor
public Color getNeedleColor()
- 'get' accessor method for the needleColor property
setGradient
protected void setGradient(ColorGradient newgrad)
setBarStyle
public void setBarStyle(int style)
- 'set' accessor method for barStyle property
getBarStyle
public int getBarStyle()
- 'get' accessor method for barStyle property
setGradientOutside
public void setGradientOutside(boolean newbool)
- 'set' accessor method for gradientOutside property
getGradientOutside
public boolean getGradientOutside()
- 'set' accessor method for gradientOutside property
setForeground
public synchronized void setForeground(Color newcolor)
- 'set' accessor method for foreground property
- Overrides:
- setForeground
in class Component
setBackground
public synchronized void setBackground(Color newcolor)
- 'set' accessor method for background property
- Overrides:
- setBackground
in class Component
paintHighlight
protected synchronized void paintHighlight(Graphics g,
Dimension size)
- Override this method to paint on top of the gauge.
paint
public synchronized void paint(Graphics g,
Dimension d,
long displayvalue,
long min,
long max,
boolean incremental,
long previousdisplayvalue,
long previousmin,
long previousmax)
- Paint the gauge.
- Overrides:
- paint
in class BaseGauge
All Packages Class Hierarchy This Package Previous Next Index
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.