|
||||||||||
| 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.TerraPanoramaSkin
public class TerraPanoramaSkin
Panorama skin.
| Nested Class Summary | |
|---|---|
protected class |
TerraPanoramaSkin.EastButtonImage
East button image. |
protected class |
TerraPanoramaSkin.NorthButtonImage
North button image. |
protected class |
TerraPanoramaSkin.ScrollButton
|
protected class |
TerraPanoramaSkin.ScrollButtonImage
Abstract base class for button images. |
class |
TerraPanoramaSkin.ScrollButtonSkin
|
protected class |
TerraPanoramaSkin.SouthButtonImage
South button image. |
protected class |
TerraPanoramaSkin.WestButtonImage
West button image. |
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
|---|
ContainerSkin.IndexFocusTraversalPolicy |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ViewportListener |
|---|
ViewportListener.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 | |
|---|---|
TerraPanoramaSkin()
|
|
| Method Summary | |
|---|---|
boolean |
getAlwaysShowScrollButtons()
|
Color |
getButtonBackgroundColor()
|
Color |
getButtonColor()
|
int |
getButtonPadding()
|
protected int |
getMaxScrollLeft()
|
protected int |
getMaxScrollTop()
|
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. |
Bounds |
getViewportBounds()
The bounds of the Viewport within the container, for example, in ScrollPaneSkin, this excludes the scrollbars. |
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 |
mouseOut(Component component)
Called when the mouse exits a component. |
void |
mouseOver(Component component)
Called when the mouse enters a component. |
boolean |
mouseWheel(Component component,
Mouse.ScrollType scrollType,
int scrollAmount,
int wheelRotation,
int x,
int y)
Called when the mouse wheel is scrolled over a component. |
void |
scrollLeftChanged(Viewport panorama,
int previousScrollLeft)
Called when a viewport's scroll left has changed. |
void |
scrollTopChanged(Viewport panorama,
int previousScrollTop)
Called when a viewport's scroll top has changed. |
void |
setAlwaysShowScrollButtons(boolean alwaysShowScrollButtons)
|
void |
setButtonBackgroundColor(Color buttonBackgroundColor)
|
void |
setButtonBackgroundColor(int buttonBackgroundColor)
|
void |
setButtonBackgroundColor(String buttonBackgroundColor)
|
void |
setButtonColor(Color buttonColor)
|
void |
setButtonColor(String buttonColor)
|
void |
setButtonPadding(int buttonPadding)
|
void |
setButtonPadding(Number padding)
|
protected void |
updateScrollButtonVisibility()
|
void |
viewChanged(Viewport panorama,
Component previousView)
Called when a viewport's view 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, mouseUp, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, 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 |
|---|
public TerraPanoramaSkin()
| Method Detail |
|---|
public void install(Component component)
Skin
install in interface Skininstall in class ContainerSkincomponent - The component to which the skin is being attached.public int getPreferredWidth(int height)
ConstrainedVisual
getPreferredWidth in interface ConstrainedVisualgetPreferredWidth in class ContainerSkinheight - The height by which to constrain the preferred width, or -1
for no constraint.public int getPreferredHeight(int width)
ConstrainedVisual
getPreferredHeight in interface ConstrainedVisualgetPreferredHeight in class ContainerSkinwidth - The width by which to constrain the preferred height, or -1
for no constraint.public Dimensions getPreferredSize()
ConstrainedVisual
getPreferredSize in interface ConstrainedVisualgetPreferredSize in class ComponentSkinpublic void layout()
Skin
layout in interface Skinpublic Bounds getViewportBounds()
Viewport.Skin
getViewportBounds in interface Viewport.Skin
public boolean mouseWheel(Component component,
Mouse.ScrollType scrollType,
int scrollAmount,
int wheelRotation,
int x,
int y)
ComponentMouseWheelListener
mouseWheel in interface ComponentMouseWheelListenermouseWheel in class ComponentSkinpublic Color getButtonColor()
public void setButtonColor(Color buttonColor)
public final void setButtonColor(String buttonColor)
public Color getButtonBackgroundColor()
public void setButtonBackgroundColor(Color buttonBackgroundColor)
public final void setButtonBackgroundColor(String buttonBackgroundColor)
public final void setButtonBackgroundColor(int buttonBackgroundColor)
public int getButtonPadding()
public void setButtonPadding(int buttonPadding)
public final void setButtonPadding(Number padding)
public boolean getAlwaysShowScrollButtons()
public void setAlwaysShowScrollButtons(boolean alwaysShowScrollButtons)
protected int getMaxScrollTop()
protected int getMaxScrollLeft()
protected void updateScrollButtonVisibility()
public void mouseOver(Component component)
ComponentMouseListener
mouseOver in interface ComponentMouseListenermouseOver in class ComponentSkinpublic void mouseOut(Component component)
ComponentMouseListener
mouseOut in interface ComponentMouseListenermouseOut in class ComponentSkin
public void scrollTopChanged(Viewport panorama,
int previousScrollTop)
ViewportListener
scrollTopChanged in interface ViewportListener
public void scrollLeftChanged(Viewport panorama,
int previousScrollLeft)
ViewportListener
scrollLeftChanged in interface ViewportListener
public void viewChanged(Viewport panorama,
Component previousView)
ViewportListener
viewChanged in interface ViewportListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||