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

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.MenuItemSkin
              extended by org.apache.pivot.wtk.skin.terra.TerraMenuItemSkin
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.Menu.ItemListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Visual

public class TerraMenuItemSkin
extends org.apache.pivot.wtk.skin.MenuItemSkin

Terra menu item skin.


Nested Class Summary
 class TerraMenuItemSkin.CheckmarkImage
           
 
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
static int EXPANDER_ICON_SIZE
           
static int EXPANDER_SIZE
           
 
Fields inherited from class org.apache.pivot.wtk.skin.MenuItemSkin
buttonPressCallback, buttonPressInterval, menuPopup
 
Fields inherited from class org.apache.pivot.wtk.skin.ButtonSkin
highlighted
 
Constructor Summary
TerraMenuItemSkin()
           
 
Method Summary
 org.apache.pivot.wtk.media.Image getCheckmarkImage()
           
 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.MenuItemSkin
activeChanged, buttonPressed, enabledChanged, isFocusable, menuChanged, mouseDown, mouseOut, mouseOver, mouseUp
 
Methods inherited from class org.apache.pivot.wtk.skin.ButtonSkin
actionChanged, buttonDataChanged, buttonGroupChanged, dataRendererChanged, focusedChanged, 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, mouseClick, 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
 

Field Detail

EXPANDER_SIZE

public static final int EXPANDER_SIZE
See Also:
Constant Field Values

EXPANDER_ICON_SIZE

public static final int EXPANDER_ICON_SIZE
See Also:
Constant Field Values
Constructor Detail

TerraMenuItemSkin

public TerraMenuItemSkin()
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.MenuItemSkin

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

getCheckmarkImage

public org.apache.pivot.wtk.media.Image getCheckmarkImage()

getPopupBorderColor

public Color getPopupBorderColor()

setPopupBorderColor

public void setPopupBorderColor(Color popupBorderColor)

setPopupBorderColor

public void setPopupBorderColor(String popupBorderColor)