|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.SliderSkin
org.apache.pivot.wtk.skin.terra.TerraSliderSkin
public class TerraSliderSkin
Terra slider skin.
Nested Class Summary | |
---|---|
protected class |
TerraSliderSkin.Thumb
Slider thumb component. |
protected class |
TerraSliderSkin.ThumbSkin
Slider thumb skin. |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
---|
ContainerSkin.IndexFocusTraversalPolicy |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.SliderListener |
---|
SliderListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener |
---|
ContainerListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener |
---|
ContainerMouseListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
---|
ComponentListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
---|
ComponentStateListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
---|
ComponentMouseListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
---|
ComponentMouseButtonListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
---|
ComponentKeyListener.Adapter |
Field Summary | |
---|---|
static int |
DEFAULT_WIDTH
|
(package private) Point |
dragOffset
|
static int |
MINIMUM_THUMB_HEIGHT
|
static int |
MINIMUM_THUMB_WIDTH
|
Constructor Summary | |
---|---|
TerraSliderSkin()
|
Method Summary | |
---|---|
Color |
getButtonBackgroundColor()
|
Color |
getButtonBorderColor()
|
int |
getPreferredHeight(int width)
Returns the visual's preferred height given the provided width constraint. |
Dimensions |
getPreferredSize()
Returns the visual's unconstrained preferred size. |
int |
getPreferredWidth(int height)
Returns the visual's preferred width given the provided height constraint. |
int |
getThumbHeight()
|
int |
getThumbWidth()
|
int |
getTickSpacing()
|
Color |
getTrackColor()
|
int |
getTrackWidth()
|
void |
install(Component component)
Associates a skin with a component. |
void |
layout()
If the component on which the skin is installed is a container, lays out the container's children. |
boolean |
mouseClick(Component component,
Mouse.Button button,
int x,
int y,
int count)
Called when a mouse button is clicked over a component. |
void |
orientationChanged(Slider slider)
Called when a sliders's orientation has changed. |
void |
paint(Graphics2D graphics)
Paints the visual. |
void |
rangeChanged(Slider slider,
int previousStart,
int previousEnd)
Called when a slider's range has changed. |
void |
setButtonBackgroundColor(Color buttonBackgroundColor)
|
void |
setButtonBackgroundColor(String buttonBackgroundColor)
|
void |
setButtonBorderColor(Color buttonBorderColor)
|
void |
setButtonBorderColor(String buttonBorderColor)
|
void |
setThumbHeight(int thumbHeight)
|
void |
setThumbHeight(Number thumbHeight)
|
void |
setThumbWidth(int thumbWidth)
|
void |
setThumbWidth(Number thumbWidth)
|
void |
setTickSpacing(int tickSpacing)
|
void |
setTickSpacing(Number tickSpacing)
|
void |
setTrackColor(Color trackColor)
|
void |
setTrackColor(String trackColor)
|
void |
setTrackWidth(int trackWidth)
|
void |
setTrackWidth(Number trackWidth)
|
void |
valueChanged(Slider slider,
int previousValue)
Called when a slider's value has changed. |
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 |
Field Detail |
---|
Point dragOffset
public static final int DEFAULT_WIDTH
public static final int MINIMUM_THUMB_WIDTH
public static final int MINIMUM_THUMB_HEIGHT
Constructor Detail |
---|
public TerraSliderSkin()
Method Detail |
---|
public void install(Component component)
Skin
install
in interface Skin
install
in class SliderSkin
component
- The component to which the skin is being attached.public int getPreferredWidth(int height)
ConstrainedVisual
getPreferredWidth
in interface ConstrainedVisual
getPreferredWidth
in class ContainerSkin
height
- The height by which to constrain the preferred width, or -1
for no constraint.public int getPreferredHeight(int width)
ConstrainedVisual
getPreferredHeight
in interface ConstrainedVisual
getPreferredHeight
in class ContainerSkin
width
- The width by which to constrain the preferred height, or -1
for no constraint.public Dimensions getPreferredSize()
ConstrainedVisual
getPreferredSize
in interface ConstrainedVisual
getPreferredSize
in class ComponentSkin
public void layout()
Skin
public void paint(Graphics2D graphics)
Visual
paint
in interface Visual
paint
in class ContainerSkin
graphics
- The graphics context in which to paint the visual.public Color getTrackColor()
public void setTrackColor(Color trackColor)
public final void setTrackColor(String trackColor)
public int getTrackWidth()
public void setTrackWidth(int trackWidth)
public void setTrackWidth(Number trackWidth)
public Color getButtonBackgroundColor()
public void setButtonBackgroundColor(Color buttonBackgroundColor)
public final void setButtonBackgroundColor(String buttonBackgroundColor)
public Color getButtonBorderColor()
public void setButtonBorderColor(Color buttonBorderColor)
public final void setButtonBorderColor(String buttonBorderColor)
public int getThumbWidth()
public void setThumbWidth(int thumbWidth)
public void setThumbWidth(Number thumbWidth)
public int getThumbHeight()
public void setThumbHeight(int thumbHeight)
public void setThumbHeight(Number thumbHeight)
public int getTickSpacing()
public void setTickSpacing(int tickSpacing)
public void setTickSpacing(Number tickSpacing)
public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count)
ComponentMouseButtonListener
mouseClick
in interface ComponentMouseButtonListener
mouseClick
in class ComponentSkin
public void rangeChanged(Slider slider, int previousStart, int previousEnd)
SliderListener
public void orientationChanged(Slider slider)
SliderListener
slider
- The source of the event.public void valueChanged(Slider slider, int previousValue)
SliderValueListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |