Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--javax.swing.plaf.SliderUI | +--javax.swing.plaf.basic.BasicSliderUI
A Basic L&F implementation of SliderUI.
Inner Class Summary | |
class |
BasicSliderUI.ActionScroller
As of Java 2 platform v1.3 this undocumented class is no longer used. |
class |
BasicSliderUI.ChangeHandler
Data model listener. |
class |
BasicSliderUI.ComponentHandler
Listener for resizing events. |
class |
BasicSliderUI.FocusHandler
Focus-change listener. |
class |
BasicSliderUI.PropertyChangeHandler
|
class |
BasicSliderUI.ScrollListener
Scroll-event listener. |
class |
BasicSliderUI.TrackListener
Track mouse movements. |
Field Summary | |
protected ChangeListener |
changeListener
|
protected ComponentListener |
componentListener
|
protected Rectangle |
contentRect
|
protected Insets |
focusInsets
|
protected FocusListener |
focusListener
|
protected Rectangle |
focusRect
|
protected Insets |
insetCache
|
protected Rectangle |
labelRect
|
protected boolean |
leftToRightCache
|
static int |
MAX_SCROLL
|
static int |
MIN_SCROLL
|
static int |
NEGATIVE_SCROLL
|
static int |
POSITIVE_SCROLL
|
protected PropertyChangeListener |
propertyChangeListener
|
protected BasicSliderUI.ScrollListener |
scrollListener
|
protected Timer |
scrollTimer
|
protected JSlider |
slider
|
protected Rectangle |
thumbRect
|
protected Rectangle |
tickRect
|
protected int |
trackBuffer
|
protected BasicSliderUI.TrackListener |
trackListener
|
protected Rectangle |
trackRect
|
Constructor Summary | |
BasicSliderUI(JSlider b)
|
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int POSITIVE_SCROLL
public static final int NEGATIVE_SCROLL
public static final int MIN_SCROLL
public static final int MAX_SCROLL
protected Timer scrollTimer
protected JSlider slider
protected Insets focusInsets
protected Insets insetCache
protected boolean leftToRightCache
protected Rectangle focusRect
protected Rectangle contentRect
protected Rectangle labelRect
protected Rectangle tickRect
protected Rectangle trackRect
protected Rectangle thumbRect
protected int trackBuffer
protected BasicSliderUI.TrackListener trackListener
protected ChangeListener changeListener
protected ComponentListener componentListener
protected FocusListener focusListener
protected BasicSliderUI.ScrollListener scrollListener
protected PropertyChangeListener propertyChangeListener
Constructor Detail |
public BasicSliderUI(JSlider b)
Method Detail |
protected Color getShadowColor()
protected Color getHighlightColor()
protected Color getFocusColor()
public static ComponentUI createUI(JComponent b)
public void installUI(JComponent c)
installUI
in class ComponentUI
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
protected void installDefaults(JSlider slider)
protected BasicSliderUI.TrackListener createTrackListener(JSlider slider)
protected ChangeListener createChangeListener(JSlider slider)
protected ComponentListener createComponentListener(JSlider slider)
protected FocusListener createFocusListener(JSlider slider)
protected BasicSliderUI.ScrollListener createScrollListener(JSlider slider)
protected PropertyChangeListener createPropertyChangeListener(JSlider slider)
protected void installListeners(JSlider slider)
protected void uninstallListeners(JSlider slider)
protected void installKeyboardActions(JSlider slider)
protected void uninstallKeyboardActions(JSlider slider)
public Dimension getPreferredHorizontalSize()
public Dimension getPreferredVerticalSize()
public Dimension getMinimumHorizontalSize()
public Dimension getMinimumVerticalSize()
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class ComponentUI
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class ComponentUI
public Dimension getMaximumSize(JComponent c)
getMaximumSize
in class ComponentUI
protected void calculateGeometry()
protected void calculateFocusRect()
protected void calculateThumbSize()
protected void calculateContentRect()
protected void calculateThumbLocation()
protected void calculateTrackBuffer()
protected void calculateTrackRect()
protected int getTickLength()
protected void calculateTickRect()
protected void calculateLabelRect()
protected Dimension getThumbSize()
protected int getWidthOfWidestLabel()
protected int getHeightOfTallestLabel()
protected int getWidthOfHighValueLabel()
protected int getWidthOfLowValueLabel()
protected int getHeightOfHighValueLabel()
protected int getHeightOfLowValueLabel()
protected boolean drawInverted()
protected Component getLowestValueLabel()
JSlider.setLabelTable(java.util.Dictionary)
protected Component getHighestValueLabel()
JSlider.setLabelTable(java.util.Dictionary)
public void paint(Graphics g, JComponent c)
paint
in class ComponentUI
protected void recalculateIfInsetsChanged()
protected void recalculateIfOrientationChanged()
public void paintFocus(Graphics g)
public void paintTrack(Graphics g)
public void paintTicks(Graphics g)
protected void paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
protected void paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
protected void paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
protected void paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
public void paintLabels(Graphics g)
protected void paintHorizontalLabel(Graphics g, int value, Component label)
JSlider.setLabelTable(java.util.Dictionary)
protected void paintVerticalLabel(Graphics g, int value, Component label)
JSlider.setLabelTable(java.util.Dictionary)
public void paintThumb(Graphics g)
public void setThumbLocation(int x, int y)
public void scrollByBlock(int direction)
public void scrollByUnit(int direction)
protected void scrollDueToClickInTrack(int dir)
protected int xPositionForValue(int value)
protected int yPositionForValue(int value)
public int valueForYPosition(int yPos)
public int valueForXPosition(int xPos)
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.