All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.beans.gauge.BlockIndicator
java.lang.Object
|
+----java.awt.Component
|
+----COM.ibm.beans.gauge.BaseGauge
|
+----COM.ibm.beans.gauge.BlockIndicator
- public class BlockIndicator
- extends BaseGauge
- implements Serializable
This gauge is composed of a horizontal or vertical array of
rectangular blocks. The range of possible values is shown by tick
marks. As the gauge value changes blocks are added or removed one
by one.
One way to use this gauge is to specify a changeover point
together with positive and negative colors. For positive values
blocks are drawn in the positive color extending up or right from
the changeover point. For negative values blocks are drawn in the
negative color extending down or left from the changeover point.
Alternatively an array of colors can be provided, which are
used for the blocks. If the number of blocks exceeds the number
of colors provided the final color is used for the remaining
blocks.
BlockIndicator()
- Default constructor
copyright()
-
getBlockHeight()
- 'get' accessor method for blockHeight property
getBlocks()
- 'get' accessor method for blocks property
getBlockWidth()
- 'get' accessor method for blockWidth property
getChangeOver()
- 'get' accessor method for changeOver property
getHorizontal()
- 'get' accessor method for horizontal property
getMinimumSize()
- Returns the minimum size for this gauge
getNegative()
- 'get' accessor method for negative property
getPositive()
- 'get' accessor method for positive property
getSpacing()
- 'get' accessor method for spacing property
paint(Graphics,
Dimension, long, long, long, boolean, long, long, long)
- Paint the gauge.
setBackground(Color)
- 'set' accessor method for background property
setBlockHeight(int)
- 'set' accessor method for blockHeight property
setBlocks(int)
- 'set' accessor method for blocks property
setBlockWidth(int)
- 'set' accessor method for blockWidth property
setChangeOver(long)
- 'set' accessor method for changeOver property
setHorizontal(boolean)
- 'set' accessor method for horizontal property
setNegative(Color)
- 'set' accessor method for negative property
setPositive(Color)
- 'set' accessor method for positive property
setSpacing(int)
- 'set' accessor method for spacing property
BlockIndicator
public BlockIndicator()
- Default constructor
copyright
public static String copyright()
setBlocks
public void setBlocks(int newvalue)
- 'set' accessor method for blocks property
getBlocks
public int getBlocks()
- 'get' accessor method for blocks property
setBlockWidth
public void setBlockWidth(int newvalue)
- 'set' accessor method for blockWidth property
getBlockWidth
public int getBlockWidth()
- 'get' accessor method for blockWidth property
setBlockHeight
public void setBlockHeight(int newvalue)
- 'set' accessor method for blockHeight property
getBlockHeight
public int getBlockHeight()
- 'get' accessor method for blockHeight property
setSpacing
public void setSpacing(int newvalue)
- 'set' accessor method for spacing property
getSpacing
public int getSpacing()
- 'get' accessor method for spacing property
setHorizontal
public void setHorizontal(boolean newbool)
- 'set' accessor method for horizontal property
getHorizontal
public boolean getHorizontal()
- 'get' accessor method for horizontal property
setPositive
public void setPositive(Color newcolor)
- 'set' accessor method for positive property
getPositive
public Color getPositive()
- 'get' accessor method for positive property
setNegative
public void setNegative(Color newcolor)
- 'set' accessor method for negative property
getNegative
public Color getNegative()
- 'get' accessor method for negative property
setChangeOver
public void setChangeOver(long newvalue)
- 'set' accessor method for changeOver property
getChangeOver
public long getChangeOver()
- 'get' accessor method for changeOver property
setBackground
public void setBackground(Color newcolor)
- 'set' accessor method for background property
- Overrides:
- setBackground
in class Component
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum size for this gauge
- Overrides:
- getMinimumSize
in class Component
paint
public void paint(Graphics g,
Dimension s,
long value,
long minimum,
long maximum,
boolean incremental,
long previousDisplayValue,
long previousMinimum,
long previousMaximum)
- 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.