org.apache.pivot.wtk.skin.terra
Class TerraPaletteSkin

java.lang.Object
  extended by org.apache.pivot.wtk.skin.ComponentSkin
      extended by org.apache.pivot.wtk.skin.ContainerSkin
          extended by org.apache.pivot.wtk.skin.WindowSkin
              extended by org.apache.pivot.wtk.skin.terra.TerraPaletteSkin
All Implemented Interfaces:
org.apache.pivot.wtk.ComponentKeyListener, org.apache.pivot.wtk.ComponentListener, org.apache.pivot.wtk.ComponentMouseButtonListener, org.apache.pivot.wtk.ComponentMouseListener, org.apache.pivot.wtk.ComponentMouseWheelListener, org.apache.pivot.wtk.ComponentStateListener, org.apache.pivot.wtk.ComponentTooltipListener, org.apache.pivot.wtk.ConstrainedVisual, org.apache.pivot.wtk.ContainerListener, org.apache.pivot.wtk.ContainerMouseListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Visual, org.apache.pivot.wtk.Window.Skin, org.apache.pivot.wtk.WindowListener, org.apache.pivot.wtk.WindowStateListener

public class TerraPaletteSkin
extends org.apache.pivot.wtk.skin.WindowSkin

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
org.apache.pivot.wtk.skin.WindowSkin.WindowFocusTraversalPolicy
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.ContainerSkin.IndexFocusTraversalPolicy
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowListener
org.apache.pivot.wtk.WindowListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowStateListener
org.apache.pivot.wtk.WindowStateListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener
org.apache.pivot.wtk.ContainerListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener
org.apache.pivot.wtk.ContainerMouseListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener
org.apache.pivot.wtk.ComponentListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener
org.apache.pivot.wtk.ComponentStateListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener
org.apache.pivot.wtk.ComponentMouseListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener
org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener
org.apache.pivot.wtk.ComponentKeyListener.Adapter
 
