pivot.wtk.skin
Class StackPaneSkin
java.lang.Object
pivot.wtk.skin.ComponentSkin
pivot.wtk.skin.ContainerSkin
pivot.wtk.skin.StackPaneSkin
- All Implemented Interfaces:
- ComponentKeyListener, ComponentLayoutListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ConstrainedVisual, ContainerListener, Skin, Visual
public class StackPaneSkin
- extends ContainerSkin
Stack pane skin.
- Author:
- gbrown
Method Summary |
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. |
void |
layout()
If the component on which the skin is installed is a container, lays
out the container's children. |
Methods inherited from class pivot.wtk.skin.ContainerSkin |
componentInserted, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, install, isFocusable, isOpaque, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, uninstall |
Methods inherited from class pivot.wtk.skin.ComponentSkin |
cursorChanged, displayableChanged, enabledChanged, focusedChanged, getComponent, getHeight, getWidth, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, parentChanged, preferredSizeChanged, repaintComponent, 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 |
StackPaneSkin
public StackPaneSkin()
getPreferredWidth
public int getPreferredWidth(int height)
- Description copied from interface:
ConstrainedVisual
- Returns the visual's preferred width given the provided height
constraint.
- Specified by:
getPreferredWidth
in interface ConstrainedVisual
- Overrides:
getPreferredWidth
in class ContainerSkin
- Parameters:
height
- The height by which to constrain the preferred width, or -1
for no constraint.
getPreferredHeight
public int getPreferredHeight(int width)
- Description copied from interface:
ConstrainedVisual
- Returns the visual's preferred height given the provided width
constraint.
- Specified by:
getPreferredHeight
in interface ConstrainedVisual
- Overrides:
getPreferredHeight
in class ContainerSkin
- Parameters:
width
- The width by which to constrain the preferred height, or -1
for no constraint.
getPreferredSize
public Dimensions getPreferredSize()
- Description copied from interface:
ConstrainedVisual
- Returns the visual's unconstrained preferred size.
- Specified by:
getPreferredSize
in interface ConstrainedVisual
- Overrides:
getPreferredSize
in class ComponentSkin
layout
public void layout()
- Description copied from interface:
Skin
- If the component on which the skin is installed is a container, lays
out the container's children.