|
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.dial.Dial
com.elegantj.gauges.dial.NumericDialGauge
The numeric dial gauge allows the monitoring of the data continuosly. Properties like minimum and maximum range of angles and the minimum and maximum range of values of any trignometric functions bound the values. This bean can be used to monitor the the real time system components and to control them. This bean facilitates the monitoring of data values visually and can be connected to other components. You can use Timer with this bean to view real time indication
This bean provides powerful designing aspects by providing following user friendly properties
Name represents the name of the gauge
Clockwise represents the rotation of the gauge
NewZoneValues represents the each zone description
Each zone has name, low value, high value, zone color , grad value, subgrad value, depth value
DisabledAreaColor represents the area color which has not covered by the zones
DisplayBoxVisibile represents the display box visibility
DisplayBoxColor represents the background color of the display box
DisplayTextColor represents the foreground color of the display box
DisplayText represents the text displayed on display box
DisplayTextFont represents font of the text displayed on display box
DisplayBoxBorder represents border of the display box
DisplayBoxBounds represents the display box boundaries
NeedleVisible represents the indicator visibility
NeedleColor represents the needle color
NeedleLength represents the needle length
NeedleWidth represents the needle width
NeedleTail represents the needle tail length
NeedleType represents the needle type such as linear, arrow, balls
NeedleBorder represents the border of the needle
GradColor represents the grad color
GradLength represents the grad length
GradWidth represents the grad width
GradType represents the grad type such as linear or circular
SubGradColor represents the sub grad color
SubGradLength represents the sub grad length
SubGradWidth represents the sub grad width
SubGradType represents the sub grad type such as linear or circular
Unit represents the unit text to be displayed
UnitColor represents the unit text color
UnitFont represents the unit text font
UnitLocation represents the unit text location
InnerDialColor represents the inner dial color
Maximum represents the maximum value of the dial
Minimum represents the minimum value of the dial
MinimumAngle represents the minimum angle value which is used to display the dial
MaximumAngle represents the maximum angle value which is used to display the dial
Value represents the cuurent value of the dial
GradValuesVisible represents the intermediate values visibility of the zone
FractionLength represents the fraction part length of the numbers to be displayed
BaseColor represents the base circle color
BaseRadius represents the radius of the base circle
BaseDialBorder represents the border of the base circle
InnerDialBorder represents the inner border of the dial
OuterDialBorder represents the outer border of the dial
DialRadius represents the radius of the dial to be displayed
ValueRadius represents the radius of the values to be displayed
GradRadius represents the radius of the grads to be displayed
HeaderVisible represents the header visibility
HeaderText represents the text to be displayed on header
HeaderBackground represents the header background color
HeaderForeground represents the header foreground color
HeaderFont represents the header font
HeaderSpacing represents the spacing above and below the header text
FooterVisible represents the footer visibility
FooterText represents the text to be displayed on footer
FooterBackground represents the footer background color
FooterForeground represents the footer foreground color
FooterFont represents the footer font
FooterSpacing represents the spacing above and below the footer text
ActiveNeedleOn represents the mouse activity to move the needle
KeyboardEnabled represents the keyboard enability to increase or decrease the angle
| 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 | |
com.elegantj.editors.C1 |
c1
|
| Fields inherited from class com.elegantj.gauges.dial.Dial |
ARROW_NEEDLE, BALLS_NEEDLE, BLOCK_DECREMENT, BLOCK_INCREMENT, circle, CIRCULAR_GRAD, dialImage, LINEAR_ARROW_NEEDLE, LINEAR_CIRCLE_NEEDLE, LINEAR_GRAD, LINEAR_NEEDLE, LOWERED, MAXIMUM, MINIMUM, MOVE_OFF, MOVE_ON_MOUSE_DRAG, MOVE_ON_MOUSE_PRESS, NONE, POINT1, POINT2, POINT3, POINT4, POINT5, RAISED, SIMPLE, UNIT_DECREMENT, UNIT_INCREMENT |
| 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 | |
NumericDialGauge()
|
|
NumericDialGauge(java.lang.String caption,
int size)
|
|
NumericDialGauge(java.lang.String caption,
int size,
boolean clockwise)
|
|
NumericDialGauge(java.lang.String caption,
int size,
double min,
double max)
|
|
NumericDialGauge(java.lang.String caption,
int size,
double min,
double max,
boolean clockwise)
|
|
NumericDialGauge(java.lang.String caption,
int size,
double min,
double max,
double minAngle,
double maxAngle,
boolean clockwise)
Creates a NumericDialGauge with specified name, size, minimum value, maximum value, minimum angle, maximum angle and clockwise state. |
|
| Method Summary | |
void |
addChangeListener(ChangeListener l)
Adds a ChangeListener |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
void |
adjustAngle(int type)
Adjusts the angle with given adjustment angle constant. |
protected Circle |
createCircle(double cx,
double cy,
double radius,
java.util.Vector new_Zones,
double theMaximum,
double theMinimum,
double maxAngle)
|
protected Circle |
createCircle(double cx,
double cy,
double radius,
java.util.Vector new_Zones,
double theMaximum,
double theMinimum,
double minAngle,
double maxAngle)
|
protected Circle |
createCircle(double cx,
double cy,
double radius,
java.util.Vector new_Zones,
double theMaximum,
double theMinimum,
double minAngle,
double maxAngle,
boolean clockwise)
Creates a Circle with specified location, radious, zones, minimum value, maximum value and maximum angle. |
protected Circle |
createCircle(double cx,
double cy,
java.util.Vector new_Zones,
double theMaximum,
double theMinimum,
double maxAngle)
|
protected MeterZone |
createMeterZone(java.lang.String name_val,
double lo_val,
double hi_val,
java.awt.Color color)
|
protected MeterZone |
createMeterZone(java.lang.String name_val,
double lo_val,
double hi_val,
java.awt.Color color,
double grad_val,
double subgrad_val)
|
protected MeterZone |
createMeterZone(java.lang.String name_val,
double lo_val,
double hi_val,
java.awt.Color color,
double grad_val,
double subgrad_val,
double depth_val)
Creates a MeterZone with specified name, minimum, maximum, color, grad, subgrad and depth values. |
static java.util.Vector |
createVector(java.lang.String str)
Converts the comma separated string to the vector |
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(double oldValue,
double newValue)
Invokes this method when the value has been changed |
double |
getBaseRadius()
Gets the base circle's radius. |
java.lang.String |
getCaption()
Deprecated. use GetDisplayText |
double |
getDialRadius()
Gets the radius of the dial to be displayed. |
java.awt.Rectangle |
getDisplayBoxBounds()
Gets the display box boundaries |
int |
getFractionLength()
Gets the length of the fraction part of the value |
double |
getGradRadius()
Gets the radius of the grads to be displayed. |
java.lang.String |
getLicenseKey()
Gets the license key |
java.util.Locale |
getLocale()
Returns the value of locale. |
double |
getMaximum()
Gets the maximum value for the value range. |
double |
getMaximumAngle()
Gets the maximum angle value (degrees) for the angle range. |
double |
getMinimum()
Gets the minimum value for the value range. |
double |
getMinimumAngle()
Gets the minimum angle value (degrees) for the angle range. |
java.lang.String |
getName()
Gets the name or the handle of the object |
java.util.Vector |
getNewZoneValues()
Gets the item values from list of the Combobox. |
double |
getValue()
Gets the needle value. |
double |
getValueRadius()
Gets the radius of the values to be displayed. |
boolean |
isClockwise()
Gets the direction of the dial rotation clockwise or anticlockwise |
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 |
resetDial()
Resets the dial by calculating the new values of center and radius. |
void |
setActiveNeedleOn(int value)
Sets the mouse activity to move the needle |
void |
setBackground(java.awt.Color c)
Sets the Background color. |
void |
setBaseColor(java.awt.Color theColor)
Sets the base circle's color |
void |
setBaseDialBorder(GaugeBorder border)
Sets the border of the base circle |
void |
setBaseRadius(double val)
Sets the base circle's radius. |
void |
setBounds(int x,
int y,
int width,
int height)
Moves and resizes this bean. |
void |
setCaption(java.lang.String s)
Deprecated. use SetDisplayText |
void |
setClockwise(boolean value)
Sets the direction of the dial rotation clockwise or anticlockwise |
void |
setCursor(java.awt.Cursor c)
Sets value of the cursor. |
void |
setDialRadius(double val)
Sets the radius of the dial to be displayed. |
void |
setDisabledAreaColor(java.awt.Color theColor)
Sets the needle color |
void |
setDisplayBoxBorder(GaugeBorder border)
Sets the border of the display box |
void |
setDisplayBoxBounds(java.awt.Rectangle rect)
Sets the display box boundaries |
void |
setDisplayBoxColor(java.awt.Color theColor)
Sets the needle color |
void |
setDisplayBoxVisible(boolean value)
Sets the visibility of the display box |
void |
setDisplayText(java.lang.String text)
Sets the text displayed on the display box |
void |
setDisplayTextColor(java.awt.Color theColor)
Sets the foreground color of the box |
void |
setDisplayTextFont(java.awt.Font theFont)
Sets the font of the text displayed on the display box |
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(double value)
Sets the spacing above and below the footer text |
void |
setFooterText(java.lang.String value)
Sets the text to be displayed on footer |
void |
setFooterVisible(boolean value)
Sets the footer visibility |
void |
setForeground(java.awt.Color c)
Sets the Foreground color. |
void |
setFractionLength(int len)
Sets the length of the fraction part of the value |
void |
setGradColor(java.awt.Color theColor)
Sets the grad color |
void |
setGradLength(double val)
Sets the grad length. |
void |
setGradRadius(double val)
Sets the radius of the grads to be displayed. |
void |
setGradType(int val)
Sets the grad type such as linear or circular |
void |
setGradValuesVisible(boolean value)
Sets the intermediate values visibility of the zone |
void |
setGradWidth(double val)
Sets the grad width. |
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(double value)
Sets the spacing above and below the header text |
void |
setHeaderText(java.lang.String value)
Sets the text to be displayed on header |
void |
setHeaderVisible(boolean value)
Sets the header visibility |
void |
setInnerDialBorder(GaugeBorder border)
Sets the border of the inner dial gauge |
void |
setInnerDialColor(java.awt.Color theColor)
Sets the inner Dial color |
void |
setKeyboardEnabled(boolean value)
Sets the enability to increase or decrease the angle value by keyboard navigation |
void |
setLicenseKey(java.lang.String key)
Sets the license key |
void |
setLocale(java.util.Locale l)
Sets value of the locale. |
void |
setMaximum(double m)
Sets the maximum value of the dial |
void |
setMaximumAngle(double m)
Sets the maximum angle value (degrees) for the angle range. |
void |
setMinimum(double m)
Sets the minimum value of the dial |
void |
setMinimumAngle(double m)
Sets the minimum angle value (degrees) for the angle range. |
void |
setName(java.lang.String n)
Sets the name or the handle of the object |
void |
setNeedleBorder(GaugeBorder border)
Sets the border of the needle |
void |
setNeedleColor(java.awt.Color theColor)
Sets the needle color |
void |
setNeedleLength(double val)
Sets the needle length. |
void |
setNeedleTail(double val)
Sets the needle tail length. |
void |
setNeedleType(int val)
Sets the needle type |
void |
setNeedleVisible(boolean value)
Sets the needle visible status |
void |
setNeedleWidth(double val)
Sets the needle width. |
void |
setNewZoneValues(java.lang.String str)
Sets the item values in the list of the Combobox. |
void |
setNewZoneValues(java.util.Vector oVect)
Sets the item values in the list of the Combobox. |
void |
setOuterDialBorder(GaugeBorder border)
Sets the border of the outer dial gauge |
void |
setPointValue(int x,
int y)
Sets the value of the given point co-ordinates |
void |
setSubGradColor(java.awt.Color theColor)
Sets the subgrad color |
void |
setSubGradLength(double val)
Sets the subgrad length. |
void |
setSubGradType(int val)
Sets the subgrad type such as linear or circular |
void |
setSubGradWidth(double val)
Sets the subgrad width. |
void |
setUnit(java.lang.String n)
Sets the Unit |
void |
setUnitColor(java.awt.Color theColor)
Sets the Unit text color |
void |
setUnitFont(java.awt.Font theFont)
Sets the Unit text font |
void |
setUnitLocation(java.awt.Point thePoint)
Sets the Unit text location. |
void |
setValue(double val)
Sets the needle value. |
void |
setValueRadius(double val)
Sets the radius of the values to be displayed. |
void |
setVisible(boolean b)
sets Visiblity. |
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, 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 transient com.elegantj.editors.C1 c1
| Constructor Detail |
public NumericDialGauge()
public NumericDialGauge(java.lang.String caption,
int size)
public NumericDialGauge(java.lang.String caption,
int size,
boolean clockwise)
public NumericDialGauge(java.lang.String caption,
int size,
double min,
double max)
public NumericDialGauge(java.lang.String caption,
int size,
double min,
double max,
boolean clockwise)
public NumericDialGauge(java.lang.String caption,
int size,
double min,
double max,
double minAngle,
double maxAngle,
boolean clockwise)
caption - represents dial caption, default Dial Gaugesize - dial diameter, default 320min - dial minimum value, default 0max - dial maximum value, default 100minAngle - dial minimum angle, default 0maxAngle - dial maximum angle, default 360clockwise - it represents how values can be grown, default false| Method Detail |
public void setLicenseKey(java.lang.String key)
key - the license keypublic java.lang.String getLicenseKey()
protected Circle createCircle(double cx,
double cy,
java.util.Vector new_Zones,
double theMaximum,
double theMinimum,
double maxAngle)
protected Circle createCircle(double cx,
double cy,
double radius,
java.util.Vector new_Zones,
double theMaximum,
double theMinimum,
double maxAngle)
protected Circle createCircle(double cx,
double cy,
double radius,
java.util.Vector new_Zones,
double theMaximum,
double theMinimum,
double minAngle,
double maxAngle)
protected Circle createCircle(double cx,
double cy,
double radius,
java.util.Vector new_Zones,
double theMaximum,
double theMinimum,
double minAngle,
double maxAngle,
boolean clockwise)
cx - x-cordinate of the circle's centerradius - radius of the circle, default 100.0new_Zones - zones descriptiontheMaximum - maximum valuetheMinimum - minimum valueminAngle - minimum angle of the circlemaxAngle - maximum angle of the circleclockwise - rotation of the circle's value
protected MeterZone createMeterZone(java.lang.String name_val,
double lo_val,
double hi_val,
java.awt.Color color)
protected MeterZone createMeterZone(java.lang.String name_val,
double lo_val,
double hi_val,
java.awt.Color color,
double grad_val,
double subgrad_val)
protected MeterZone createMeterZone(java.lang.String name_val,
double lo_val,
double hi_val,
java.awt.Color color,
double grad_val,
double subgrad_val,
double depth_val)
name_val - name of the zonelo_val - low value of the zonehi_val - high value of the zonecolor - color of the zonegrad_val - grad value of the zone , default 0.0subgrad_val - subgrad value of the zone , default 0.0depth_val - depth value of the zone , default 0.0
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 resetDial()
public void setName(java.lang.String n)
n - A string specifies the name of the objectpublic java.lang.String getName()
public void setBaseColor(java.awt.Color theColor)
setBaseColor in class DialtheColor - color type specifies the color from the graphics contextpublic void setBaseDialBorder(GaugeBorder border)
setBaseDialBorder in class Dialborder - the border of the base circlepublic void setNeedleVisible(boolean value)
setNeedleVisible in class Dialvalue - boolean type true specifies the needle status visiblepublic void setNeedleColor(java.awt.Color theColor)
setNeedleColor in class DialtheColor - color type specifies the color from the graphics contextpublic void setNeedleLength(double val)
setNeedleLength in class Dialval - the needle lengthpublic void setNeedleWidth(double val)
setNeedleWidth in class Dialval - the needle widthpublic void setNeedleTail(double val)
setNeedleTail in class Dialval - the needle tail lengthpublic void setNeedleType(int val)
setNeedleType in class Dialval - the needle typepublic void setNeedleBorder(GaugeBorder border)
setNeedleBorder in class Dialborder - the border of the needlepublic void setDisplayBoxVisible(boolean value)
setDisplayBoxVisible in class Dialvalue - the visibility of the display boxpublic void setDisplayBoxColor(java.awt.Color theColor)
setDisplayBoxColor in class DialtheColor - the color from the graphics contextpublic void setDisplayTextColor(java.awt.Color theColor)
setDisplayTextColor in class DialtheColor - the foreground color of the boxpublic void setDisplayTextFont(java.awt.Font theFont)
setDisplayTextFont in class DialtheFont - the font of the text displayed on the display boxpublic void setDisplayText(java.lang.String text)
setDisplayText in class Dialtext - the text displayed on the display boxpublic void setDisplayBoxBorder(GaugeBorder border)
setDisplayBoxBorder in class Dialborder - the border of the display boxpublic void setDisabledAreaColor(java.awt.Color theColor)
setDisabledAreaColor in class DialtheColor - the color from the graphics contextpublic void setGradColor(java.awt.Color theColor)
setGradColor in class DialtheColor - the color from the graphics contextpublic void setGradLength(double val)
setGradLength in class Dialval - the grad lengthpublic void setGradWidth(double val)
setGradWidth in class Dialval - the grad widthpublic void setGradType(int val)
setGradType in class Dialval - the grad typepublic void setSubGradColor(java.awt.Color theColor)
setSubGradColor in class DialtheColor - the color from the graphics contextpublic void setSubGradLength(double val)
setSubGradLength in class Dialval - the subgrad lengthpublic void setSubGradWidth(double val)
setSubGradWidth in class Dialval - the subgrad widthpublic void setSubGradType(int val)
setSubGradType in class Dialval - the subgrad typepublic void setInnerDialColor(java.awt.Color theColor)
setInnerDialColor in class DialtheColor - the color from the graphics contextpublic void setInnerDialBorder(GaugeBorder border)
setInnerDialBorder in class Dialborder - the border of the inner dial gaugepublic void setUnit(java.lang.String n)
setUnit in class Dialpublic void setUnitColor(java.awt.Color theColor)
setUnitColor in class DialtheColor - a Color specifies the unit text colorpublic void setUnitFont(java.awt.Font theFont)
setUnitFont in class DialtheFont - a Font specifies the unit text fontpublic void setUnitLocation(java.awt.Point thePoint)
setUnitLocation in class DialthePoint - a Point specifies the unit text locationpublic void setCaption(java.lang.String s)
s - the caption stringpublic java.lang.String getCaption()
public void setGradValuesVisible(boolean value)
setGradValuesVisible in class Dialvalue - the intermediate values visibility of the zone .
If it is true, intermediate values will be visiblepublic void setMinimumAngle(double m)
m - double type true specifies double angle valuepublic double getMinimumAngle()
public void setMaximumAngle(double m)
m - double type true specifies double angle valuepublic double getMaximumAngle()
public void setMinimum(double m)
m - double type true specifies double valuepublic double getMinimum()
public void setMaximum(double m)
m - double type true specifies double valuepublic double getMaximum()
public void setFractionLength(int len)
len - the length of the fraction part of the valuepublic int getFractionLength()
public void setBaseRadius(double val)
val - the base circle's radiuspublic double getBaseRadius()
public void setValueRadius(double val)
val - the value radiuspublic double getValueRadius()
public void setGradRadius(double val)
val - the grad radiuspublic double getGradRadius()
public void setDialRadius(double val)
val - the dial radiuspublic double getDialRadius()
public void setOuterDialBorder(GaugeBorder border)
setOuterDialBorder in class Dialborder - the border of the outer dial gaugepublic void setDisplayBoxBounds(java.awt.Rectangle rect)
rect - the rectangle contains the display box boundaries,
considers default values, if the rectangle is -1,-1,-1,-1public java.awt.Rectangle getDisplayBoxBounds()
public void setHeaderVisible(boolean value)
setHeaderVisible in class Dialvalue - true to visible the headerpublic void setHeaderText(java.lang.String value)
setHeaderText in class Dialvalue - the header textpublic void setHeaderBackground(java.awt.Color theColor)
setHeaderBackground in class DialtheColor - the header background colorpublic void setHeaderForeground(java.awt.Color theColor)
setHeaderForeground in class DialtheColor - the header foreground colorpublic void setHeaderFont(java.awt.Font theFont)
setHeaderFont in class DialtheFont - the header fontpublic void setHeaderSpacing(double value)
setHeaderSpacing in class Dialvalue - the spacing above and below the header textpublic void setFooterVisible(boolean value)
setFooterVisible in class Dialvalue - true to visible the footerpublic void setFooterText(java.lang.String value)
setFooterText in class Dialvalue - the footer textpublic void setFooterBackground(java.awt.Color theColor)
setFooterBackground in class DialtheColor - the footer background colorpublic void setFooterForeground(java.awt.Color theColor)
setFooterForeground in class DialtheColor - the footer foreground colorpublic void setFooterFont(java.awt.Font theFont)
setFooterFont in class DialtheFont - the footer fontpublic void setFooterSpacing(double value)
setFooterSpacing in class Dialvalue - the spacing above and below the footer textpublic void setActiveNeedleOn(int value)
setActiveNeedleOn in class Dialvalue - the mouse activity to move the needlepublic void setKeyboardEnabled(boolean value)
setKeyboardEnabled in class Dialvalue - true to enable the keyboard navigation
public void setPointValue(int x,
int y)
setPointValue in class Dialpublic void adjustAngle(int type)
adjustAngle in class Dialtype - the one of the constants : UNIT_INCREMENT, UNIT_DECREMENT, BLOCK_INCREMENT,
BLOCK_DECREMENT, MAXIMUM, MINIMUMpublic void setValue(double val)
val - the current needle valuepublic double getValue()
public void setClockwise(boolean value)
value - boolean type true specifies double clockwise directionpublic boolean isClockwise()
public void setNewZoneValues(java.util.Vector oVect)
oVect - Vector type object containing the list of itemspublic java.util.Vector getNewZoneValues()
public void setNewZoneValues(java.lang.String str)
str - String type object containing the list of itemspublic 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 void addChangeListener(ChangeListener l)
public void removeChangeListener(ChangeListener l)
public void fireValueChange(double oldValue,
double newValue)
oldValue - the old valuenewValue - the new (changed) valuepublic 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 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.lang.ClassNotFoundException,
java.io.IOException
readExternal in interface java.io.Externalizablejava.lang.ClassNotFoundException
java.io.IOExceptionpublic java.lang.String toString()
public static java.util.Vector createVector(java.lang.String str)
str - the comma separated string
|
ElegantJ Gauges Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||