Class CommandButtonLayoutManagerMenuTileLevel2
java.lang.Object
org.pushingpixels.flamingo.internal.ui.ribbon.appmenu.CommandButtonLayoutManagerMenuTileLevel2
- All Implemented Interfaces:
PropertyChangeListener,EventListener,CommandButtonLayoutManager
public class CommandButtonLayoutManagerMenuTileLevel2
extends Object
implements CommandButtonLayoutManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.pushingpixels.flamingo.api.common.CommandButtonLayoutManager
CommandButtonLayoutManager.CommandButtonLayoutInfo, CommandButtonLayoutManager.CommandButtonSeparatorOrientation, CommandButtonLayoutManager.TextLayoutInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKeyTipAnchorCenterPoint(AbstractCommandButton commandButton) Returns the anchor center point of the key tip of the specified command button.getLayoutInfo(AbstractCommandButton commandButton, Graphics g) Returns the layout information for the specified command button.intReturns the preferred icon size of command buttons which use this layout manager.getPreferredSize(AbstractCommandButton commandButton) Returns the preferred size of the specified command button.void
-
Constructor Details
-
CommandButtonLayoutManagerMenuTileLevel2
public CommandButtonLayoutManagerMenuTileLevel2()
-
-
Method Details
-
getPreferredIconSize
public int getPreferredIconSize()Description copied from interface:CommandButtonLayoutManagerReturns the preferred icon size of command buttons which use this layout manager.- Specified by:
getPreferredIconSizein interfaceCommandButtonLayoutManager- Returns:
- The preferred icon size of command buttons which use this layout manager.
-
getPreferredSize
Description copied from interface:CommandButtonLayoutManagerReturns the preferred size of the specified command button.- Specified by:
getPreferredSizein interfaceCommandButtonLayoutManager- Parameters:
commandButton- Command button.- Returns:
- The preferred size of the specified command button.
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
getKeyTipAnchorCenterPoint
Description copied from interface:CommandButtonLayoutManagerReturns the anchor center point of the key tip of the specified command button.- Specified by:
getKeyTipAnchorCenterPointin interfaceCommandButtonLayoutManager- Parameters:
commandButton- Command button.- Returns:
- The anchor center point of the key tip of the specified command button.
-
getLayoutInfo
public CommandButtonLayoutManager.CommandButtonLayoutInfo getLayoutInfo(AbstractCommandButton commandButton, Graphics g) Description copied from interface:CommandButtonLayoutManagerReturns the layout information for the specified command button.- Specified by:
getLayoutInfoin interfaceCommandButtonLayoutManager- Parameters:
commandButton- Command button.g- Graphics context.- Returns:
- The layout information for the specified command button.
-