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.


Constructor Index

 o BlockIndicator()
Default constructor

Method Index

 o copyright()
 
 o getBlockHeight()
'get' accessor method for blockHeight property
 o getBlocks()
'get' accessor method for blocks property
 o getBlockWidth()
'get' accessor method for blockWidth property
 o getChangeOver()
'get' accessor method for changeOver property
 o getHorizontal()
'get' accessor method for horizontal property
 o getMinimumSize()
Returns the minimum size for this gauge
 o getNegative()
'get' accessor method for negative property
 o getPositive()
'get' accessor method for positive property
 o getSpacing()
'get' accessor method for spacing property
 o paint(Graphics, Dimension, long, long, long, boolean, long, long, long)
Paint the gauge.
 o setBackground(Color)
'set' accessor method for background property
 o setBlockHeight(int)
'set' accessor method for blockHeight property
 o setBlocks(int)
'set' accessor method for blocks property
 o setBlockWidth(int)
'set' accessor method for blockWidth property
 o setChangeOver(long)
'set' accessor method for changeOver property
 o setHorizontal(boolean)
'set' accessor method for horizontal property
 o setNegative(Color)
'set' accessor method for negative property
 o setPositive(Color)
'set' accessor method for positive property
 o setSpacing(int)
'set' accessor method for spacing property

Constructors

 o BlockIndicator

 public BlockIndicator()
Default constructor

Methods

 o copyright

 public static String copyright()

 o setBlocks

 public void setBlocks(int newvalue)
'set' accessor method for blocks property

 o getBlocks

 public int getBlocks()
'get' accessor method for blocks property

 o setBlockWidth

 public void setBlockWidth(int newvalue)
'set' accessor method for blockWidth property

 o getBlockWidth

 public int getBlockWidth()
'get' accessor method for blockWidth property

 o setBlockHeight

 public void setBlockHeight(int newvalue)
'set' accessor method for blockHeight property

 o getBlockHeight

 public int getBlockHeight()
'get' accessor method for blockHeight property

 o setSpacing

 public void setSpacing(int newvalue)
'set' accessor method for spacing property

 o getSpacing

 public int getSpacing()
'get' accessor method for spacing property

 o setHorizontal

 public void setHorizontal(boolean newbool)
'set' accessor method for horizontal property

 o getHorizontal

 public boolean getHorizontal()
'get' accessor method for horizontal property

 o setPositive

 public void setPositive(Color newcolor)
'set' accessor method for positive property

 o getPositive

 public Color getPositive()
'get' accessor method for positive property

 o setNegative

 public void setNegative(Color newcolor)
'set' accessor method for negative property

 o getNegative

 public Color getNegative()
'get' accessor method for negative property

 o setChangeOver

 public void setChangeOver(long newvalue)
'set' accessor method for changeOver property

 o getChangeOver

 public long getChangeOver()
'get' accessor method for changeOver property

 o setBackground

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

 o getMinimumSize

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

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