org.apache.pivot.wtk.skin.terra
Class TerraSplitPaneSkin

java.lang.Object
  extended by org.apache.pivot.wtk.skin.ComponentSkin
      extended by org.apache.pivot.wtk.skin.ContainerSkin
          extended by org.apache.pivot.wtk.skin.terra.TerraSplitPaneSkin
All Implemented Interfaces:
ComponentKeyListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ComponentTooltipListener, ConstrainedVisual, ContainerListener, ContainerMouseListener, Skin, SplitPaneListener, Visual

public class TerraSplitPaneSkin
extends ContainerSkin
implements SplitPaneListener

Split pane skin.


Nested Class Summary
protected  class TerraSplitPaneSkin.Splitter
          Split pane splitter component.
protected  class TerraSplitPaneSkin.SplitterShadow
          Split pane splitter shadow component.
protected  class TerraSplitPaneSkin.SplitterShadowSkin
          Split pane splitter shadow component skin.
protected  class TerraSplitPaneSkin.SplitterSkin
          Split pane splitter component 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.SplitPaneListener
SplitPaneListener.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
 
Constructor Summary
TerraSplitPaneSkin()
           
 
Method Summary
 void bottomRightChanged(SplitPane splitPane, Component previousBottomRight)
          Called when a split pane's bottom right component has changed.
 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.
 Color getSplitterHandlePrimaryColor()
           
 Color getSplitterHandleSecondaryColor()
           
 int getSplitterThickness()
           
 boolean getUseShadow()
           
 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 lockedChanged(SplitPane splitPane)
          Called when a split pane's locked flag has changed.
 void orientationChanged(SplitPane splitPane)
          Called when a split pane's orientation has changed.
 void primaryRegionChanged(SplitPane splitPane)
          Called when a split pane's primary region has changed.
 void resizeModeChanged(SplitPane splitPane, SplitPane.ResizeMode previousResizeMode)
          Called when a split pane's split location has changed.
 void setSize(int width, int height)
          Sets the visual's render size.
 void setSplitterHandlePrimaryColor(Color splitterHandlePrimaryColor)
           
 void setSplitterHandlePrimaryColor(int splitterHandlePrimaryColor)
           
 void setSplitterHandlePrimaryColor(String splitterHandlePrimaryColor)
           
 void setSplitterHandleSecondaryColor(Color splitterHandleSecondaryColor)
           
 void setSplitterHandleSecondaryColor(int splitterHandleSecondaryColor)
           
 void setSplitterHandleSecondaryColor(String splitterHandleSecondaryColor)
           
 void setSplitterThickness(int splitterThickness)
           
 void setUseShadow(boolean useShadow)
           
 void splitRatioChanged(SplitPane splitPane, float previousSplitLocation)
          Called when a split pane's split location has changed.
 void topLeftChanged(SplitPane splitPane, Component previousTopLeft)
          Called when a split pane's top left component has changed.
 
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, paint, 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, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerraSplitPaneSkin

public TerraSplitPaneSkin()
Method Detail

install

public void install(Component component)
Description copied from interface: Skin
Associates a skin with a component.

Specified by:
install in interface Skin
Overrides:
install in class ContainerSkin
Parameters:
component - The component to which the skin is being attached.

setSize

public void setSize(int width,
                    int height)
Description copied from interface: ConstrainedVisual
Sets the visual's render size.

Specified by:
setSize in interface ConstrainedVisual
Overrides:
setSize in class ComponentSkin

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

getSplitterHandlePrimaryColor

public Color getSplitterHandlePrimaryColor()

setSplitterHandlePrimaryColor

public void setSplitterHandlePrimaryColor(Color splitterHandlePrimaryColor)

setSplitterHandlePrimaryColor

public final void setSplitterHandlePrimaryColor(String splitterHandlePrimaryColor)

setSplitterHandlePrimaryColor

public final void setSplitterHandlePrimaryColor(int splitterHandlePrimaryColor)

getSplitterHandleSecondaryColor

public Color getSplitterHandleSecondaryColor()

setSplitterHandleSecondaryColor

public void setSplitterHandleSecondaryColor(Color splitterHandleSecondaryColor)

setSplitterHandleSecondaryColor

public final void setSplitterHandleSecondaryColor(String splitterHandleSecondaryColor)

setSplitterHandleSecondaryColor

public final void setSplitterHandleSecondaryColor(int splitterHandleSecondaryColor)

getSplitterThickness

public int getSplitterThickness()

setSplitterThickness

public void setSplitterThickness(int splitterThickness)

getUseShadow

public boolean getUseShadow()

setUseShadow

public void setUseShadow(boolean useShadow)

topLeftChanged

public void topLeftChanged(SplitPane splitPane,
                           Component previousTopLeft)
Description copied from interface: SplitPaneListener
Called when a split pane's top left component has changed.

Specified by:
topLeftChanged in interface SplitPaneListener
Parameters:
splitPane - The source of the event.
previousTopLeft - The previous component. The new component can be found inside the splitPane.

bottomRightChanged

public void bottomRightChanged(SplitPane splitPane,
                               Component previousBottomRight)
Description copied from interface: SplitPaneListener
Called when a split pane's bottom right component has changed.

Specified by:
bottomRightChanged in interface SplitPaneListener
Parameters:
splitPane - The source of the event.
previousBottomRight - The previous component. The new component can be found inside the splitPane.

orientationChanged

public void orientationChanged(SplitPane splitPane)
Description copied from interface: SplitPaneListener
Called when a split pane's orientation has changed.

Specified by:
orientationChanged in interface SplitPaneListener
Parameters:
splitPane - The source of the event.

primaryRegionChanged

public void primaryRegionChanged(SplitPane splitPane)
Description copied from interface: SplitPaneListener
Called when a split pane's primary region has changed.

Specified by:
primaryRegionChanged in interface SplitPaneListener
Parameters:
splitPane - The source of the event.

splitRatioChanged

public void splitRatioChanged(SplitPane splitPane,
                              float previousSplitLocation)
Description copied from interface: SplitPaneListener
Called when a split pane's split location has changed.

Specified by:
splitRatioChanged in interface SplitPaneListener
Parameters:
splitPane - The source of the event.
previousSplitLocation - The previous setting of the splitRatio.

lockedChanged

public void lockedChanged(SplitPane splitPane)
Description copied from interface: SplitPaneListener
Called when a split pane's locked flag has changed.

Specified by:
lockedChanged in interface SplitPaneListener
Parameters:
splitPane - The source of the event.

resizeModeChanged

public void resizeModeChanged(SplitPane splitPane,
                              SplitPane.ResizeMode previousResizeMode)
Description copied from interface: SplitPaneListener
Called when a split pane's split location has changed.

Specified by:
resizeModeChanged in interface SplitPaneListener
Parameters:
splitPane - The source of the event.
previousResizeMode - The previous setting of the resizeMode.