|
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--vipratech.beans.standardbeans.HorizontalSlider
The HorizontalSlider.class provides a slider interface component that returns a selected value over a set range.
The minumum, maximum and initial value of the slider can be set at design time. The slider label text can be localised and the slider display unit may also be configured.
Both negative and positive ranges can be set on the slider.
This component can be wired up to other components at design time using adjustment listeners.
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
HorizontalSlider()
Constructor. |
Method Summary | |
void |
addAdjustmentFloatListener(AdjustmentFloatListener l)
Allows this component to be unwired at design time with adjustmentfloatlisteners |
void |
addAdjustmentListener(java.awt.event.AdjustmentListener listener)
Allows this component to be wired at design time with adjustment listeners |
void |
destroy()
Disposes of offscreen graphics. |
void |
finalize()
|
int |
getBlockIncrement()
|
java.awt.Color |
getColor()
Returns the background color of the slider. |
boolean |
getDisplayVisible()
Returns the show/hide toggle of the display. |
boolean |
getEnabled()
Returns the toggle for enabled/disabled |
java.lang.String |
getKey()
Returns the key for the component that is used to extract a locale specific label from a key/value pair in a resource bundle. |
java.util.Locale |
getLocale()
Returns the locale for this component. |
double |
getMaximum()
Returns the maximum value. |
double |
getMinimum()
Returns the minimum value. |
java.awt.Dimension |
getMinimumSize()
Returns the minumum size. |
int |
getOrientation()
|
boolean |
getPointer()
Returns the toggle for button style. |
java.lang.String |
getSliderName()
Method to get the slider Name for sending in AdjustmentFloat Listener |
java.lang.String |
getText()
Returns the GUI label for this component. |
int |
getTicks()
Returns the number of tick marks. |
boolean |
getTicksVisible()
Returns the toggle for show/hide tick marks. |
java.lang.String |
getUnit()
Returns the unit for display. |
int |
getUnitIncrement()
|
float |
getValue()
Returns the current value of the slider. |
int |
getValuePlace()
Method to get the decimal places of the value |
int |
getVisibleAmount()
|
void |
paint(java.awt.Graphics g)
Draws the various parts of the slider display. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Allows this component to be wired up to vipratech.beans.LanguageChoice at design time. |
void |
removeAdjustmentFloatListener(AdjustmentFloatListener l)
Allows this component to be wired at design time with adjustmentfloatlisteners |
void |
removeAdjustmentListener(java.awt.event.AdjustmentListener listener)
Allows this component to be un-wired at design time with adjustment listeners |
void |
setBlockIncrement(int blockIncrement)
|
void |
setColor(java.awt.Color color)
Sets the background color of the slider. |
void |
setDisplayVisible(boolean displayVisible)
Toggles the display to show/hide. |
void |
setEnabled(boolean enabled)
Toggle enabled/disabled state. |
void |
setKey(java.lang.String key)
Sets a key for the component that can be used to extract a locale specific label from a key/value pair in a resource bundle. |
void |
setLocale(java.util.Locale locale)
Sets the locale for this component. |
void |
setMaximum(double maximum)
Sets the maximum value. |
void |
setMinimum(double minimum)
Sets the minimum value. |
void |
setPointer(boolean pointer)
Toggle button style. |
void |
setSliderName(java.lang.String newSliderName)
Method to set the sliderName wich is sending in the AdjustmentListener |
void |
setText(java.lang.String text)
Sets the GUI label for this component. |
void |
setTicks(int ticks)
Sets the number of tick marks. |
void |
setTicksVisible(boolean ticksVisible)
Toggle for show/hide the tick marks. |
void |
setUnit(java.lang.String unit)
Sets the unit for display. |
void |
setUnitIncrement(int unitIncrement)
|
void |
setValue(float value)
Sets the button to specified value. |
void |
setValuePlace(int newValuePlace)
Method to set the decimal places of the value |
void |
setVisibleAmount(int visibleAmount)
|
void |
update(java.awt.Graphics g)
Overidden method to eliminate animation flicker. |
Methods inherited from class java.awt.Canvas |
addNotify |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
contains,
contains,
createImage,
createImage,
deliverEvent,
disable,
dispatchEvent,
doLayout,
enable,
enable,
enableInputMethods,
getAlignmentX,
getAlignmentY,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentAt,
getComponentAt,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getMaximumSize,
getName,
getParent,
getPeer,
getPreferredSize,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
invalidate,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
layout,
list,
list,
list,
list,
list,
locate,
location,
lostFocus,
minimumSize,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
preferredSize,
prepareImage,
prepareImage,
print,
printAll,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setFont,
setForeground,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus,
validate |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public HorizontalSlider()
Method Detail |
public final void finalize()
public void paint(java.awt.Graphics g)
public void update(java.awt.Graphics g)
public void addAdjustmentListener(java.awt.event.AdjustmentListener listener)
public void removeAdjustmentListener(java.awt.event.AdjustmentListener listener)
public void propertyChange(java.beans.PropertyChangeEvent event)
public final void destroy()
public java.awt.Dimension getMinimumSize()
public void setKey(java.lang.String key)
public java.lang.String getKey()
public void setLocale(java.util.Locale locale)
public java.util.Locale getLocale()
public void setText(java.lang.String text)
public java.lang.String getText()
public final void setValue(float value)
public final float getValue()
public final void setMinimum(double minimum)
public final double getMinimum()
public final void setMaximum(double maximum)
public final double getMaximum()
public final void setDisplayVisible(boolean displayVisible)
public boolean getDisplayVisible()
public final void setUnit(java.lang.String unit)
public final java.lang.String getUnit()
public final void setEnabled(boolean enabled)
public boolean getEnabled()
public final void setTicks(int ticks)
public final int getTicks()
public final void setTicksVisible(boolean ticksVisible)
public final boolean getTicksVisible()
public final void setPointer(boolean pointer)
public boolean getPointer()
public final void setColor(java.awt.Color color)
public java.awt.Color getColor()
public int getBlockIncrement()
public int getOrientation()
public int getUnitIncrement()
public int getVisibleAmount()
public void setBlockIncrement(int blockIncrement)
public void setUnitIncrement(int unitIncrement)
public void setVisibleAmount(int visibleAmount)
public void removeAdjustmentFloatListener(AdjustmentFloatListener l)
public void addAdjustmentFloatListener(AdjustmentFloatListener l)
public void setValuePlace(int newValuePlace)
public int getValuePlace()
public void setSliderName(java.lang.String newSliderName)
public java.lang.String getSliderName()
|
dathe@chemie.uni-leipzig.de" | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |