|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.client.frida.gui.masks.color.FullSlider
public final class FullSlider
A JSlider that has arrows on the end and a text box that shows the current value.
Nested Class Summary | |
---|---|
(package private) static class |
FullSlider.HeldMouseListener
A MouseListener that fires off a Timer when the mouse is pressed and stops the timer when the Mouse is released. |
Constructor Summary | |
---|---|
FullSlider(int min,
int max,
java.awt.event.ActionListener actionListener)
Constructs this object |
Method Summary | |
---|---|
void |
addKeyListener(java.awt.event.KeyListener keyListener)
|
javax.swing.JPanel |
getPanel()
Gets a Panel that represents this entire component |
javax.swing.JSlider |
getSlider()
|
int |
getValue()
Gets the current value of the Slider |
static void |
initSliderSize(javax.swing.JSlider slider)
Initializes the Slider's ticks and size |
void |
reset()
|
void |
setEditable(boolean isEditable)
|
void |
setValue(int value)
Sets the current value of the Slider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FullSlider(int min, int max, java.awt.event.ActionListener actionListener)
min
- the minimum value of the JSlidermax
- the maximum value of the JSlideractionListener
- an ActionListener that is fired every time the value of this FullSlider
is changed by the USER (and not by the program.) So for example, if the user clicks on the
JSlider to adjust the value, the actionListener is fired. Or if the user updates the JSlider
from the TextField, the actionListener is fired. However, if the JSlider is set
programatically, the actionListener is NOT fired.Method Detail |
---|
public javax.swing.JSlider getSlider()
public void reset()
public int getValue()
public void setValue(int value)
public void setEditable(boolean isEditable)
public javax.swing.JPanel getPanel()
public static void initSliderSize(javax.swing.JSlider slider)
public void addKeyListener(java.awt.event.KeyListener keyListener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |