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

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.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 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
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
 
Constructor Summary
TerraPanoramaSkin()
           
 
Method Summary
 boolean getAlwaysShowScrollButtons()
           
 Color getButtonBackgroundColor()
           
 Color getButtonColor()
           
 int getButtonPadding()
           
protected  int getMaxScrollLeft()
           
protected  int getMaxScrollTop()
           
 int getPreferredHeight(int width)
           
 org.apache.pivot.wtk.Dimensions getPreferredSize()
           
 int getPreferredWidth(int height)
           
 org.apache.pivot.wtk.Bounds getViewportBounds()
           
 void install(org.apache.pivot.wtk.Component component)
           
 void layout()
           
 void mouseOut(org.apache.pivot.wtk.Component component)
           
 void mouseOver(org.apache.pivot.wtk.Component component)
           
 boolean mouseWheel(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Mouse.ScrollType scrollType, int scrollAmount, int wheelRotation, int x, int y)
           
 void scrollLeftChanged(org.apache.pivot.wtk.Viewport panorama, int previousScrollLeft)
           
 void scrollTopChanged(org.apache.pivot.wtk.Viewport panorama, int previousScrollTop)
           
 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(org.apache.pivot.wtk.Viewport panorama, org.apache.pivot.wtk.Component previousView)
           
 
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

TerraPanoramaSkin

public TerraPanoramaSkin()
Method Detail

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