Class CommandButtonLayoutManagerBig
java.lang.Object
org.pushingpixels.flamingo.internal.ui.common.CommandButtonLayoutManagerBig
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,CommandButtonLayoutManager
- Direct Known Subclasses:
CommandButtonLayoutManagerCustom
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.pushingpixels.flamingo.api.common.CommandButtonLayoutManager
CommandButtonLayoutManager.CommandButtonLayoutInfo, CommandButtonLayoutManager.CommandButtonSeparatorOrientation, CommandButtonLayoutManager.TextLayoutInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractCommandButton
protected String
The first part of (possibly) two-lined split ofcommandButton
's title.protected String
The second part of (possibly) two-lined split ofcommandButton
's title. -
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.int
Returns 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
protected void
Updates the title strings forCommandButtonDisplayState.BIG
and other relevant states.
-
Field Details
-
commandButton
-
titlePart1
The first part of (possibly) two-lined split ofcommandButton
's title. -
titlePart2
The second part of (possibly) two-lined split ofcommandButton
's title.
-
-
Constructor Details
-
CommandButtonLayoutManagerBig
-
-
Method Details
-
getPreferredIconSize
public int getPreferredIconSize()Description copied from interface:CommandButtonLayoutManager
Returns the preferred icon size of command buttons which use this layout manager.- Specified by:
getPreferredIconSize
in interfaceCommandButtonLayoutManager
- Returns:
- The preferred icon size of command buttons which use this layout manager.
-
getPreferredSize
Description copied from interface:CommandButtonLayoutManager
Returns the preferred size of the specified command button.- Specified by:
getPreferredSize
in interfaceCommandButtonLayoutManager
- Parameters:
commandButton
- Command button.- Returns:
- The preferred size of the specified command button.
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
updateTitleStrings
protected void updateTitleStrings()Updates the title strings forCommandButtonDisplayState.BIG
and other relevant states. -
getKeyTipAnchorCenterPoint
Description copied from interface:CommandButtonLayoutManager
Returns the anchor center point of the key tip of the specified command button.- Specified by:
getKeyTipAnchorCenterPoint
in 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:CommandButtonLayoutManager
Returns the layout information for the specified command button.- Specified by:
getLayoutInfo
in interfaceCommandButtonLayoutManager
- Parameters:
commandButton
- Command button.g
- Graphics context.- Returns:
- The layout information for the specified command button.
-