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

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.ExpanderSkin
              extended by org.apache.pivot.wtk.skin.terra.TerraExpanderSkin
All Implemented Interfaces:
org.apache.pivot.wtk.ButtonPressListener, 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.ExpanderListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Visual

public class TerraExpanderSkin
extends org.apache.pivot.wtk.skin.ExpanderSkin
implements org.apache.pivot.wtk.ButtonPressListener

Terra expander skin.


Nested Class Summary
protected  class TerraExpanderSkin.ButtonImage
           
protected  class TerraExpanderSkin.CollapseImage
           
protected  class TerraExpanderSkin.ExpandImage
           
 class TerraExpanderSkin.ExpandTransition
          Expand/collapse transition.
 class TerraExpanderSkin.ShadeButton
          Expander shade button component.
 class TerraExpanderSkin.ShadeButtonSkin
          Expander shade button component skin.
 
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.ExpanderListener
org.apache.pivot.wtk.ExpanderListener.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
TerraExpanderSkin()
           
 
Method Summary
 void buttonPressed(org.apache.pivot.wtk.Button button)
          Listener for expander button events.
 void collapsibleChanged(org.apache.pivot.wtk.Expander expander)
          
 void contentChanged(org.apache.pivot.wtk.Expander expander, org.apache.pivot.wtk.Component previousContent)
          
 void enabledChanged(org.apache.pivot.wtk.Component component)
          
 void expandedChanged(org.apache.pivot.wtk.Expander expander)
          
 void expandedChangeVetoed(org.apache.pivot.wtk.Expander expander, org.apache.pivot.util.Vote reason)
          
 int getBaseline(int width, int height)
           
 Color getBorderColor()
           
 Color getDisabledShadeButtonColor()
           
 int getExpandDuration()
           
 int getExpandRate()
           
 org.apache.pivot.wtk.Insets getPadding()
           
 int getPreferredHeight(int width)
           
 org.apache.pivot.wtk.Dimensions getPreferredSize()
           
 int getPreferredWidth(int height)
           
 Color getShadeButtonColor()
           
 Color getTitleBarBackgroundColor()
           
 Color getTitleBarBorderColor()
           
 Color getTitleBarColor()
           
 Font getTitleBarFont()
           
 void install(org.apache.pivot.wtk.Component component)
           
 void layout()
           
 void paint(Graphics2D graphics)
           
 org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander expander)
          
 void setBorderColor(Color borderColor)
           
 void setBorderColor(String borderColor)
           
 void setExpandDuration(int expandDuration)
           
 void setExpandRate(int expandRate)
           
 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 setShadeButtonColor(Color shadeButtonColor)
           
 void setShadeButtonColor(String shadeButtonColor)
           
 void setTitleBarBackgroundColor(Color titleBarBackgroundColor)
           
 void setTitleBarBackgroundColor(String titleBarBackgroundColor)
           
 void setTitleBarBorderColor(Color titleBarBorderColor)
           
 void setTitleBarBorderColor(String titleBarBorderColor)
           
 void setTitleBarColor(Color titleBarColor)
           
 void setTitleBarColor(String titleBarColor)
           
 void setTitleBarFont(org.apache.pivot.collections.Dictionary<String,?> titleBarFont)
           
 void setTitleBarFont(Font titleBarFont)
           
 void setTitleBarFont(String titleBarFont)
           
 void titleChanged(org.apache.pivot.wtk.Expander expander, String previousTitle)
          
 
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint
 
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, focusedChanged, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, 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
 

Constructor Detail

TerraExpanderSkin

public TerraExpanderSkin()
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.ExpanderSkin

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.ContainerSkin

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.ContainerSkin

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.ComponentSkin

getBaseline

public int getBaseline(int width,
                       int height)
Specified by:
getBaseline in interface org.apache.pivot.wtk.ConstrainedVisual
Overrides:
getBaseline in class org.apache.pivot.wtk.skin.ComponentSkin

layout

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

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

getTitleBarFont

public Font getTitleBarFont()

