|
||||||||||
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.terra.TerraSplitPaneSkin
public class TerraSplitPaneSkin
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerraSplitPaneSkin()
Method Detail |
---|
public void install(Component component)
Skin
install
in interface Skin
install
in class ContainerSkin
component
- The component to which the skin is being attached.public void setSize(int width, int height)
ConstrainedVisual
setSize
in interface ConstrainedVisual
setSize
in class ComponentSkin
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
layout
in interface Skin
public Color getSplitterHandlePrimaryColor()
public void setSplitterHandlePrimaryColor(Color splitterHandlePrimaryColor)
public final void setSplitterHandlePrimaryColor(String splitterHandlePrimaryColor)
public final void setSplitterHandlePrimaryColor(int splitterHandlePrimaryColor)
public Color getSplitterHandleSecondaryColor()
public void setSplitterHandleSecondaryColor(Color splitterHandleSecondaryColor)
public final void setSplitterHandleSecondaryColor(String splitterHandleSecondaryColor)
public final void setSplitterHandleSecondaryColor(int splitterHandleSecondaryColor)
public int getSplitterThickness()
public void setSplitterThickness(int splitterThickness)
public boolean getUseShadow()
public void setUseShadow(boolean useShadow)
public void topLeftChanged(SplitPane splitPane, Component previousTopLeft)
SplitPaneListener
topLeftChanged
in interface SplitPaneListener
splitPane
- The source of the event.previousTopLeft
- The previous component. The new component can be found inside the splitPane.public void bottomRightChanged(SplitPane splitPane, Component previousBottomRight)
SplitPaneListener
bottomRightChanged
in interface SplitPaneListener
splitPane
- The source of the event.previousBottomRight
- The previous component. The new component can be found inside the splitPane.public void orientationChanged(SplitPane splitPane)
SplitPaneListener
orientationChanged
in interface SplitPaneListener
splitPane
- The source of the event.public void primaryRegionChanged(SplitPane splitPane)
SplitPaneListener
primaryRegionChanged
in interface SplitPaneListener
splitPane
- The source of the event.public void splitRatioChanged(SplitPane splitPane, float previousSplitLocation)
SplitPaneListener
splitRatioChanged
in interface SplitPaneListener
splitPane
- The source of the event.previousSplitLocation
- The previous setting of the splitRatio.public void lockedChanged(SplitPane splitPane)
SplitPaneListener
lockedChanged
in interface SplitPaneListener
splitPane
- The source of the event.public void resizeModeChanged(SplitPane splitPane, SplitPane.ResizeMode previousResizeMode)
SplitPaneListener
resizeModeChanged
in interface SplitPaneListener
splitPane
- The source of the event.previousResizeMode
- The previous setting of the resizeMode.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |