org.apache.pivot.wtk.skin.terra
Class TerraSliderSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.SliderSkin
org.apache.pivot.wtk.skin.terra.TerraSliderSkin
- All Implemented Interfaces:
- org.apache.pivot.wtk.ComponentKeyListener, org.apache.pivot.wtk.ComponentListener, org.apache.pivot.wtk.ComponentMouseButtonListener, org.apache.pivot.wtk.ComponentMouseListener, org.apache.pivot.wtk.ComponentMouseWheelListener, org.apache.pivot.wtk.ComponentStateListener, org.apache.pivot.wtk.ComponentTooltipListener, org.apache.pivot.wtk.ConstrainedVisual, org.apache.pivot.wtk.ContainerListener, org.apache.pivot.wtk.ContainerMouseListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.SliderListener, org.apache.pivot.wtk.SliderValueListener, org.apache.pivot.wtk.Visual
public class TerraSliderSkin
- extends org.apache.pivot.wtk.skin.SliderSkin
Terra slider skin.
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
org.apache.pivot.wtk.skin.ContainerSkin.IndexFocusTraversalPolicy |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.SliderListener |
org.apache.pivot.wtk.SliderListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener |
org.apache.pivot.wtk.ContainerListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener |
org.apache.pivot.wtk.ContainerMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
org.apache.pivot.wtk.ComponentListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
org.apache.pivot.wtk.ComponentStateListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
org.apache.pivot.wtk.ComponentMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
org.apache.pivot.wtk.ComponentKeyListener.Adapter |
| Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint |
| Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, getBaseline, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dragOffset
org.apache.pivot.wtk.Point dragOffset
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH
- See Also:
- Constant Field Values
MINIMUM_THUMB_WIDTH
public static final int MINIMUM_THUMB_WIDTH
- See Also:
- Constant Field Values
MINIMUM_THUMB_HEIGHT
public static final int MINIMUM_THUMB_HEIGHT
- See Also:
- Constant Field Values
TerraSliderSkin
public TerraSliderSkin()
install
public void install(org.apache.pivot.wtk.Component component)
- Specified by:
install in interface org.apache.pivot.wtk.Skin- Overrides:
install in class org.apache.pivot.wtk.skin.SliderSkin
getPreferredWidth
public int getPreferredWidth(int height)
- Specified by:
getPreferredWidth in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredWidth in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredHeight
public int getPreferredHeight(int width)
- Specified by:
getPreferredHeight in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredHeight in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredSize
public org.apache.pivot.wtk.Dimensions getPreferredSize()
- Specified by:
getPreferredSize in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredSize in class org.apache.pivot.wtk.skin.ComponentSkin
layout
public void layout()
paint
public void paint(Graphics2D graphics)
- Specified by:
paint in interface org.apache.pivot.wtk.Visual- Overrides:
paint in class org.apache.pivot.wtk.skin.ContainerSkin
getTrackColor
public Color getTrackColor()
setTrackColor
public void setTrackColor(Color trackColor)
setTrackColor
public final void setTrackColor(String trackColor)
getTrackWidth
public int getTrackWidth()
setTrackWidth
public void setTrackWidth(int trackWidth)
setTrackWidth
public void setTrackWidth(Number trackWidth)
getButtonBackgroundColor
public Color getButtonBackgroundColor()
setButtonBackgroundColor
public void setButtonBackgroundColor(Color buttonBackgroundColor)
setButtonBackgroundColor
public final void setButtonBackgroundColor(String buttonBackgroundColor)
getButtonBorderColor
public Color getButtonBorderColor()
setButtonBorderColor
public void setButtonBorderColor(Color buttonBorderColor)
setButtonBorderColor
public final void setButtonBorderColor(String buttonBorderColor)
getThumbWidth
public int getThumbWidth()
setThumbWidth
public void setThumbWidth(int thumbWidth)
setThumbWidth
public void setThumbWidth(Number thumbWidth)
getThumbHeight
public int getThumbHeight()
setThumbHeight
public void setThumbHeight(int thumbHeight)
setThumbHeight
public void setThumbHeight(Number thumbHeight)
getTickSpacing
public int getTickSpacing()
setTickSpacing
public void setTickSpacing(int tickSpacing)
setTickSpacing
public void setTickSpacing(Number tickSpacing)
mouseClick
public boolean mouseClick(org.apache.pivot.wtk.Component component,
org.apache.pivot.wtk.Mouse.Button button,
int x,
int y,
int count)
- Specified by:
mouseClick in interface org.apache.pivot.wtk.ComponentMouseButtonListener- Overrides:
mouseClick in class org.apache.pivot.wtk.skin.ComponentSkin
rangeChanged
public void rangeChanged(org.apache.pivot.wtk.Slider slider,
int previousStart,
int previousEnd)
orientationChanged
public void orientationChanged(org.apache.pivot.wtk.Slider slider)
valueChanged
public void valueChanged(org.apache.pivot.wtk.Slider slider,
int previousValue)