Package ca.phon.ui

Class DefaultRangeSliderUI

All Implemented Interfaces:
SwingConstants

public class DefaultRangeSliderUI extends RangeSliderUI implements SwingConstants
  • Field Details

    • slider

      protected JRangeSlider slider
      The component this UI is installed on
    • focusInsets

      protected Insets focusInsets
    • insetCache

      protected Insets insetCache
    • leftToRightCache

      protected boolean leftToRightCache
    • focusRect

      protected Rectangle focusRect
      Gemometry
    • contentRect

      protected Rectangle contentRect
    • trackRect

      protected Rectangle trackRect
    • filledTrackRect

      protected Rectangle filledTrackRect
    • startThumbRect

      protected Rectangle startThumbRect
    • extentThumbRect

      protected Rectangle extentThumbRect
    • startLabelRect

      protected Rectangle startLabelRect
    • extentLabelRect

      protected Rectangle extentLabelRect
    • thumbListener

      protected DefaultRangeSliderUI.ThumbListener thumbListener
      Listeners
    • changeListener

      protected ChangeListener changeListener
    • componentListener

      protected ComponentListener componentListener
    • focusListener

      protected FocusListener focusListener
    • propertyChangeListener

      protected PropertyChangeListener propertyChangeListener
    • filledTrackColor

      protected static final Color filledTrackColor
  • Constructor Details

    • DefaultRangeSliderUI

      public DefaultRangeSliderUI(JRangeSlider slider)
      Constructor
  • Method Details

    • isDragging

      public boolean isDragging()
    • isDraggingExtent

      public boolean isDraggingExtent()
    • isDraggingStart

      public boolean isDraggingStart()
    • createUI

      public static ComponentUI createUI(JComponent b)
      UI Implementation
    • installUI

      public void installUI(JComponent comp)
      Overrides:
      installUI in class ComponentUI
    • createThumbListener

      protected DefaultRangeSliderUI.ThumbListener createThumbListener(JRangeSlider slider)
    • createChangeListener

      protected ChangeListener createChangeListener(JRangeSlider slider)
    • createComponentListener

      protected ComponentListener createComponentListener(JRangeSlider slider)
    • createFocusListener

      protected FocusListener createFocusListener(JRangeSlider slider)
    • createPropertyChangeListener

      protected PropertyChangeListener createPropertyChangeListener(JRangeSlider slider)
    • installListeners

      protected void installListeners(JRangeSlider slider)
    • uninstallListeners

      protected void uninstallListeners(JRangeSlider slider)
    • uninstallUI

      public void uninstallUI(JComponent comp)
      Overrides:
      uninstallUI in class ComponentUI
    • getPreferredSize

      protected Dimension getPreferredSize(int orientation)
      Calculate preferred, min and max sizes
    • getPreferredSize

      public Dimension getPreferredSize(JComponent comp)
      Overrides:
      getPreferredSize in class ComponentUI
    • getMinimumSize

      protected Dimension getMinimumSize(int orientation)
    • getMinimumSize

      public Dimension getMinimumSize(JComponent comp)
      Overrides:
      getMinimumSize in class ComponentUI
    • getMaximumSize

      public Dimension getMaximumSize(JComponent comp)
      Overrides:
      getMaximumSize in class ComponentUI
    • setupGeom

      protected void setupGeom()
    • setupFocusRect

      protected void setupFocusRect()
    • setupContentRect

      protected void setupContentRect()
    • setupStartThumbRect

      protected void setupStartThumbRect()
    • setupExtentThumbRect

      protected void setupExtentThumbRect()
    • setupTrackRect

      protected void setupTrackRect()
    • setupFilledTrackRect

      protected void setupFilledTrackRect()
    • setupStartThumbLocation

      protected void setupStartThumbLocation()
    • setupExtentThumbLocation

      protected void setupExtentThumbLocation()
    • setupStartLabelRect

      protected void setupStartLabelRect()
    • setupExtentLabelRect

      protected void setupExtentLabelRect()
    • getStartLabelString

      protected String getStartLabelString()
    • getExtentLabelString

      protected String getExtentLabelString()
    • getXForValue

      protected int getXForValue(int value)
    • getYForValue

      protected int getYForValue(int value)
    • getValueForX

      public int getValueForX(int x)
    • getValueForY

      public int getValueForY(int y)
    • setStartThumbLocation

      public void setStartThumbLocation(int x, int y)
    • setExtentThumbLocation

      public void setExtentThumbLocation(int x, int y)
    • paint

      public void paint(Graphics g, JComponent comp)
      Overrides:
      paint in class ComponentUI
    • recalculateIfInsetsChanged

      protected void recalculateIfInsetsChanged()
    • recalculateIfOrientationChanged

      protected void recalculateIfOrientationChanged()
    • paintFocus

      public void paintFocus(Graphics g)
    • paintTrack

      public void paintTrack(Graphics g)
    • paintFilledTrack

      public void paintFilledTrack(Graphics g)
    • paintStartThumb

      public void paintStartThumb(Graphics g)
    • paintExtentThumb

      public void paintExtentThumb(Graphics g)
    • paintStartLabel

      public void paintStartLabel(Graphics g)
    • paintExtentLabel

      public void paintExtentLabel(Graphics g)