|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.skin.ComponentSkin
pivot.wtk.skin.ContainerSkin
pivot.wtk.skin.WindowSkin
pivot.wtk.skin.terra.TerraPaletteSkin
public class TerraPaletteSkin
Palette skin class.
Nested Class Summary | |
---|---|
protected class |
TerraPaletteSkin.CloseImage
Close button image. |
Nested classes/interfaces inherited from class pivot.wtk.skin.WindowSkin |
---|
WindowSkin.WindowFocusTraversalPolicy |
Nested classes/interfaces inherited from class pivot.wtk.skin.ContainerSkin |
---|
ContainerSkin.IndexFocusTraversalPolicy |
Field Summary |
---|
Fields inherited from class pivot.wtk.skin.ComponentSkin |
---|
SHOW_TOOLTIP_TIMEOUT |
Constructor Summary | |
---|---|
TerraPaletteSkin()
|
Method Summary | |
---|---|
Insets |
getPadding()
|
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. |
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. |
boolean |
mouseDown(Component component,
Mouse.Button button,
int x,
int y)
Called when a mouse button is pressed over a component. |
boolean |
mouseMove(Component component,
int x,
int y)
Called when the mouse is moved over a component. |
boolean |
mouseUp(Component component,
Mouse.Button button,
int x,
int y)
Called when a mouse button is released over a component. |
void |
ownerChanged(Window window,
Window previousOwner)
Called when a window's owner has changed. |
void |
paint(java.awt.Graphics2D graphics)
Paints the visual. |
void |
setBackgroundColor(java.awt.Color backgroundColor)
|
void |
setPadding(Dictionary<java.lang.String,?> padding)
|
void |
setPadding(Insets padding)
|
void |
setPadding(int padding)
|
void |
setPadding(java.lang.Number padding)
|
void |
titleChanged(Window window,
java.lang.String previousTitle)
Called when a window's title has changed. |
void |
uninstall()
Dissociates a skin from a component. |
Methods inherited from class pivot.wtk.skin.WindowSkin |
---|
activeChanged, contentChanged, iconChanged, keyReleased, maximizedChanged, previewWindowClose, previewWindowOpen, windowClosed, windowCloseVetoed, windowMoved, windowOpened, windowOpenVetoed |
Methods inherited from class pivot.wtk.skin.ContainerSkin |
---|
componentInserted, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, setBackgroundColor, setBackgroundPaint |
Methods inherited from class pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, decodeColor, displayableChanged, enabledChanged, focusedChanged, getComponent, getHeight, getWidth, invalidateComponent, keyPressed, keyTyped, locationChanged, mouseClick, mouseOut, mouseOver, mouseWheel, parentChanged, preferredSizeChanged, 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 |
Constructor Detail |
---|
public TerraPaletteSkin()
Method Detail |
---|
public void install(Component component)
Skin
install
in interface Skin
install
in class WindowSkin
component
- The component to which the skin is being attached.public void uninstall()
Skin
uninstall
in interface Skin
uninstall
in class WindowSkin
public int getPreferredWidth(int height)
ConstrainedVisual
getPreferredWidth
in interface ConstrainedVisual
getPreferredWidth
in class WindowSkin
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 WindowSkin
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 WindowSkin
public void layout()
Skin
layout
in interface Skin
layout
in class WindowSkin
public void paint(java.awt.Graphics2D graphics)
Visual
paint
in interface Visual
paint
in class ContainerSkin
graphics
- The graphics context in which to paint the visual.public void setBackgroundColor(java.awt.Color backgroundColor)
setBackgroundColor
in class ContainerSkin
public Insets getPadding()
public void setPadding(Insets padding)
public final void setPadding(Dictionary<java.lang.String,?> padding)
public final void setPadding(int padding)
public final void setPadding(java.lang.Number padding)
public boolean mouseMove(Component component, int x, int y)
ComponentMouseListener
mouseMove
in interface ComponentMouseListener
mouseMove
in class ComponentSkin
public boolean mouseDown(Component component, Mouse.Button button, int x, int y)
ComponentMouseButtonListener
mouseDown
in interface ComponentMouseButtonListener
mouseDown
in class ComponentSkin
public boolean mouseUp(Component component, Mouse.Button button, int x, int y)
ComponentMouseButtonListener
mouseUp
in interface ComponentMouseButtonListener
mouseUp
in class ComponentSkin
public void ownerChanged(Window window, Window previousOwner)
WindowListener
ownerChanged
in interface WindowListener
ownerChanged
in class WindowSkin
public void titleChanged(Window window, java.lang.String previousTitle)
WindowListener
titleChanged
in interface WindowListener
titleChanged
in class WindowSkin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |