org.apache.pivot.wtk.skin.terra
Class TerraPanoramaSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.terra.TerraPanoramaSkin
- All Implemented Interfaces:
- org.apache.pivot.wtk.ComponentKeyListener, org.apache.pivot.wtk.ComponentListener, org.apache.pivot.wtk.ComponentMouseButtonListener, org.apache.pivot.wtk.ComponentMouseListener, org.apache.pivot.wtk.ComponentMouseWheelListener, org.apache.pivot.wtk.ComponentStateListener, org.apache.pivot.wtk.ComponentTooltipListener, org.apache.pivot.wtk.ConstrainedVisual, org.apache.pivot.wtk.ContainerListener, org.apache.pivot.wtk.ContainerMouseListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Viewport.Skin, org.apache.pivot.wtk.ViewportListener, org.apache.pivot.wtk.Visual
public class TerraPanoramaSkin
- extends org.apache.pivot.wtk.skin.ContainerSkin
- implements org.apache.pivot.wtk.Viewport.Skin, org.apache.pivot.wtk.ViewportListener
Panorama skin.
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
org.apache.pivot.wtk.skin.ContainerSkin.IndexFocusTraversalPolicy |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ViewportListener |
org.apache.pivot.wtk.ViewportListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener |
org.apache.pivot.wtk.ContainerListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener |
org.apache.pivot.wtk.ContainerMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
org.apache.pivot.wtk.ComponentListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
org.apache.pivot.wtk.ComponentStateListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
org.apache.pivot.wtk.ComponentMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
org.apache.pivot.wtk.ComponentKeyListener.Adapter |
| 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 |
TerraPanoramaSkin
public TerraPanoramaSkin()
install
public void install(org.apache.pivot.wtk.Component component)
- Specified by:
install in interface org.apache.pivot.wtk.Skin- Overrides:
install in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredWidth
public int getPreferredWidth(int height)
- Specified by:
getPreferredWidth in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredWidth in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredHeight
public int getPreferredHeight(int width)
- Specified by:
getPreferredHeight in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredHeight in class org.apache.pivot.wtk.skin.ContainerSkin
getPreferredSize
public org.apache.pivot.wtk.Dimensions getPreferredSize()
- Specified by:
getPreferredSize in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredSize in class org.apache.pivot.wtk.skin.ComponentSkin
layout
public void layout()
- Specified by:
layout in interface org.apache.pivot.wtk.Skin
getViewportBounds
public org.apache.pivot.wtk.Bounds getViewportBounds()
- Specified by:
getViewportBounds in interface org.apache.pivot.wtk.Viewport.Skin
mouseWheel
public boolean mouseWheel(org.apache.pivot.wtk.Component component,
org.apache.pivot.wtk.Mouse.ScrollType scrollType,
int scrollAmount,
int wheelRotation,
int x,
int y)
- Specified by:
mouseWheel in interface org.apache.pivot.wtk.ComponentMouseWheelListener- Overrides:
mouseWheel in class org.apache.pivot.wtk.skin.ComponentSkin
getButtonColor
public Color getButtonColor()
setButtonColor
public void setButtonColor(Color buttonColor)
setButtonColor
public final void setButtonColor(String buttonColor)
getButtonBackgroundColor
public Color getButtonBackgroundColor()
setButtonBackgroundColor
public void setButtonBackgroundColor(Color buttonBackgroundColor)
setButtonBackgroundColor
public final void setButtonBackgroundColor(String buttonBackgroundColor)
setButtonBackgroundColor
public final void setButtonBackgroundColor(int buttonBackgroundColor)
getButtonPadding
public int getButtonPadding()
setButtonPadding
public void setButtonPadding(int buttonPadding)
setButtonPadding
public final void setButtonPadding(Number padding)
getAlwaysShowScrollButtons
public boolean getAlwaysShowScrollButtons()
setAlwaysShowScrollButtons
public void setAlwaysShowScrollButtons(boolean alwaysShowScrollButtons)
getMaxScrollTop
protected int getMaxScrollTop()
getMaxScrollLeft
protected int getMaxScrollLeft()
updateScrollButtonVisibility
protected void updateScrollButtonVisibility()
mouseOver
public void mouseOver(org.apache.pivot.wtk.Component component)
- Specified by:
mouseOver in interface org.apache.pivot.wtk.ComponentMouseListener- Overrides:
mouseOver in class org.apache.pivot.wtk.skin.ComponentSkin
mouseOut
public void mouseOut(org.apache.pivot.wtk.Component component)
- Specified by:
mouseOut in interface org.apache.pivot.wtk.ComponentMouseListener- Overrides:
mouseOut in class org.apache.pivot.wtk.skin.ComponentSkin
scrollTopChanged
public void scrollTopChanged(org.apache.pivot.wtk.Viewport panorama,
int previousScrollTop)
- Specified by:
scrollTopChanged in interface org.apache.pivot.wtk.ViewportListener
scrollLeftChanged
public void scrollLeftChanged(org.apache.pivot.wtk.Viewport panorama,
int previousScrollLeft)
- Specified by:
scrollLeftChanged in interface org.apache.pivot.wtk.ViewportListener
viewChanged
public void viewChanged(org.apache.pivot.wtk.Viewport panorama,
org.apache.pivot.wtk.Component previousView)
- Specified by:
viewChanged in interface org.apache.pivot.wtk.ViewportListener