pivot.wtk.skin
Class FlowPaneSkin
java.lang.Object
pivot.wtk.skin.ComponentSkin
pivot.wtk.skin.ContainerSkin
pivot.wtk.skin.FlowPaneSkin
- All Implemented Interfaces:
- ComponentKeyListener, ComponentLayoutListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ConstrainedVisual, ContainerListener, FlowPaneListener, Skin, Visual
- Direct Known Subclasses:
- TerraFlowPaneSkin
public class FlowPaneSkin
- extends ContainerSkin
- implements FlowPaneListener
Flow pane skin.
- Author:
- gbrown
Methods inherited from class pivot.wtk.skin.ContainerSkin |
componentInserted, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, install, isFocusable, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint, uninstall |
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 |
FlowPaneSkin
public FlowPaneSkin()
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.
- Specified by:
layout
in interface Skin
getHorizontalAlignment
public HorizontalAlignment getHorizontalAlignment()
setHorizontalAlignment
public void setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
setHorizontalAlignment
public final void setHorizontalAlignment(java.lang.String horizontalAlignment)
getVerticalAlignment
public VerticalAlignment getVerticalAlignment()
setVerticalAlignment
public void setVerticalAlignment(VerticalAlignment verticalAlignment)
setVerticalAlignment
public final void setVerticalAlignment(java.lang.String verticalAlignment)
getPadding
public Insets getPadding()
setPadding
public void setPadding(Insets padding)
setPadding
public final void setPadding(Dictionary<java.lang.String,?> padding)
setPadding
public final void setPadding(int padding)
setPadding
public final void setPadding(java.lang.Number padding)
getSpacing
public int getSpacing()
setSpacing
public void setSpacing(int spacing)
setSpacing
public final void setSpacing(java.lang.Number spacing)
orientationChanged
public void orientationChanged(FlowPane flowPane)
- Description copied from interface:
FlowPaneListener
- Called when a flow pane's orientation has changed.
- Specified by:
orientationChanged
in interface FlowPaneListener