|
||||||||||
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 Skin
install
in class ContainerSkin
component
- The component to which the skin is being attached.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 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 ComponentMouseWheelListener
mouseWheel
in class ComponentSkin
public 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 ComponentMouseListener
mouseOver
in class ComponentSkin
public void mouseOut(Component component)
ComponentMouseListener
mouseOut
in interface ComponentMouseListener
mouseOut
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 |