net.beeger.squareness.delegate
Class SquarenessSliderUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.SliderUI
          extended by javax.swing.plaf.basic.BasicSliderUI
              extended by net.beeger.squareness.delegate.SquarenessSliderUI

public class SquarenessSliderUI
extends javax.swing.plaf.basic.BasicSliderUI

The Squareness Slider UI delegate.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicSliderUI
javax.swing.plaf.basic.BasicSliderUI.ActionScroller, javax.swing.plaf.basic.BasicSliderUI.ChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ComponentHandler, javax.swing.plaf.basic.BasicSliderUI.FocusHandler, javax.swing.plaf.basic.BasicSliderUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ScrollListener, javax.swing.plaf.basic.BasicSliderUI.TrackListener
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicSliderUI
MAX_SCROLL, MIN_SCROLL, NEGATIVE_SCROLL, POSITIVE_SCROLL
 
Constructor Summary
SquarenessSliderUI(javax.swing.JSlider slider)
          Create the UI delegate.
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent component)
          Create an UI delegate for the given component.
 void paintThumb(java.awt.Graphics graphics)
          Paint the thumb of the slider.
 void paintTrack(java.awt.Graphics graphics)
          Paint the track of the slider.
 
Methods inherited from class javax.swing.plaf.basic.BasicSliderUI
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, installUI, paint, paintFocus, paintLabels, paintTicks, scrollByBlock, scrollByUnit, setThumbLocation, uninstallUI, valueForXPosition, valueForYPosition
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SquarenessSliderUI

public SquarenessSliderUI(javax.swing.JSlider slider)
Create the UI delegate.

Parameters:
slider - The slider for which this delegate will be used.
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent component)
Create an UI delegate for the given component.

Parameters:
component - The component for which to create the UI delegate.
Returns:
The created UI delegate.

paintTrack

public void paintTrack(java.awt.Graphics graphics)
Paint the track of the slider.

Overrides:
paintTrack in class javax.swing.plaf.basic.BasicSliderUI
Parameters:
graphics - The graphics object to use for painting the track.

paintThumb

public void paintThumb(java.awt.Graphics graphics)
Paint the thumb of the slider.

Overrides:
paintThumb in class javax.swing.plaf.basic.BasicSliderUI
Parameters:
graphics - The graphics object to use for the painting.