|
||||||||||
| 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.WindowSkin
org.apache.pivot.wtk.skin.terra.TerraPaletteSkin
public class TerraPaletteSkin
Palette skin class.
| Nested Class Summary | |
|---|---|
protected class |
TerraPaletteSkin.CloseImage
Close button image. |
protected class |
TerraPaletteSkin.ResizeImage
Resize button image. |
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.WindowSkin |
|---|
WindowSkin.WindowFocusTraversalPolicy |
| Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
|---|
ContainerSkin.IndexFocusTraversalPolicy |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowListener |
|---|
WindowListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowStateListener |
|---|
WindowStateListener.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 | |
|---|---|
TerraPaletteSkin()
|
|
| Method Summary | |
|---|---|
Bounds |
getClientArea()
|
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. |
float |
getTitleFontScale()
|
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 |
paint(Graphics2D graphics)
Paints the visual. |
void |
setBackgroundColor(Color backgroundColor)
Sets the background of the container to a solid color. |
void |
setPadding(Dictionary<String,?> padding)
|
void |
setPadding(Insets padding)
|
void |
setPadding(int padding)
|
void |
setPadding(Number padding)
|
void |
setPadding(String padding)
|
void |
setTitleFont(Dictionary<String,?> font)
Sets the font used in rendering the titlebar text |
void |
setTitleFont(String font)
Sets the font used in rendering the titlebar text |
void |
setTitleFontScale(float scale)
|
void |
titleChanged(Window window,
String previousTitle)
Called when a window's title has changed. |
void |
windowClosed(Window window,
Display display,
Window owner)
Called when a window has closed. |
void |
windowOpened(Window window)
Called when a window has opened. |
| Methods inherited from class org.apache.pivot.wtk.skin.WindowSkin |
|---|
activeChanged, contentChanged, iconAdded, iconInserted, iconsRemoved, maximizedChanged, mouseDown, previewWindowClose, previewWindowOpen, windowCloseVetoed, windowOpenVetoed |
| Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
|---|
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseMove, mouseUp, mouseWheel, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.pivot.wtk.Skin |
|---|
getComponent, isFocusable, isOpaque |
| Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual |
|---|
getBaseline, setSize |
| Methods inherited from interface org.apache.pivot.wtk.Visual |
|---|
getBaseline, getHeight, getWidth |
| Constructor Detail |
|---|
public TerraPaletteSkin()
| Method Detail |
|---|
public void install(Component component)
Skin
install in interface Skininstall in class WindowSkincomponent - The component to which the skin is being attached.public int getPreferredWidth(int height)
ConstrainedVisual
getPreferredWidth in interface ConstrainedVisualgetPreferredWidth in class WindowSkinheight - The height by which to constrain the preferred width, or -1
for no constraint.public int getPreferredHeight(int width)
ConstrainedVisual
getPreferredHeight in interface ConstrainedVisualgetPreferredHeight in class WindowSkinwidth - The width by which to constrain the preferred height, or -1
for no constraint.public Dimensions getPreferredSize()
ConstrainedVisual
getPreferredSize in interface ConstrainedVisualgetPreferredSize in class WindowSkinpublic void layout()
Skin
layout in interface Skinlayout in class WindowSkinpublic void paint(Graphics2D graphics)
Visual
paint in interface Visualpaint in class ContainerSkingraphics - The graphics context in which to paint the visual.public Bounds getClientArea()
getClientArea in interface Window.SkingetClientArea in class WindowSkinpublic void setBackgroundColor(Color backgroundColor)
ContainerSkin
setBackgroundColor in class ContainerSkinpublic Insets getPadding()
public void setPadding(Insets padding)
public final void setPadding(Dictionary<String,?> padding)
public final void setPadding(int padding)
public final void setPadding(Number padding)
public final void setPadding(String padding)
public final void setTitleFont(String font)
font - A font specificationpublic final void setTitleFont(Dictionary<String,?> font)
font - A dictionary describing a fontpublic final float getTitleFontScale()
public final void setTitleFontScale(float scale)
public boolean mouseMove(Component component,
int x,
int y)
ComponentMouseListener
mouseMove in interface ComponentMouseListenermouseMove in class ComponentSkin
public boolean mouseDown(Component component,
Mouse.Button button,
int x,
int y)
ComponentMouseButtonListener
mouseDown in interface ComponentMouseButtonListenermouseDown in class ComponentSkin
public boolean mouseUp(Component component,
Mouse.Button button,
int x,
int y)
ComponentMouseButtonListener
mouseUp in interface ComponentMouseButtonListenermouseUp in class ComponentSkin
public void titleChanged(Window window,
String previousTitle)
WindowListener
titleChanged in interface WindowListenertitleChanged in class WindowSkinpublic void windowOpened(Window window)
WindowStateListener
windowOpened in interface WindowStateListenerwindowOpened in class WindowSkin
public void windowClosed(Window window,
Display display,
Window owner)
WindowStateListener
windowClosed in interface WindowStateListenerwindowClosed in class WindowSkin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||