Constructor Summary
TerraPaletteSkin()
           
 
Method Summary
 org.apache.pivot.wtk.Bounds getClientArea()
           
 org.apache.pivot.wtk.Insets getPadding()
           
 int getPreferredHeight(int width)
           
 org.apache.pivot.wtk.Dimensions getPreferredSize()
           
 int getPreferredWidth(int height)
           
 float getTitleFontScale()
           
 void install(org.apache.pivot.wtk.Component component)
           
 void layout()
           
 boolean mouseDown(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Mouse.Button button, int x, int y)
           
 boolean mouseMove(org.apache.pivot.wtk.Component component, int x, int y)
           
 boolean mouseUp(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Mouse.Button button, int x, int y)
           
 void paint(Graphics2D graphics)
           
 void setBackgroundColor(Color backgroundColor)
           
 void setPadding(org.apache.pivot.collections.Dictionary<String,?> padding)
           
 void setPadding(org.apache.pivot.wtk.Insets padding)
           
 void setPadding(int padding)
           
 void setPadding(Number padding)
           
 void setPadding(String padding)
           
 void setTitleFont(org.apache.pivot.collections.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(org.apache.pivot.wtk.Window window, String previousTitle)
           
 void windowClosed(org.apache.pivot.wtk.Window window, org.apache.pivot.wtk.Display display, org.apache.pivot.wtk.Window owner)
           
 void windowOpened(org.apache.pivot.wtk.Window window)
           
 
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 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, mouseOut, mouseOver, mouseWheel, 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
 
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

TerraPaletteSkin

public TerraPaletteSkin()
Method Detail

install

public void install(org.apache.pivot.wtk.Component component)
Specified by:
install in interface org.apache.pivot.wtk.Skin
Overrides:
install in class org.apache.pivot.wtk.skin.WindowSkin

getPreferredWidth

public int getPreferredWidth(int height)
Specified by:
getPreferredWidth in interface org.apache.pivot.wtk.ConstrainedVisual
Overrides:
getPreferredWidth in class org.apache.pivot.wtk.skin.WindowSkin

getPreferredHeight

public int getPreferredHeight(int width)
Specified by:
getPreferredHeight in interface org.apache.pivot.wtk.ConstrainedVisual
Overrides:
getPreferredHeight in class org.apache.pivot.wtk.skin.WindowSkin

getPreferredSize

public org.apache.pivot.wtk.Dimensions getPreferredSize()
Specified by:
getPreferredSize in interface org.apache.pivot.wtk.ConstrainedVisual
Overrides:
getPreferredSize in class org.apache.pivot.wtk.skin.WindowSkin

layout

public void layout()
Specified by:
layout in interface org.apache.pivot.wtk.Skin
Overrides:
layout in class org.apache.pivot.wtk.skin.WindowSkin

paint

public void paint(Graphics2D graphics)
Specified by:
paint in interface org.apache.pivot.wtk.Visual
Overrides:
paint in class org.apache.pivot.wtk.skin.ContainerSkin

getClientArea

public org.apache.pivot.wtk.Bounds getClientArea()
Specified by:
getClientArea in interface org.apache.pivot.wtk.Window.Skin
Overrides:
getClientArea in class org.apache.pivot.wtk.skin.WindowSkin

setBackgroundColor

public void setBackgroundColor(Color backgroundColor)
Overrides:
setBackgroundColor in class org.apache.pivot.wtk.skin.ContainerSkin

getPadding

public org.apache.pivot.wtk.Insets getPadding()

setPadding

public void setPadding(org.apache.pivot.wtk.Insets padding)

setPadding

public final void setPadding(org.apache.pivot.collections.Dictionary<String,?> padding)

setPadding

public final void setPadding(int padding)

setPadding

public final void setPadding(Number padding)

setPadding

public final void setPadding(String padding)

setTitleFont

public final void setTitleFont(String font)
Sets the font used in rendering the titlebar text

Parameters:
font - A font specification

setTitleFont

public final void setTitleFont(org.apache.pivot.collections.Dictionary<String,?> font)
Sets the font used in rendering the titlebar text

Parameters:
font - A dictionary describing a font

getTitleFontScale

public final float getTitleFontScale()

setTitleFontScale

public final void setTitleFontScale(float scale)

mouseMove

public boolean mouseMove(org.apache.pivot.wtk.Component component,
                         int x,
                         int y)
Specified by:
mouseMove in interface org.apache.pivot.wtk.ComponentMouseListener
Overrides:
mouseMove in class org.apache.pivot.wtk.skin.ComponentSkin

mouseDown

public boolean mouseDown(org.apache.pivot.wtk.Component component,
                         org.apache.pivot.wtk.Mouse.Button button,
                         int x,
                         int y)
Specified by:
mouseDown in interface org.apache.pivot.wtk.ComponentMouseButtonListener
Overrides:
mouseDown in class org.apache.pivot.wtk.skin.ComponentSkin

mouseUp

public boolean mouseUp(org.apache.pivot.wtk.Component component,
                       org.apache.pivot.wtk.Mouse.Button button,
                       int x,
                       int y)
Specified by:
mouseUp in interface org.apache.pivot.wtk.ComponentMouseButtonListener
Overrides:
mouseUp in class org.apache.pivot.wtk.skin.ComponentSkin

titleChanged

public void titleChanged(org.apache.pivot.wtk.Window window,
                         String previousTitle)
Specified by:
titleChanged in interface org.apache.pivot.wtk.WindowListener
Overrides:
titleChanged in class org.apache.pivot.wtk.skin.WindowSkin

windowOpened

public void windowOpened(org.apache.pivot.wtk.Window window)
Specified by:
windowOpened in interface org.apache.pivot.wtk.WindowStateListener
Overrides:
windowOpened in class org.apache.pivot.wtk.skin.WindowSkin

windowClosed

public void windowClosed(org.apache.pivot.wtk.Window window,
                         org.apache.pivot.wtk.Display display,
                         org.apache.pivot.wtk.Window owner)
Specified by:
windowClosed in interface org.apache.pivot.wtk.WindowStateListener
Overrides:
windowClosed in class org.apache.pivot.wtk.skin.WindowSkin