org.pushingpixels.flamingo.api.common
Interface CommandButtonLayoutManager

All Superinterfaces:
java.util.EventListener, java.beans.PropertyChangeListener
All Known Implementing Classes:
CommandButtonLayoutManagerBig, CommandButtonLayoutManagerBigFixed, CommandButtonLayoutManagerBigFixedLandscape, CommandButtonLayoutManagerCustom, CommandButtonLayoutManagerMedium, CommandButtonLayoutManagerMenuTileLevel1, CommandButtonLayoutManagerMenuTileLevel2, CommandButtonLayoutManagerSmall, CommandButtonLayoutManagerTile

public interface CommandButtonLayoutManager
extends java.beans.PropertyChangeListener

Definition of a layout manager for AbstractCommandButtons.


Nested Class Summary
static class CommandButtonLayoutManager.CommandButtonLayoutInfo
          Layout information on different visual parts of a single command button.
static class CommandButtonLayoutManager.CommandButtonSeparatorOrientation
          Enumerates the available values for separator orientations.
static class CommandButtonLayoutManager.TextLayoutInfo
          Layout information on a single line of text.
 
Method Summary
 java.awt.Point getKeyTipAnchorCenterPoint(AbstractCommandButton commandButton)
          Returns the anchor center point of the key tip of the specified command button.
 CommandButtonLayoutManager.CommandButtonLayoutInfo getLayoutInfo(AbstractCommandButton commandButton, java.awt.Graphics g)
          Returns the layout information for the specified command button.
 int getPreferredIconSize()
          Returns the preferred icon size of command buttons which use this layout manager.
 java.awt.Dimension getPreferredSize(AbstractCommandButton commandButton)
          Returns the preferred size of the specified command button.
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

getPreferredSize

java.awt.Dimension getPreferredSize(AbstractCommandButton commandButton)
Returns the preferred size of the specified command button.

Parameters:
commandButton - Command button.
Returns:
The preferred size of the specified command button.

getPreferredIconSize

int getPreferredIconSize()
Returns the preferred icon size of command buttons which use this layout manager.

Returns:
The preferred icon size of command buttons which use this layout manager.

getKeyTipAnchorCenterPoint

java.awt.Point getKeyTipAnchorCenterPoint(AbstractCommandButton commandButton)
Returns the anchor center point of the key tip of the specified command button.

Parameters:
commandButton - Command button.
Returns:
The anchor center point of the key tip of the specified command button.

getLayoutInfo

CommandButtonLayoutManager.CommandButtonLayoutInfo getLayoutInfo(AbstractCommandButton commandButton,
                                                                 java.awt.Graphics g)
Returns the layout information for the specified command button.

Parameters:
commandButton - Command button.
g - Graphics context.
Returns:
The layout information for the specified command button.