|
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.thermo.ThermometerGauge
This bean represents the demo of thermometer and is implemented as a bean component. A visual component displays an indicating data value within the specified range of values.
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 thermometer
Minimum the minimum value of the thermometer
CaptionFont represents the font which is used to display the caption
NumberFont represents the font which is used to display the number
PanelColor represents the color of the background panel under which this bean resides
BulbColor represents the color of the bulb which is used to display the value of the gauge
IndicatorWidth represents the width of the thermometer value indicator
MajorTick represents the basic scale system
MinorTick represents the sub scale system
| 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 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 | |
ThermometerGauge()
Creates a ThermometerGauge |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
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. |
java.awt.Color |
getBulbColor()
Gets the bulb color |
java.lang.String |
getCaption()
Gets the caption string of the thermometer |
java.awt.Font |
getCaptionFont()
Gets the font of the caption |
int |
getIndicatorWidth()
Gets the thermometer indicator's width value |
java.lang.String |
getLicenseKey()
Gets the license key |
java.util.Locale |
getLocale()
Returns the value of locale. |
double |
getMajorTick()
Gets the major tick spacing of thermometer indicator |
double |
getMaximum()
Gets the maximum value that the meter can indicate |
double |
getMinimum()
Gets the minimum value that the meter can indicate |
double |
getMinorTick()
Gets the minor tick spacing of thermometer indicator |
java.lang.String |
getName()
Gets the name or the handle of the object |
java.awt.Font |
getNumbersFont()
Gets the font of the numbers |
java.awt.Color |
getPanelColor()
Gets the panel color |
java.awt.Dimension |
getPreferredSize()
Gets the preferred size of this bean. |
double |
getValue()
Gets the current indicative value of the thermometer |
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 |
isLightweight()
Returns true if this Component is displayable |
void |
readExternal(java.io.ObjectInput in)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
void |
setBackground(java.awt.Color c)
Sets the Background color. |
void |
setBounds(int x,
int y,
int width,
int height)
Moves and resizes this bean. |
void |
setBulbColor(java.awt.Color theColor1)
Sets the bulb color |
void |
setCaption(java.lang.String s)
Sets the caption of the for the thermometer gauge |
void |
setCaptionFont(java.awt.Font f)
Sets the font of the caption |
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 |
setIndicatorWidth(int nValue)
Sets the thermometer indicator's width value and refreshes the entire thermometer |
void |
setLicenseKey(java.lang.String key)
Sets the license key |
void |
setLocale(java.util.Locale l)
Sets value of the locale. |
void |
setMajorTick(double sGrad)
Sets the thermometer indicator's major tick spacing |
void |
setMaximum(double max)
Sets the maximum value of the gauge for each zone |
void |
setMinimum(double min)
Sets the minimum value of the gauge for each zone |
void |
setMinorTick(double sGrad)
Sets the thermometer indicator's minor tick spacing |
void |
setName(java.lang.String s)
Sets the name or the handle of the object |
void |
setNumbersFont(java.awt.Font f)
Sets the font of the numbers |
void |
setPanelColor(java.awt.Color theColor)
Sets the panel color |
void |
setValue(double val)
Sets the current indicative value of the thermometer |
void |
setVisible(boolean b)
sets Visiblity. |
void |
writeExternal(java.io.ObjectOutput out)
|
| 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, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, 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, toString, 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 ThermometerGauge()
| Method Detail |
public void setLicenseKey(java.lang.String key)
key - the license keypublic java.lang.String getLicenseKey()
public void setMinorTick(double sGrad)
sGrad - the minor tick spacingpublic double getMinorTick()
public void setMajorTick(double sGrad)
sGrad - the major tick spacingpublic double getMajorTick()
public void setIndicatorWidth(int nValue)
nValue - the indicator widthpublic int getIndicatorWidth()
public void setPanelColor(java.awt.Color theColor)
theColor - panel colorpublic java.awt.Color getPanelColor()
public void setBulbColor(java.awt.Color theColor1)
public java.awt.Color getBulbColor()
public void setCaptionFont(java.awt.Font f)
f - the caption font stylepublic java.awt.Font getCaptionFont()
public void setNumbersFont(java.awt.Font f)
f - the numbers font stylepublic java.awt.Font getNumbersFont()
public void setName(java.lang.String s)
s - the name of this beanpublic java.lang.String getName()
public void setCaption(java.lang.String s)
s - the caption stringpublic java.lang.String getCaption()
public void setValue(double val)
val - the current valuepublic double getValue()
public void setMinimum(double min)
min - the minimum value.public void setMaximum(double max)
max - the maximum value.public double getMinimum()
public double getMaximum()
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 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.ClassNotFoundException
|
ElegantJ Gauges Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||