net.simplace.ui.components.FWSlider
Wrapper class for JSlider to give all sliders a unified appearance.
Among other things, FWSlider tries to place tick marks in a unified, intelligent manner and
ensures that all sliders share the same minimum and preferred sizes.
public class FWSlider extends javax.swing.JSlider implements
java.awt.event.MouseListener, java.awt.event.MouseMotionListener,
javax.swing.event.ChangeListener {
// Public Constructors
public FWSlider(int aMin, int aMax);
public FWSlider(double aMin, double aMax, double aValue, int aNumberOfLabels,
int aPrecision, double aTickSpacing);
public FWSlider(int aMin, int aMax, int aValue, int aTickSpacing);
public FWSlider(int aMin, int aMax, int aValue, int aTickSpacing, String
aTickLabels, int aNumberOfTicks);
// Public Instance Methods public void setToolTipEnabled(boolean tEnabled);
En/Disables the tooltip which may be shown during
slider dragging (Default: TRUE).
public void setEnabled(boolean enabled); // Defines javax.swing.JComponent
public boolean isToolTipEnabled();
Returns whether a tooltip is shown during slider dragging
(Default: TRUE).
public double getDoubleValue();
(non-Javadoc)
public void setDoubleValue(double aValue);
(non-Javadoc)
public void mouseClicked(MouseEvent e); // From java.awt.event.MouseListener
public void mouseDragged(MouseEvent e); // From
java.awt.event.MouseMotionListener
public void mouseEntered(MouseEvent e); // From java.awt.event.MouseListener
public void mouseExited(MouseEvent e); // From java.awt.event.MouseListener
public void mouseMoved(MouseEvent e); // From
java.awt.event.MouseMotionListener
public void mousePressed(MouseEvent e); // From java.awt.event.MouseListener
public void mouseReleased(MouseEvent e); // From
java.awt.event.MouseListener
public void stateChanged(ChangeEvent e); // From
javax.swing.event.ChangeListener
}
Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.JSlider (javax.swing.SwingConstants, javax.accessibility.Accessible) - FWSlider (java.awt.event.MouseListener, java.awt.event.MouseMotionListener, javax.swing.event.ChangeListener)