edu.jhu.tmaj.client.frida.gui.masks.color
Class FullSlider

java.lang.Object
  extended by edu.jhu.tmaj.client.frida.gui.masks.color.FullSlider

public final class FullSlider
extends java.lang.Object

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

FullSlider

public FullSlider(int min,
                  int max,
                  java.awt.event.ActionListener actionListener)
Constructs this object

Parameters:
min - the minimum value of the JSlider
max - the maximum value of the JSlider
actionListener - 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

getSlider

public javax.swing.JSlider getSlider()

reset

public void reset()

getValue

public int getValue()
Gets the current value of the Slider


setValue

public void setValue(int value)
Sets the current value of the Slider


setEditable

public void setEditable(boolean isEditable)

getPanel

public javax.swing.JPanel getPanel()
Gets a Panel that represents this entire component


initSliderSize

public static void initSliderSize(javax.swing.JSlider slider)
Initializes the Slider's ticks and size


addKeyListener

public void addKeyListener(java.awt.event.KeyListener keyListener)