|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--com.elj.gauges.level.LevelGauge
This bean component allows the user to pipe the data through retrieval tools and check the level of the of data between the minimum and maximum.
This bean provides powerful designing aspects by providing following user friendly properties
Name the name of the gauge
Caption the caption of the gauge
Maximum the maximum value of the level
Minimum the minimum value of the level
CaptionFont represents the font which is used to display the caption
NumberFont represents the font which is used to display the number
BorderColor the border color
ZoneColor represents the color of the zone cell below the warning area
WarningZoneColor represents the warning area cell color
AlarmZoneColor represents the alarm area cell color which resides above the warning level
Value the current value
Warning represents bottom level of the warning area
Alarm represents the bottom level of the alarm area
| Inner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
LevelGauge()
Creates a LevelGauge. |
|
| Method Summary | |
int |
getAlarm()
Gets the alarm value specified in the level guage |
java.awt.Color |
getAlarmZoneColor()
Gets the alarm zone color of the level guage |
java.awt.Color |
getBorderColor()
Gets the border color of the level guage |
java.lang.String |
getCaption()
Gets the caption of the levelguage |
java.awt.Font |
getCaptionFont()
Gets the font style of the caption text |
java.util.Locale |
getLocale()
Returns the value of locale. |
int |
getMaximum()
Gets the maximum value of the scale in a level guage |
int |
getMinimum()
Gets the minimum value of the scale in a level guage |
java.lang.String |
getName()
Gets the name or the handle of the object |
java.awt.Font |
getNumbersFont()
Gets the font style of the numbers text |
java.awt.Dimension |
getPreferredSize()
Gets the preferred size of this bean. |
int |
getValue()
Gets the current value of the gauge |
int |
getWarning()
Gets the warning value specified in the level guage |
java.awt.Color |
getWarningZoneColor()
Gets the warning zone color of the level guage |
java.awt.Color |
getZoneColor()
Gets the zone color of the level guage |
void |
paint(java.awt.Graphics g)
Paints this bean. |
void |
readExternal(java.io.ObjectInput in)
|
void |
setAlarm(int level)
Sets the alarm level value of the gauge |
void |
setAlarmZoneColor(java.awt.Color color)
Sets the alarm zone color of the values represented in a level guage |
void |
setBackground(java.awt.Color c)
Sets the Background color. |
void |
setBorderColor(java.awt.Color color)
Sets the border color of the level guage |
void |
setBounds(int x,
int y,
int width,
int height)
Moves and resizes this bean. |
void |
setCaption(java.lang.String theCaption)
Sets the caption text of this bean |
void |
setCaptionFont(java.awt.Font f)
Sets the caption font of this bean |
void |
setCursor(java.awt.Cursor c)
Sets value of the cursor. |
void |
setEnabled(boolean b)
sets Enablity. |
void |
setFont(java.awt.Font f)
Sets the font. |
void |
setForeground(java.awt.Color c)
Sets the Foreground color. |
void |
setLocale(java.util.Locale l)
Sets value of the locale. |
void |
setMaximum(int theMaximum)
Sets the maximum level value of the gauge |
void |
setMinimum(int theMinimum)
Sets the minimum level value of the gauge |
void |
setName(java.lang.String theName)
Sets the name of this bean |
void |
setNumbersFont(java.awt.Font f)
Sets the numbers font of this bean |
void |
setValue(int theValue)
Sets the value to be represented in the level guage |
void |
setVisible(boolean b)
sets Visiblity. |
void |
setWarning(int level)
Sets the warning level value of the gauge |
void |
setWarningZoneColor(java.awt.Color color)
Sets the warning zone color of the values represented in a level guage |
void |
setZoneColor(java.awt.Color color)
Sets the zone color of the values represented in a level guage |
java.lang.String |
toString()
Returns string representation of this bean |
void |
writeExternal(java.io.ObjectOutput out)
Externalizable interface implementation to save and retrieve the state of this bean |
| Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setLayout, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBounds, setComponentOrientation, setDropTarget, setLocation, setLocation, setSize, setSize, show, show, size, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LevelGauge()
| Method Detail |
public void setMinimum(int theMinimum)
theMinimum - lowest level of the gaugepublic void setMaximum(int theMaximum)
theMaximum - highest level of the gaugepublic void setWarning(int level)
level - warning zone starts from this level valuepublic void setAlarm(int level)
level - alarm zone starts from this level valuepublic void setName(java.lang.String theName)
setName in class java.awt.ComponenttheName - specifies the name of this beanpublic void setCaption(java.lang.String theCaption)
theCaption - the caption text on this beanpublic void setCaptionFont(java.awt.Font f)
theCaption - the caption font of this beanpublic java.awt.Font getCaptionFont()
public void setNumbersFont(java.awt.Font f)
f - the numbers font of this beanpublic java.awt.Font getNumbersFont()
public void setValue(int theValue)
theValue - the value to be representedpublic void setBorderColor(java.awt.Color color)
color - a backgrond color graphics objectpublic void setZoneColor(java.awt.Color color)
color - a zone color graphics objectpublic void setWarningZoneColor(java.awt.Color color)
color - a warning zone color graphics objectpublic void setAlarmZoneColor(java.awt.Color color)
color - a alarm zone color graphics objectpublic int getMinimum()
public int getMaximum()
public java.lang.String getName()
getName in class java.awt.Componentpublic java.lang.String getCaption()
public int getValue()
public int getWarning()
public int getAlarm()
public java.awt.Color getBorderColor()
public java.awt.Color getZoneColor()
public java.awt.Color getWarningZoneColor()
public java.awt.Color getAlarmZoneColor()
public void paint(java.awt.Graphics g)
This method is called when the contents of the bean should be painted in response to the bean first being shown or damage needing repair. The clip rectangle in the Graphics parameter will be set to the area which needs to be painted. For performance reasons, Beans with zero width or height aren't considered to need painting when they are first shown, and also aren't considered to need repair.
paint in class java.awt.Containerg - the graphics context to use for painting.public java.lang.String toString()
toString in class java.awt.Component
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class java.awt.Componentx - x-coordinate of this bean.y - y-coordinate of this bean.width - the new width of this bean.height - the new height of this bean.public void setForeground(java.awt.Color c)
setForeground in class java.awt.ComponentnewColor - New text color.public void setBackground(java.awt.Color c)
setBackground in class java.awt.ComponentnewColor - New background color.public void setFont(java.awt.Font f)
setFont in class java.awt.Containerfont - The value of font to be set.public void setVisible(boolean b)
setVisible in class java.awt.Componentb - flag representing visibility of bean.public void setEnabled(boolean b)
setEnabled in class java.awt.Componentb - flag representing enability of bean.public void setLocale(java.util.Locale l)
setLocale in class java.awt.Componentl - current value of the locale.public java.util.Locale getLocale()
getLocale in class java.awt.Componentpublic void setCursor(java.awt.Cursor c)
setCursor in class java.awt.Componentc - current value of the cursor.public java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Container
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizable
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizable
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||