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.


Constructor Index

 o Needle()
Default constructor

Method Index

 o copyright()
 
 o getBarStyle()
'get' accessor method for barStyle property
 o getGradientOutside()
'set' accessor method for gradientOutside property
 o getMinimumSize()
Returns the minimum required size for this gauge
 o getNeedleColor()
'get' accessor method for the needleColor property
 o getTicks()
'get' accessor method for the ticks property
 o getTitle()
'get' accessor method for the title property
 o paint(Graphics, Dimension, long, long, long, boolean, long, long, long)
Paint the gauge.
 o paintHighlight(Graphics, Dimension)
Override this method to paint on top of the gauge.
 o setBackground(Color)
'set' accessor method for background property
 o setBarStyle(int)
'set' accessor method for barStyle property
 o setBounds(int, int, int, int)
Over-ridden Component method to reset images and dimensions when the gauge is resized
 o setForeground(Color)
'set' accessor method for foreground property
 o setGradient(ColorGradient)
 
 o setGradientOutside(boolean)
'set' accessor method for gradientOutside property
 o setNeedleColor(Color)
'set' accessor method for the needleColor property
 o setTicks(int)
'set' accessor method for the ticks property
 o setTitle(String)
'set' accessor method for the title property

Constructors

 o Needle

 public Needle()
Default constructor

Methods

 o copyright

 public static String copyright()

 o getMinimumSize

 public Dimension getMinimumSize()
Returns the minimum required size for this gauge
Overrides:
getMinimumSize in class Component

 o 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

 o setTicks

 public void setTicks(int newvalue)
'set' accessor method for the ticks property

 o getTicks

 public int getTicks()
'get' accessor method for the ticks property

 o setTitle

 public void setTitle(String newtitle)
'set' accessor method for the title property

 o getTitle

 public String getTitle()
'get' accessor method for the title property

 o setNeedleColor

 public void setNeedleColor(Color newcolor)
'set' accessor method for the needleColor property

 o getNeedleColor

 public Color getNeedleColor()
'get' accessor method for the needleColor property

 o setGradient

 protected void setGradient(ColorGradient newgrad)

 o setBarStyle

 public void setBarStyle(int style)
'set' accessor method for barStyle property

 o getBarStyle

 public int getBarStyle()
'get' accessor method for barStyle property

 o setGradientOutside

 public void setGradientOutside(boolean newbool)
'set' accessor method for gradientOutside property

 o getGradientOutside

 public boolean getGradientOutside()
'set' accessor method for gradientOutside property

 o setForeground

 public synchronized void setForeground(Color newcolor)
'set' accessor method for foreground property
Overrides:
setForeground in class Component

 o setBackground

 public synchronized void setBackground(Color newcolor)
'set' accessor method for background property
Overrides:
setBackground in class Component

 o paintHighlight

 protected synchronized void paintHighlight(Graphics g,
                                            Dimension size)
Override this method to paint on top of the gauge.

 o 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.