setTitleBarFont

public void setTitleBarFont(Font titleBarFont)

setTitleBarFont

public final void setTitleBarFont(String titleBarFont)

setTitleBarFont

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

getTitleBarColor

public Color getTitleBarColor()

setTitleBarColor

public void setTitleBarColor(Color titleBarColor)

setTitleBarColor

public final void setTitleBarColor(String titleBarColor)

getTitleBarBackgroundColor

public Color getTitleBarBackgroundColor()

setTitleBarBackgroundColor

public void setTitleBarBackgroundColor(Color titleBarBackgroundColor)

setTitleBarBackgroundColor

public final void setTitleBarBackgroundColor(String titleBarBackgroundColor)

getTitleBarBorderColor

public Color getTitleBarBorderColor()

setTitleBarBorderColor

public void setTitleBarBorderColor(Color titleBarBorderColor)

setTitleBarBorderColor

public final void setTitleBarBorderColor(String titleBarBorderColor)

getShadeButtonColor

public Color getShadeButtonColor()

setShadeButtonColor

public void setShadeButtonColor(Color shadeButtonColor)

setShadeButtonColor

public final void setShadeButtonColor(String shadeButtonColor)

getDisabledShadeButtonColor

public Color getDisabledShadeButtonColor()

getBorderColor

public Color getBorderColor()

setBorderColor

public void setBorderColor(Color borderColor)

setBorderColor

public final void setBorderColor(String borderColor)

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)

getExpandDuration

public int getExpandDuration()

setExpandDuration

public void setExpandDuration(int expandDuration)

getExpandRate

public int getExpandRate()

setExpandRate

public void setExpandRate(int expandRate)

buttonPressed

public void buttonPressed(org.apache.pivot.wtk.Button button)
Listener for expander button events.

Specified by:
buttonPressed in interface org.apache.pivot.wtk.ButtonPressListener
Parameters:
button - The source of the button event.

enabledChanged

public void enabledChanged(org.apache.pivot.wtk.Component component)

Specified by:
enabledChanged in interface org.apache.pivot.wtk.ComponentStateListener
Overrides:
enabledChanged in class org.apache.pivot.wtk.skin.ComponentSkin

titleChanged

public void titleChanged(org.apache.pivot.wtk.Expander expander,
                         String previousTitle)

Specified by:
titleChanged in interface org.apache.pivot.wtk.ExpanderListener
Overrides:
titleChanged in class org.apache.pivot.wtk.skin.ExpanderSkin

collapsibleChanged

public void collapsibleChanged(org.apache.pivot.wtk.Expander expander)

Specified by:
collapsibleChanged in interface org.apache.pivot.wtk.ExpanderListener
Overrides:
collapsibleChanged in class org.apache.pivot.wtk.skin.ExpanderSkin

previewExpandedChange

public org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander expander)

Specified by:
previewExpandedChange in interface org.apache.pivot.wtk.ExpanderListener
Overrides:
previewExpandedChange in class org.apache.pivot.wtk.skin.ExpanderSkin

expandedChangeVetoed

public void expandedChangeVetoed(org.apache.pivot.wtk.Expander expander,
                                 org.apache.pivot.util.Vote reason)

Specified by:
expandedChangeVetoed in interface org.apache.pivot.wtk.ExpanderListener
Overrides:
expandedChangeVetoed in class org.apache.pivot.wtk.skin.ExpanderSkin

expandedChanged

public void expandedChanged(org.apache.pivot.wtk.Expander expander)

Specified by:
expandedChanged in interface org.apache.pivot.wtk.ExpanderListener
Overrides:
expandedChanged in class org.apache.pivot.wtk.skin.ExpanderSkin

contentChanged

public void contentChanged(org.apache.pivot.wtk.Expander expander,
                           org.apache.pivot.wtk.Component previousContent)

Specified by:
contentChanged in interface org.apache.pivot.wtk.ExpanderListener
Overrides:
contentChanged in class org.apache.pivot.wtk.skin.ExpanderSkin