|
||||||||||
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.TerraSheetSkin
public class TerraSheetSkin
Sheet skin class.
TODO Wire up the "resizable" flag. It current exists but does nothing.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class pivot.wtk.skin.WindowSkin |
---|
WindowSkin.WindowFocusTraversalPolicy |
Nested classes/interfaces inherited from class pivot.wtk.skin.ContainerSkin |
---|
ContainerSkin.IndexFocusTraversalPolicy |
Nested classes/interfaces inherited from interface pivot.wtk.SheetStateListener |
---|
SheetStateListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.WindowListener |
---|
WindowListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.WindowStateListener |
---|
WindowStateListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.ComponentListener |
---|
ComponentListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.ComponentStateListener |
---|
ComponentStateListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.ComponentMouseListener |
---|
ComponentMouseListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.ComponentMouseButtonListener |
---|
ComponentMouseButtonListener.Adapter |
Nested classes/interfaces inherited from interface pivot.wtk.ComponentKeyListener |
---|
ComponentKeyListener.Adapter |
Field Summary |
---|
Fields inherited from class pivot.wtk.skin.ComponentSkin |
---|
SHOW_TOOLTIP_TIMEOUT |
Constructor Summary | |
---|---|
TerraSheetSkin()
|
Method Summary | |
---|---|
Color |
getBorderColor()
|
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. |
boolean |
isResizable()
|
boolean |
keyPressed(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
Called when a key has been pressed. |
void |
layout()
If the component on which the skin is installed is a container, lays out the container's children. |
void |
paint(Graphics2D graphics)
Paints the visual. |
Vote |
previewSheetClose(Sheet sheet,
boolean result)
Called to preview a sheet close event. |
void |
setBackgroundColor(Color backgroundColor)
|
void |
setBorderColor(Color borderColor)
|
void |
setBorderColor(String borderColor)
|
void |
setPadding(Dictionary<String,?> padding)
|
void |
setPadding(Insets padding)
|
void |
setPadding(int padding)
|
void |
setPadding(Number padding)
|
void |
setResizable(boolean resizable)
|
void |
sheetClosed(Sheet sheet)
Called when a sheet has closed. |
void |
sheetCloseVetoed(Sheet sheet,
Vote reason)
Called when a sheet close event has been vetoed. |
void |
uninstall()
Dissociates a skin from a component. |
void |
windowOpened(Window window)
Called when a window has opened. |
Methods inherited from class pivot.wtk.skin.WindowSkin |
---|
activeChanged, contentChanged, iconChanged, keyReleased, maximizedChanged, ownerChanged, previewWindowClose, previewWindowOpen, titleChanged, windowClosed, windowCloseVetoed, windowMoved, windowOpenVetoed |
Methods inherited from class pivot.wtk.skin.ContainerSkin |
---|
componentInserted, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, setBackgroundColor, setBackgroundPaint, setBackgroundPaint |
Methods inherited from class pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, displayableChanged, enabledChanged, focusedChanged, getComponent, getHeight, getWidth, invalidateComponent, keyTyped, locationChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, parentChanged, preferredSizeChanged, 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 |
Constructor Detail |
---|
public TerraSheetSkin()
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(Graphics2D graphics)
Visual
paint
in interface Visual
paint
in class ContainerSkin
graphics
- The graphics context in which to paint the visual.public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation)
ComponentKeyListener
keyPressed
in interface ComponentKeyListener
keyPressed
in class ComponentSkin
public void setBackgroundColor(Color backgroundColor)
setBackgroundColor
in class ContainerSkin
public Color getBorderColor()
public void setBorderColor(Color borderColor)
public final void setBorderColor(String borderColor)
public 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 boolean isResizable()
public void setResizable(boolean resizable)
public void windowOpened(Window window)
WindowStateListener
windowOpened
in interface WindowStateListener
windowOpened
in class WindowSkin
public Vote previewSheetClose(Sheet sheet, boolean result)
SheetStateListener
previewSheetClose
in interface SheetStateListener
public void sheetCloseVetoed(Sheet sheet, Vote reason)
SheetStateListener
sheetCloseVetoed
in interface SheetStateListener
public void sheetClosed(Sheet sheet)
SheetCloseListener
sheetClosed
in interface SheetCloseListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |