|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.skin.ComponentSkin
pivot.wtk.skin.ContainerSkin
pivot.wtk.skin.SliderSkin
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 pivot.wtk.skin.ContainerSkin |
---|
ContainerSkin.IndexFocusTraversalPolicy |
Field Summary | |
---|---|
static int |
DEFAULT_WIDTH
|
static int |
MINIMUM_THUMB_HEIGHT
|
static int |
MINIMUM_THUMB_WIDTH
|
Fields inherited from class pivot.wtk.skin.ComponentSkin |
---|
SHOW_TOOLTIP_TIMEOUT |
Constructor Summary | |
---|---|
TerraSliderSkin()
|
Method Summary | |
---|---|
java.awt.Color |
getButtonBackgroundColor()
|
java.awt.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()
|
java.awt.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. |
void |
paint(java.awt.Graphics2D graphics)
Paints the visual. |
void |
setButtonBackgroundColor(java.awt.Color buttonBackgroundColor)
|
void |
setButtonBackgroundColor(java.lang.String buttonBackgroundColor)
|
void |
setButtonBorderColor(java.awt.Color buttonBorderColor)
|
void |
setButtonBorderColor(java.lang.String buttonBorderColor)
|
void |
setThumbHeight(int thumbHeight)
|
void |
setThumbHeight(java.lang.Number thumbHeight)
|
void |
setThumbWidth(int thumbWidth)
|
void |
setThumbWidth(java.lang.Number thumbWidth)
|
void |
setTrackColor(java.awt.Color trackColor)
|
void |
setTrackColor(java.lang.String trackColor)
|
void |
setTrackWidth(int trackWidth)
|
void |
setTrackWidth(java.lang.Number trackWidth)
|
void |
uninstall()
Dissociates a skin from a component. |
void |
valueChanged(Slider slider,
int previousValue)
Called when a slider's value has changed. |
Methods inherited from class pivot.wtk.skin.SliderSkin |
---|
boundsChanged |
Methods inherited from class pivot.wtk.skin.ContainerSkin |
---|
componentInserted, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, setBackgroundColor, setBackgroundColor, setBackgroundPaint |
Methods inherited from class pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, decodeColor, displayableChanged, enabledChanged, focusedChanged, getComponent, getHeight, getWidth, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, styleUpdated, tooltipTextChanged, visibleChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 void uninstall()
Skin
uninstall
in interface Skin
uninstall
in class SliderSkin
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(java.awt.Graphics2D graphics)
Visual
paint
in interface Visual
paint
in class ContainerSkin
graphics
- The graphics context in which to paint the visual.public java.awt.Color getTrackColor()
public void setTrackColor(java.awt.Color trackColor)
public final void setTrackColor(java.lang.String trackColor)
public int getTrackWidth()
public void setTrackWidth(int trackWidth)
public void setTrackWidth(java.lang.Number trackWidth)
public java.awt.Color getButtonBackgroundColor()
public void setButtonBackgroundColor(java.awt.Color buttonBackgroundColor)
public final void setButtonBackgroundColor(java.lang.String buttonBackgroundColor)
public java.awt.Color getButtonBorderColor()
public void setButtonBorderColor(java.awt.Color buttonBorderColor)
public final void setButtonBorderColor(java.lang.String buttonBorderColor)
public int getThumbWidth()
public void setThumbWidth(int thumbWidth)
public void setThumbWidth(java.lang.Number thumbWidth)
public int getThumbHeight()
public void setThumbHeight(int thumbHeight)
public void setThumbHeight(java.lang.Number thumbHeight)
public void valueChanged(Slider slider, int previousValue)
SliderValueListener
valueChanged
in interface SliderValueListener
valueChanged
in class SliderSkin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |