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

java.lang.Object
  extended by org.apache.pivot.wtk.skin.ComponentSkin
      extended by org.apache.pivot.wtk.skin.ButtonSkin
          extended by org.apache.pivot.wtk.skin.MenuBarItemSkin
              extended by org.apache.pivot.wtk.skin.terra.TerraMenuBarItemSkin
All Implemented Interfaces:
org.apache.pivot.wtk.ButtonListener, org.apache.pivot.wtk.ButtonPressListener, org.apache.pivot.wtk.ButtonStateListener, 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.MenuBar.ItemListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Visual

public class TerraMenuBarItemSkin
extends org.apache.pivot.wtk.skin.MenuBarItemSkin

Terra menu bar item skin.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ButtonListener
org.apache.pivot.wtk.ButtonListener.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
 
Field Summary
 
Fields inherited from class org.apache.pivot.wtk.skin.MenuBarItemSkin
menuPopup
 
Fields inherited from class org.apache.pivot.wtk.skin.ButtonSkin
highlighted
 
Constructor Summary
TerraMenuBarItemSkin()
           
 
Method Summary
 Color getPopupBorderColor()
           
 int getPreferredHeight(int width)
           
 org.apache.pivot.wtk.Dimensions getPreferredSize()
           
 int getPreferredWidth(int height)
           
 void install(org.apache.pivot.wtk.Component component)
           
 boolean isOpaque()
           
 void layout()
           
 void paint(Graphics2D graphics)
           
 void setPopupBorderColor(Color popupBorderColor)
           
 void setPopupBorderColor(String popupBorderColor)
           
 
Methods inherited from class org.apache.pivot.wtk.skin.MenuBarItemSkin
activeChanged, enabledChanged, isFocusable, menuChanged, mouseClick, mouseDown, mouseOver, mouseUp
 
Methods inherited from class org.apache.pivot.wtk.skin.ButtonSkin
actionChanged, buttonDataChanged, buttonGroupChanged, buttonPressed, dataRendererChanged, focusedChanged, mouseOut, stateChanged, toggleButtonChanged, triStateChanged
 
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, getBaseline, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseMove, 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

TerraMenuBarItemSkin

public TerraMenuBarItemSkin()
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.MenuBarItemSkin

getPreferredWidth

public int getPreferredWidth(int height)

getPreferredHeight

public int getPreferredHeight(int width)

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

layout

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

paint

public void paint(Graphics2D graphics)

isOpaque

public boolean isOpaque()
Specified by:
isOpaque in interface org.apache.pivot.wtk.Skin
Overrides:
isOpaque in class org.apache.pivot.wtk.skin.ComponentSkin

getPopupBorderColor

public Color getPopupBorderColor()

setPopupBorderColor

public void setPopupBorderColor(Color popupBorderColor)

setPopupBorderColor

public void setPopupBorderColor(String popupBorderColor)