Class FWSlider

All Implemented Interfaces:
MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, SwingConstants

public class FWSlider extends JSlider implements MouseListener, MouseMotionListener, ChangeListener
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.
Author:
Andreas Enders, Christoph Kunze
See Also:
  • Constructor Details

    • FWSlider

      public FWSlider(int aMin, int aMax)
      Constructs a new slider with a specific range of integers, that the user may choose from. Initially, the slider will be placed at the lower end.
      Parameters:
      aMin - Smallest selectable value
      aMax - Largest selectable value
    • FWSlider

      public FWSlider(double aMin, double aMax, double aValue, int aNumberOfLabels, int aPrecision, double aTickSpacing)
      Constructs a new slider with a specific range of integers, that the user may choose from and a specified preselected value.
      Parameters:
      aMin -
      aMax -
      aValue -
      aNumberOfLabels -
      aPrecision -
      aTickSpacing -
    • FWSlider

      public FWSlider(int aMin, int aMax, int aValue, int aTickSpacing)
      Constructs a new slider with a specific range of integers, that the user may choose from and a specified preselected value.
      Parameters:
      aMin -
      aMax -
      aValue -
      aTickSpacing -
    • FWSlider

      public FWSlider(int aMin, int aMax, int aValue, int aTickSpacing, String aTickLabels, int aNumberOfTicks)
      Constructs a new slider with a specific range of integers, that the user may choose from and a specified preselected value.
      Parameters:
      aMin -
      aMax -
      aValue -
      aTickSpacing -
      aTickLabels -
      aNumberOfTicks -
  • Method Details