|
ElegantJ Gauges Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
com.elegantj.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
KeyboardEnabled represents the keyboard enability to increase or decrease the value
IndicatorType the indicator type such as up to down, down to up, left to right or right to left
IndicatorGap the gap between two consecutive indicating parts
TickValuesVisible the tick values visibility
InnerBorder the inner border of the gauge
OuterBorder the outer border of the gauge
BorderGap the gap between inner border and outer border
ActiveIndicatorOn the mouse activity to move the indicator such as move on mouse click or mouse drag
TickZoneGap the gap between indicator and ticks
ValuesZoneGap the gap between indicator and tick values
Caption the caption text to be displayed
CaptionFont the caption text font style
CaptionColor the caption text color
CaptionLocation the caption text location
MajorTickSpacing the gap between two consecutive major ticks
MajorTickColor the major tick color
MajorTickLength the major tick length
MajorTickWidth the major tick width
MinorTickSpacing the gap between two consecutive minor ticks
MinorTickColor the minor tick color
MinorTickLength the minor tick length
MinorTickWidth the minor tick width
HeaderVisible the header visibility
HeaderText the text to be displayed on header
HeaderFont the header text font style
HeaderBackground the header background
HeaderForeground the header text color
HeaderSpacing the spacing above and below the header text
FooterVisible the footer visibility
FooterText the text to be displayed on footer
FooterFont the footer text font style
FooterBackground the footer background
FooterForeground the foooter text color
FooterSpacing the spacing above and below the footer text
Minimum the minimum value of the scale
Maximum the maximum value of the scale
Value the indicator value
Warning the lowest value of the warning zone area
Alarm the lowest value of the alarm zone area
ZoneColor the normal zone background color
WarningZoneColor the warning zone background color
AlarmZoneColor the alarm zone background color
ActiveZoneColor the normal zone color of the values, when it is active
ActiveWarningZoneColor the warning zone color of the values, when it is active
ActiveAlarmZoneColorthe alarm zone color of the values, when it is active
DisabledZoneColor the normal zone color of the values, when it is active and disabled
DisabledWarningZoneColor the warning zone color of the values, when it is active and disabled
DisabledAlarmZoneColor the alarm zone color of the values, when it is active and disabled
| Nested Class Summary |
| Nested classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static int |
BLOCK_DECREMENT
Specifies the block decrement of a value |
static int |
BLOCK_INCREMENT
Specifies the block increment of a value |
com.elegantj.editors.C1 |
c1
|
static int |
DOWN_UP_INDICATOR
Indicates values down to up |
static int |
LEFT_RIGHT_INDICATOR
Indicates values left to right |
static int |
LOWERED
Lowered border |
static int |
MAXIMUM
Specifies the maximum value |
static int |
MINIMUM
Specifies the minimum value |
static int |
MOVE_OFF
Does not move indicator on any mouse activity |
static int |
MOVE_ON_MOUSE_DRAG
Moves indicator on mouse click |
static int |
MOVE_ON_MOUSE_PRESS
Moves indicator on mouse drag |
static int |
NONE
No border |
static int |
POINT1
point 1 border width |
static int |
POINT2
point 2 border width |
static int |
POINT3
point 3 border width |
static int |
POINT4
point 4 border width |
static int |
POINT5
point 5 border width |
static int |
RAISED
Raised border |
static int |
RIGHT_LEFT_INDICATOR
Indicates values right to left |
static int |
SIMPLE
Simple border |
static int |
UNIT_DECREMENT
Specifies the unit decrement of a value |
static int |
UNIT_INCREMENT
Specifies the unit increment of a value |
static int |
UP_DOWN_INDICATOR
Indicates values up to down |
| 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 | |
void |
addChangeListener(ChangeListener l)
Adds a ChangeListener |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
void |
adjustValue(int type)
Adjusts the value with given adjustment constant. |
protected void |
allocImage()
Initialize the off-screen level gauge image. |
void |
draw(java.awt.Graphics g)
Renders basic level gauge. |
void |
drawCaption(java.awt.Graphics g)
Renders caption text. |
void |
drawFooter(java.awt.Graphics g)
Renders footer text. |
void |
drawHeader(java.awt.Graphics g)
Renders header text. |
void |
drawMajorTicks(java.awt.Graphics g)
Renders the major ticks of the gauge. |
void |
drawMinorTicks(java.awt.Graphics g)
Renders the minor ticks of the gauge. |
void |
drawValues(java.awt.Graphics g)
Renders values of the levels. |
void |
drawZones(java.awt.Graphics g)
Renders all the level zones. |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Support for reporting bound property This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners. |
void |
fireValueChange(int oldValue,
int newValue)
Invokes this method when the value has been changed |
java.awt.Color |
getActiveAlarmZoneColor()
Gets the alarm zone color of the level guage, when it is active |
int |
getActiveIndicatorOn()
Gets the mouse activity to move the indicator |
java.awt.Color |
getActiveWarningZoneColor()
Gets the warning zone color of the level guage, when it is active |
java.awt.Color |
getActiveZoneColor()
Gets the normal zone color of the level guage, when it is active |
int |
getAdjustedBorderGap()
Gets the gap between inner border and outer border adjusted to the gauge |
java.awt.Point |
getAdjustedCaptionLocation()
Gets the caption location adjusted to the gauge |
int |
getAdjustedIndicatorGap()
Gets the gap between indicating parts adjusted to the gauge |
int |
getAdjustedMajorTickLength()
Gets the major tick length adjusted to the gauge |
int |
getAdjustedMajorTickWidth()
Gets the major tick width adjusted to the gauge |
int |
getAdjustedMinorTickLength()
Gets the minor tick length adjusted to the gauge |
int |
getAdjustedMinorTickWidth()
Gets the minor tick width adjusted to the gauge |
int |
getAdjustedTickZoneGap()
Gets the gap between ticks and zone adjusted to the gauge |
int |
getAdjustedValuesZoneGap()
Gets the gap between tick values and zone adjusted to the gauge |
int |
getAlarm()
Gets the alarm value specified in the level guage |
java.awt.Color |
getAlarmZoneColor()
Gets the alarm zone background color |
int |
getBlockIncrement(int direction)
Returns the amount to change the value by, given a block (usually "page") up/down request. |
java.awt.Color |
getBorderColor()
Gets the outer border color of the level guage |
int |
getBorderGap()
Gets the gap between inner border and outer border |
java.lang.String |
getCaption()
Gets the caption text |
java.awt.Color |
getCaptionColor()
Gets the caption text color |
java.awt.Font |
getCaptionFont()
Gets the caption text font |
java.awt.Point |
getCaptionLocation()
Gets the caption text location. |
java.awt.Color |
getDisabledAlarmZoneColor()
Gets the alarm zone color of the level guage, when it is active and disabled |
java.awt.Color |
getDisabledWarningZoneColor()
Gets the warning zone color of the level guage, when it is active and disabled |
java.awt.Color |
getDisabledZoneColor()
Gets the normal zone color of the level guage, when it is active and disabled |
java.awt.Color |
getFooterBackground()
Gets the footer background color |
java.awt.Font |
getFooterFont()
Gets the footer font |
java.awt.Color |
getFooterForeground()
Gets the footer foreground color |
int |
getFooterHeight()
Returns the footer height, 0 if header is not visible |
int |
getFooterSpacing()
Gets the spacing above and below the footer text |
java.lang.String |
getFooterText()
Gets the text to be displayed on footer |
java.awt.Color |
getHeaderBackground()
Gets the header background color |
java.awt.Font |
getHeaderFont()
Gets the header font |
java.awt.Color |
getHeaderForeground()
Gets the header foreground color |
int |
getHeaderHeight()
Returns the header height, 0 if header is not visible |
int |
getHeaderSpacing()
Gets the spacing above and below the header text |
java.lang.String |
getHeaderText()
Gets the text to be displayed on header |
java.awt.Rectangle |
getIndicatorBounds()
Returns the indcator bounds |
int |
getIndicatorGap()
Gets the gap between two consecutive indicating parts |
int |
getIndicatorType()
Gets the indicator type |
GaugeBorder |
getInnerBorder()
Gets the inner border of the gauge |
java.lang.String |
getLicenseKey()
Gets the license key |
java.util.Locale |
getLocale()
Returns the value of locale. |
java.awt.Color |
getMajorTickColor()
Gets the major tick color |
int |
getMajorTickLength()
Gets the major tick length. |
int |
getMajorTickSpacing()
Gets the gap between two consecutive major ticks |
int |
getMajorTickWidth()
Gets the major tick width. |
int |
getMaximum()
Gets the maximum value of the scale |
int |
getMinimum()
Gets the minimum value of the scale |
java.awt.Color |
getMinorTickColor()
Gets the minor tick color |
int |
getMinorTickLength()
Gets the minor tick length. |
int |
getMinorTickSpacing()
Gets the gap between two consecutive minor ticks |
int |
getMinorTickWidth()
Gets the minor tick width. |
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 |
GaugeBorder |
getOuterBorder()
Gets the outer border of the gauge |
java.awt.Dimension |
getPreferredSize()
Gets the preferred size of this bean. |
int |
getTickZoneGap()
Gets the gap between ticks and indicator |
int |
getUnitIncrement(int direction)
Returns the amount to change the value by, given a unit up/down request. |
int |
getValue()
Gets the current value of the gauge |
int |
getValuesZoneGap()
Gets the gap between tick values and indicator |
int |
getWarning()
Gets the warning value specified in the level guage |
java.awt.Color |
getWarningZoneColor()
Gets the warning zone background color |
java.awt.Color |
getZoneColor()
Gets the normal zone background color |
boolean |
isFocusTraversable()
Returns the value of a flag that indicates whether this component can be traversed using Tab or Shift-Tab keyboard focus traversal. |
boolean |
isFooterVisible()
Gets the footer visibility |
boolean |
isHeaderVisible()
Gets the header visibility |
boolean |
isKeyboardEnabled()
Gets the enability to increase or decrease the value by keyboard navigation |
boolean |
isLightweight()
Returns true if this Component is displayable |
boolean |
isTickValuesVisible()
Gets the tick values visibility |
void |
paint(java.awt.Graphics g)
Paints this component. |
protected void |
processKeyEvent(java.awt.event.KeyEvent e)
|
protected void |
processMouseEvent(java.awt.event.MouseEvent e)
|
protected void |
processMouseMotionEvent(java.awt.event.MouseEvent e)
|
void |
readExternal(java.io.ObjectInput in)
|
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
void |
renderCustomFeatures(java.awt.Graphics g)
Renders any extra gadgets or embellishments to the level gauge. |
void |
renderImage()
Renders Image. |
void |
setActiveAlarmZoneColor(java.awt.Color color)
Sets the alarm zone color of the values, when it is active |
void |
setActiveIndicatorOn(int nType)
Sets the mouse activity to move the indicator |
void |
setActiveWarningZoneColor(java.awt.Color color)
Sets the warning zone color of the values, when it is active |
void |
setActiveZoneColor(java.awt.Color color)
Sets the normal zone color of the values, when it is active |
void |
setAlarm(int level)
Sets the alarm level value of the gauge |
void |
setAlarmZoneColor(java.awt.Color color)
Sets the alarm zone background color |
void |
setBackground(java.awt.Color c)
Sets the Background color. |
void |
setBorderColor(java.awt.Color color)
Deprecated. use SetOuterBorder |
void |
setBorderGap(int nGap)
Sets the gap between inner border and outer border, Considers default value, if it is -1 |
void |
setBounds(int x,
int y,
int width,
int height)
Moves and resizes this bean. |
void |
setCaption(java.lang.String s)
Sets the caption text |
void |
setCaptionColor(java.awt.Color theColor)
Sets the caption text color |
void |
setCaptionFont(java.awt.Font theFont)
Sets the caption text font |
void |
setCaptionLocation(java.awt.Point thePoint)
Sets the caption text location. |
void |
setCursor(java.awt.Cursor c)
Sets value of the cursor. |
void |
setDisabledAlarmZoneColor(java.awt.Color color)
Sets the alarm zone color of the values, when it is active and disabled |
void |
setDisabledWarningZoneColor(java.awt.Color color)
Sets the warning zone color of the values, when it is active and disabled |
void |
setDisabledZoneColor(java.awt.Color color)
Sets the normal zone color of the values, when it is active and disabled |
void |
setEnabled(boolean b)
sets Enablity. |
void |
setFont(java.awt.Font f)
Sets the font. |
void |
setFooterBackground(java.awt.Color theColor)
Sets the footer background color |
void |
setFooterFont(java.awt.Font theFont)
Sets the footer font |
void |
setFooterForeground(java.awt.Color theColor)
Sets the footer foreground color |
void |
setFooterSpacing(int spacing)
Sets the spacing above and below the footer text |
void |
setFooterText(java.lang.String s)
Sets the text to be displayed on footer |
void |
setFooterVisible(boolean b)
Sets the footer visibility |
void |
setForeground(java.awt.Color c)
Sets the Foreground color. |
void |
setHeaderBackground(java.awt.Color theColor)
Sets the header background color |
void |
setHeaderFont(java.awt.Font theFont)
Sets the header font |
void |
setHeaderForeground(java.awt.Color theColor)
Sets the header foreground color |
void |
setHeaderSpacing(int spacing)
Sets the spacing above and below the header text |
void |
setHeaderText(java.lang.String s)
Sets the text to be displayed on header |
void |
setHeaderVisible(boolean b)
Sets the header visibility |
void |
setIndicatorGap(int nGap)
Sets the gap between two consecutive indicating parts, Considers default value, if it is -1 |
void |
setIndicatorType(int nType)
Sets the Indicator Type such as left to right, tight to left, up to down or down to up |
void |
setInnerBorder(GaugeBorder border)
Sets the inner border of the gauge |
void |
setKeyboardEnabled(boolean b)
Sets the enability to increase or decrease the value by keyboard navigation such as (up, down, page up, page down, home and end) |
void |
setLicenseKey(java.lang.String key)
Sets the license key |
void |
setLocale(java.util.Locale l)
Sets value of the locale. |
void |
setMajorTickColor(java.awt.Color theColor)
Sets the major tick color |
void |
setMajorTickLength(int val)
Sets the major tick length. |
void |
setMajorTickSpacing(int spacing)
Sets the gap between two consecutive major ticks |
void |
setMajorTickWidth(int val)
Sets the major tick width. |
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 |
setMinorTickColor(java.awt.Color theColor)
Sets the minor tick color |
void |
setMinorTickLength(int val)
Sets the minor tick length. |
void |
setMinorTickSpacing(int spacing)
Sets the gap between two consecutive minor ticks |
void |
setMinorTickWidth(int val)
Sets the minor tick width. |
void |
setName(java.lang.String theName)
Sets the name of this bean |
void |
setNumbersFont(java.awt.Font f)
Deprecated. use SetFont |
void |
setOuterBorder(GaugeBorder border)
Sets the outer border of the gauge |
void |
setPointValue(int x,
int y)
Sets the value of the given point co-ordinates |
void |
setTickValuesVisible(boolean b)
Sets the tick values visibility |
void |
setTickZoneGap(int nGap)
Sets the gap between ticks and indicator, Considers default value, if it is -1 |
void |
setValue(int theValue)
Sets the value to be represented in the level guage |
void |
setValuesZoneGap(int nGap)
Sets the gap between tick values and indicator, Considers default value, if it is -1 |
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 background color |
void |
setZoneColor(java.awt.Color color)
Sets the normal zone background color |
java.lang.String |
toString()
Returns string representation of this bean |
void |
update(java.awt.Graphics g)
Updates this component |
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, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int POINT1
public static final int POINT2
public static final int POINT3
public static final int POINT4
public static final int POINT5
public static final int NONE
public static final int SIMPLE
public static final int RAISED
public static final int LOWERED
public static final int MOVE_ON_MOUSE_DRAG
public static final int MOVE_ON_MOUSE_PRESS
public static final int MOVE_OFF
public static final int LEFT_RIGHT_INDICATOR
public static final int RIGHT_LEFT_INDICATOR
public static final int UP_DOWN_INDICATOR
public static final int DOWN_UP_INDICATOR
public static final int UNIT_INCREMENT
public static final int UNIT_DECREMENT
public static final int BLOCK_INCREMENT
public static final int BLOCK_DECREMENT
public static final int MAXIMUM
public static final int MINIMUM
public transient com.elegantj.editors.C1 c1
| Constructor Detail |
public LevelGauge()
| Method Detail |
public void setLicenseKey(java.lang.String key)
key - the license keypublic java.lang.String getLicenseKey()
public void setName(java.lang.String theName)
theName - specifies the name of this beanpublic java.lang.String getName()
public void setKeyboardEnabled(boolean b)
b - true to enable the keyboard navigationpublic boolean isKeyboardEnabled()
public void setIndicatorType(int nType)
nType - one of the constants : LEFT_RIGHT_INDICATOR, RIGHT_LEFT_INDICATOR,
TOP_BOTTOM_INDICATOR, BOTTOM_TOP_INDICATORpublic int getIndicatorType()
public void setIndicatorGap(int nGap)
nGap - the gap between two consecutive indicating partspublic int getIndicatorGap()
public void setTickValuesVisible(boolean b)
b - true to visible the tick valuespublic boolean isTickValuesVisible()
public void setInnerBorder(GaugeBorder border)
border - the inner border of the gaugepublic GaugeBorder getInnerBorder()
public void setOuterBorder(GaugeBorder border)
border - the outer border of the gaugepublic GaugeBorder getOuterBorder()
public void setBorderGap(int nGap)
nGap - the gap between inner border and outer borderpublic int getBorderGap()
public void setActiveIndicatorOn(int nType)
nType - one of the constants : MOVE_ON_MOUSE_DRAG, MOVE_ON_MOUSE_CLICK, MOVE_OFFpublic int getActiveIndicatorOn()
public void setTickZoneGap(int nGap)
nGap - the gap between ticks and indicatorpublic int getTickZoneGap()
public void setValuesZoneGap(int nGap)
nGap - the gap between tick values and indicatorpublic int getValuesZoneGap()
public void setCaption(java.lang.String s)
s - a string specifies the captionpublic java.lang.String getCaption()
public void setCaptionFont(java.awt.Font theFont)
theFont - a Font specifies the caption text fontpublic java.awt.Font getCaptionFont()
public void setCaptionColor(java.awt.Color theColor)
theColor - a Color specifies the caption text colorpublic java.awt.Color getCaptionColor()
public void setCaptionLocation(java.awt.Point thePoint)
thePoint - a Point specifies the caption text locationpublic java.awt.Point getCaptionLocation()
public void setMajorTickSpacing(int spacing)
spacing - the gap between two consecutive major tickspublic int getMajorTickSpacing()
public void setMajorTickColor(java.awt.Color theColor)
theColor - the major tick colorpublic java.awt.Color getMajorTickColor()
public void setMajorTickLength(int val)
val - the major tick lengthpublic int getMajorTickLength()
public void setMajorTickWidth(int val)
val - the major tick widthpublic int getMajorTickWidth()
public void setMinorTickSpacing(int spacing)
spacing - the gap between two consecutive minor tickspublic int getMinorTickSpacing()
public void setMinorTickColor(java.awt.Color theColor)
theColor - the minor tick colorpublic java.awt.Color getMinorTickColor()
public void setMinorTickLength(int val)
val - the minor tick lengthpublic int getMinorTickLength()
public void setMinorTickWidth(int val)
val - the minor tick widthpublic int getMinorTickWidth()
public void setHeaderVisible(boolean b)
b - true to visible the headerpublic boolean isHeaderVisible()
public void setHeaderText(java.lang.String s)
s - the header textpublic java.lang.String getHeaderText()
public void setHeaderFont(java.awt.Font theFont)
theFont - the header fontpublic java.awt.Font getHeaderFont()
public void setHeaderBackground(java.awt.Color theColor)
theColor - the header background colorpublic java.awt.Color getHeaderBackground()
public void setHeaderForeground(java.awt.Color theColor)
theColor - the header foreground colorpublic java.awt.Color getHeaderForeground()
public void setHeaderSpacing(int spacing)
spacing - the spacing above and below the header textpublic int getHeaderSpacing()
public void setFooterVisible(boolean b)
b - true to visible the footerpublic boolean isFooterVisible()
public void setFooterText(java.lang.String s)
s - the footer textpublic java.lang.String getFooterText()
public void setFooterFont(java.awt.Font theFont)
theFont - the footer fontpublic java.awt.Font getFooterFont()
public void setFooterBackground(java.awt.Color theColor)
theColor - the footer background colorpublic java.awt.Color getFooterBackground()
public void setFooterForeground(java.awt.Color theColor)
theColor - the footer foreground colorpublic java.awt.Color getFooterForeground()
public void setFooterSpacing(int spacing)
spacing - the spacing above and below the footer textpublic int getFooterSpacing()
public void setMinimum(int theMinimum)
theMinimum - lowest level of the gaugepublic int getMinimum()
public void setMaximum(int theMaximum)
theMaximum - highest level of the gaugepublic int getMaximum()
public void setValue(int theValue)
theValue - the value to be representedpublic int getValue()
public void setWarning(int level)
level - warning zone starts from this level valuepublic int getWarning()
public void setAlarm(int level)
level - alarm zone starts from this level valuepublic int getAlarm()
public void setZoneColor(java.awt.Color color)
color - a normal zone background colorpublic java.awt.Color getZoneColor()
public void setWarningZoneColor(java.awt.Color color)
color - a warning zone background colorpublic java.awt.Color getWarningZoneColor()
public void setAlarmZoneColor(java.awt.Color color)
color - a alarm zone background colorpublic java.awt.Color getAlarmZoneColor()
public void setActiveZoneColor(java.awt.Color color)
color - an active normal zone colorpublic java.awt.Color getActiveZoneColor()
public void setActiveWarningZoneColor(java.awt.Color color)
color - an active warning zone colorpublic java.awt.Color getActiveWarningZoneColor()
public void setActiveAlarmZoneColor(java.awt.Color color)
color - an active alarm zone colorpublic java.awt.Color getActiveAlarmZoneColor()
public void setDisabledZoneColor(java.awt.Color color)
color - a disabled normal zone colorpublic java.awt.Color getDisabledZoneColor()
public void setDisabledWarningZoneColor(java.awt.Color color)
color - a disabled warning zone colorpublic java.awt.Color getDisabledWarningZoneColor()
public void setDisabledAlarmZoneColor(java.awt.Color color)
color - a disabled alarm zone colorpublic java.awt.Color getDisabledAlarmZoneColor()
public void setNumbersFont(java.awt.Font f)
f - the numbers font of this beanpublic java.awt.Font getNumbersFont()
public void setBorderColor(java.awt.Color color)
color - a outer border colorpublic java.awt.Color getBorderColor()
protected void allocImage()
public void update(java.awt.Graphics g)
public void paint(java.awt.Graphics g)
g - the graphics context to use for painting.public void renderImage()
public void draw(java.awt.Graphics g)
public void drawZones(java.awt.Graphics g)
public void drawMajorTicks(java.awt.Graphics g)
public void drawMinorTicks(java.awt.Graphics g)
public void drawValues(java.awt.Graphics g)
public void drawCaption(java.awt.Graphics g)
public void drawHeader(java.awt.Graphics g)
public void drawFooter(java.awt.Graphics g)
public void renderCustomFeatures(java.awt.Graphics g)
public void setPointValue(int x,
int y)
public void adjustValue(int type)
type - the one of the constants : UNIT_INCREMENT, UNIT_DECREMENT, BLOCK_INCREMENT,
BLOCK_DECREMENT, MAXIMUM, MINIMUMpublic int getUnitIncrement(int direction)
public int getBlockIncrement(int direction)
public java.awt.Rectangle getIndicatorBounds()
public int getHeaderHeight()
public int getFooterHeight()
public int getAdjustedIndicatorGap()
public int getAdjustedBorderGap()
public int getAdjustedTickZoneGap()
public int getAdjustedValuesZoneGap()
public java.awt.Point getAdjustedCaptionLocation()
public int getAdjustedMajorTickLength()
public int getAdjustedMajorTickWidth()
public int getAdjustedMinorTickLength()
public int getAdjustedMinorTickWidth()
protected void processKeyEvent(java.awt.event.KeyEvent e)
protected void processMouseEvent(java.awt.event.MouseEvent e)
protected void processMouseMotionEvent(java.awt.event.MouseEvent e)
public void setBounds(int x,
int y,
int width,
int height)
x - 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)
public void setBackground(java.awt.Color c)
public void setFont(java.awt.Font f)
public void setVisible(boolean b)
b - flag representing visibility of bean.public void setEnabled(boolean b)
b - flag representing enability of bean.public void setLocale(java.util.Locale l)
l - current value of the locale.public java.util.Locale getLocale()
public void setCursor(java.awt.Cursor c)
c - current value of the cursor.public boolean isFocusTraversable()
public boolean isLightweight()
public java.awt.Dimension getPreferredSize()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
A PropertyChangeEvent will get fired in response to an explicit setFont, setBackground, or SetForeground on the current component. Note that if the current component is inheriting its foreground, background, or font from its container, then no event will be fired in response to a change in the inherited property. If listener is null, no exception is thrown and no action is performed.
listener - The PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The PropertyChangeListener to be removed
protected void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
public void addChangeListener(ChangeListener l)
public void removeChangeListener(ChangeListener l)
public void fireValueChange(int oldValue,
int newValue)
oldValue - the old valuenewValue - the new (changed) value
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundExceptionpublic java.lang.String toString()
|
ElegantJ Gauges Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||