org.apache.pivot.wtk.skin
Class DisplaySkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.DisplaySkin
- All Implemented Interfaces:
- ComponentKeyListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ConstrainedVisual, ContainerListener, Skin, Visual
public class DisplaySkin
- extends ContainerSkin
Display skin.
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
componentInserted, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, getPreferredHeight, getPreferredWidth, isFocusable, isOpaque, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, uninstall |
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
cursorChanged, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, getComponent, getHeight, getPreferredSize, getWidth, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseOut, mouseOver, mouseUp, mouseWheel, parentChanged, preferredHeightLimitsChanged, preferredSizeChanged, preferredWidthLimitsChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, styleUpdated, tooltipTextChanged, visibleChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DisplaySkin
public DisplaySkin()
install
public void install(Component component)
- Description copied from interface:
Skin
- Associates a skin with a component.
- Specified by:
install
in interface Skin
- Overrides:
install
in class ContainerSkin
- Parameters:
component
- The component to which the skin is being attached.
layout
public void layout()
- Description copied from interface:
Skin
- If the component on which the skin is installed is a container, lays
out the container's children.
getActiveWindowFollowsMouse
public boolean getActiveWindowFollowsMouse()
setActiveWindowFollowsMouse
public void setActiveWindowFollowsMouse(boolean activeWindowFollowsMouse)
mouseMove
public boolean mouseMove(Component component,
int x,
int y)
- Description copied from interface:
ComponentMouseListener
- Called when the mouse is moved over a component.
- Specified by:
mouseMove
in interface ComponentMouseListener
- Overrides:
mouseMove
in class ComponentSkin
- Returns:
- true to consume the event; false to allow it to
propagate.