| java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.SliderUI javax.swing.plaf.basic.BasicSliderUI org.jvnet.substance.SubstanceSliderUI
SubstanceSliderUI | public class SubstanceSliderUI extends BasicSliderUI implements Trackable(Code) | | UI for sliders in Substance look and feel.
author: Kirill Grouchnikov |
Method Summary | |
protected void | calculateLabelRect() | protected void | calculateThumbLocation() | protected void | calculateTickRect() | protected void | calculateTrackRect() | public static ComponentUI | createUI(JComponent c) | public ButtonModel | getButtonModel() Returns the button model for tracking the thumb transitions. | protected Icon | getIcon() Returns the thumb icon for the associated slider. | public Dimension | getPreferredHorizontalSize() | public Dimension | getPreferredSize(JComponent c) | public Dimension | getPreferredVerticalSize() | protected int | getThumbOverhang() Returns the amount that the thumb goes past the slide bar. | protected Dimension | getThumbSize() | protected int | getTickLength() | protected int | getTrackWidth() Returns the shorter dimension of the track. | protected void | installDefaults(JSlider slider) | protected void | installListeners(JSlider slider) | public boolean | isInside(MouseEvent me) | public synchronized void | paint(Graphics g, JComponent c) | public void | paintFocus(Graphics g) | public void | paintLabels(Graphics g) | protected void | paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) | protected void | paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y) | protected void | paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) | protected void | paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y) | public void | paintThumb(Graphics g) | public void | paintTicks(Graphics g) | public void | paintTrack(Graphics g) | public void | setThumbLocation(int x, int y) | protected void | uninstallListeners(JSlider slider) |
horizontalIcon | protected Icon horizontalIcon(Code) | | Icon for horizontal sliders.
|
roundIcon | protected Icon roundIcon(Code) | | Icon for sliders without labels and ticks.
|
substanceFadeStateListener | protected FadeStateListener substanceFadeStateListener(Code) | | Listener for fade animations.
|
verticalIcon | protected Icon verticalIcon(Code) | | Icon for vertical sliders.
|
SubstanceSliderUI | public SubstanceSliderUI(JSlider slider)(Code) | | Simple constructor.
Parameters: slider - Slider. |
calculateLabelRect | protected void calculateLabelRect()(Code) | | |
calculateThumbLocation | protected void calculateThumbLocation()(Code) | | |
calculateTickRect | protected void calculateTickRect()(Code) | | |
calculateTrackRect | protected void calculateTrackRect()(Code) | | |
getButtonModel | public ButtonModel getButtonModel()(Code) | | Returns the button model for tracking the thumb transitions.
Button model for tracking the thumb transitions. |
getIcon | protected Icon getIcon()(Code) | | Returns the thumb icon for the associated slider.
The thumb icon for the associated slider. |
getPreferredHorizontalSize | public Dimension getPreferredHorizontalSize()(Code) | | |
getThumbOverhang | protected int getThumbOverhang()(Code) | | Returns the amount that the thumb goes past the slide bar.
Amount that the thumb goes past the slide bar. |
getTickLength | protected int getTickLength()(Code) | | |
getTrackWidth | protected int getTrackWidth()(Code) | | Returns the shorter dimension of the track.
Shorter dimension of the track. |
installDefaults | protected void installDefaults(JSlider slider)(Code) | | |
installListeners | protected void installListeners(JSlider slider)(Code) | | |
paintMajorTickForHorizSlider | protected void paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)(Code) | | |
paintMajorTickForVertSlider | protected void paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)(Code) | | |
paintMinorTickForHorizSlider | protected void paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)(Code) | | |
paintMinorTickForVertSlider | protected void paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)(Code) | | |
setThumbLocation | public void setThumbLocation(int x, int y)(Code) | | |
uninstallListeners | protected void uninstallListeners(JSlider slider)(Code) | | |
Methods inherited from javax.swing.plaf.basic.BasicSliderUI | protected void calculateContentRect()(Code)(Java Doc) protected void calculateFocusRect()(Code)(Java Doc) protected void calculateGeometry()(Code)(Java Doc) protected void calculateLabelRect()(Code)(Java Doc) protected void calculateThumbLocation()(Code)(Java Doc) protected void calculateThumbSize()(Code)(Java Doc) protected void calculateTickRect()(Code)(Java Doc) protected void calculateTrackBuffer()(Code)(Java Doc) protected void calculateTrackRect()(Code)(Java Doc) protected ChangeListener createChangeListener(JSlider slider)(Code)(Java Doc) protected ComponentListener createComponentListener(JSlider slider)(Code)(Java Doc) protected FocusListener createFocusListener(JSlider slider)(Code)(Java Doc) protected PropertyChangeListener createPropertyChangeListener(JSlider slider)(Code)(Java Doc) protected ScrollListener createScrollListener(JSlider slider)(Code)(Java Doc) protected TrackListener createTrackListener(JSlider slider)(Code)(Java Doc) public static ComponentUI createUI(JComponent b)(Code)(Java Doc) protected boolean drawInverted()(Code)(Java Doc) public int getBaseline(JComponent c, int width, int height)(Code)(Java Doc) public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)(Java Doc) protected Color getFocusColor()(Code)(Java Doc) protected int getHeightOfHighValueLabel()(Code)(Java Doc) protected int getHeightOfLowValueLabel()(Code)(Java Doc) protected int getHeightOfTallestLabel()(Code)(Java Doc) protected Integer getHighestValue()(Code)(Java Doc) protected Component getHighestValueLabel()(Code)(Java Doc) protected Color getHighlightColor()(Code)(Java Doc) protected Integer getLowestValue()(Code)(Java Doc) protected Component getLowestValueLabel()(Code)(Java Doc) public Dimension getMaximumSize(JComponent c)(Code)(Java Doc) public Dimension getMinimumHorizontalSize()(Code)(Java Doc) public Dimension getMinimumSize(JComponent c)(Code)(Java Doc) public Dimension getMinimumVerticalSize()(Code)(Java Doc) public Dimension getPreferredHorizontalSize()(Code)(Java Doc) public Dimension getPreferredSize(JComponent c)(Code)(Java Doc) public Dimension getPreferredVerticalSize()(Code)(Java Doc) protected Color getShadowColor()(Code)(Java Doc) protected Dimension getThumbSize()(Code)(Java Doc) protected int getTickLength()(Code)(Java Doc) protected int getWidthOfHighValueLabel()(Code)(Java Doc) protected int getWidthOfLowValueLabel()(Code)(Java Doc) protected int getWidthOfWidestLabel()(Code)(Java Doc) protected void installDefaults(JSlider slider)(Code)(Java Doc) protected void installKeyboardActions(JSlider slider)(Code)(Java Doc) protected void installListeners(JSlider slider)(Code)(Java Doc) public void installUI(JComponent c)(Code)(Java Doc) protected boolean isDragging()(Code)(Java Doc) protected boolean labelsHaveSameBaselines()(Code)(Java Doc) public void paint(Graphics g, JComponent c)(Code)(Java Doc) public void paintFocus(Graphics g)(Code)(Java Doc) protected void paintHorizontalLabel(Graphics g, int value, Component label)(Code)(Java Doc) public void paintLabels(Graphics g)(Code)(Java Doc) protected void paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)(Code)(Java Doc) protected void paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)(Code)(Java Doc) protected void paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)(Code)(Java Doc) protected void paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)(Code)(Java Doc) public void paintThumb(Graphics g)(Code)(Java Doc) public void paintTicks(Graphics g)(Code)(Java Doc) public void paintTrack(Graphics g)(Code)(Java Doc) protected void paintVerticalLabel(Graphics g, int value, Component label)(Code)(Java Doc) protected void recalculateIfInsetsChanged()(Code)(Java Doc) protected void recalculateIfOrientationChanged()(Code)(Java Doc) public void scrollByBlock(int direction)(Code)(Java Doc) public void scrollByUnit(int direction)(Code)(Java Doc) protected void scrollDueToClickInTrack(int dir)(Code)(Java Doc) public void setThumbLocation(int x, int y)(Code)(Java Doc) protected void uninstallKeyboardActions(JSlider slider)(Code)(Java Doc) protected void uninstallListeners(JSlider slider)(Code)(Java Doc) public void uninstallUI(JComponent c)(Code)(Java Doc) public int valueForXPosition(int xPos)(Code)(Java Doc) public int valueForYPosition(int yPos)(Code)(Java Doc) protected int xPositionForValue(int value)(Code)(Java Doc) protected int yPositionForValue(int value)(Code)(Java Doc) protected int yPositionForValue(int value, int trackY, int trackHeight)(Code)(Java Doc)
|
|
|