|
|||||||
| 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
|
+--rvl.awt.Slider
GUI Object that implements a slider for display/input of real values. When 0 is included in the scale, there is the option of using a bar connecting the value to 0.
| 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 | |
Slider(java.lang.String label,
double value)
Construct a slider with given label and initial value. |
|
Slider(java.lang.String label,
double value,
double min,
double max)
Construct a slider with given initial value, min, and max |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addActionListener(java.awt.event.ActionListener l)
Add an action listener for this component |
void |
focusGained(java.awt.event.FocusEvent fe)
|
void |
focusLost(java.awt.event.FocusEvent fe)
|
double |
getMaximum()
Get maximum of slider |
double |
getMinimum()
Get minimum of slider |
java.awt.Dimension |
getMinimumSize()
|
java.awt.Dimension |
getPreferredSize()
|
double |
getValue()
Get current value of slider |
boolean |
isEditable()
|
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
void |
keyPressed(java.awt.event.KeyEvent ke)
|
void |
keyReleased(java.awt.event.KeyEvent ke)
|
void |
keyTyped(java.awt.event.KeyEvent ke)
|
java.awt.Dimension |
minimumSize()
|
void |
paint(java.awt.Graphics g)
|
java.awt.Dimension |
preferredSize()
|
void |
processMouseEvent(java.awt.event.MouseEvent e)
|
void |
processMouseMotionEvent(java.awt.event.MouseEvent e)
|
void |
repaint()
|
void |
setButtonColor(java.awt.Color c)
Set color of buttons |
void |
setDigits(int d)
Set # digits |
void |
setDotColor(java.awt.Color c)
Set color of dot and connecting bar. |
void |
setEditable(boolean e)
|
void |
setLabel(java.lang.String label)
Set label |
void |
setMaximum(double x)
Set maximum of slider (if mutable) |
void |
setMinimum(double x)
Set minimum of slider (if mutable) |
void |
setMutable(boolean minMut,
boolean maxMut)
Set whether endpoints are allowed to be changed. |
void |
setScaleColor(java.awt.Color c)
Set color of axis, tick marks, and tick labels |
void |
setValue(double x)
Set value of slider |
java.lang.String |
toString()
Print method |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, layout, list, list, locate, paintComponents, paramString, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, 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, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Slider(java.lang.String label,
double value)
public Slider(java.lang.String label,
double value,
double min,
double max)
| Method Detail |
public void setMutable(boolean minMut,
boolean maxMut)
public void setValue(double x)
public void setMinimum(double x)
setMutablepublic void setMaximum(double x)
setMutablepublic void setDigits(int d)
public void setEditable(boolean e)
public boolean isEditable()
public void setLabel(java.lang.String label)
public double getValue()
public double getMinimum()
public double getMaximum()
public void setDotColor(java.awt.Color c)
public void setButtonColor(java.awt.Color c)
public void setScaleColor(java.awt.Color c)
public java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Containerpublic java.awt.Dimension getMinimumSize()
getMinimumSize in class java.awt.Containerpublic java.awt.Dimension preferredSize()
preferredSize in class java.awt.Containerpublic java.awt.Dimension minimumSize()
minimumSize in class java.awt.Containerpublic void repaint()
repaint in class java.awt.Componentpublic void paint(java.awt.Graphics g)
paint in class java.awt.Containerpublic java.lang.String toString()
toString in class java.awt.Componentpublic void addActionListener(java.awt.event.ActionListener l)
public void processMouseEvent(java.awt.event.MouseEvent e)
processMouseEvent in class java.awt.Componentpublic void processMouseMotionEvent(java.awt.event.MouseEvent e)
processMouseMotionEvent in class java.awt.Componentpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged in interface java.awt.event.ItemListenerpublic void keyPressed(java.awt.event.KeyEvent ke)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent ke)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent ke)
keyTyped in interface java.awt.event.KeyListenerpublic void focusGained(java.awt.event.FocusEvent fe)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent fe)
focusLost in interface java.awt.event.FocusListener
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||