Class CommandButtonLayoutManagerBig
- java.lang.Object
-
- org.pushingpixels.flamingo.internal.ui.common.CommandButtonLayoutManagerBig
-
- All Implemented Interfaces:
PropertyChangeListener,EventListener,CommandButtonLayoutManager
- Direct Known Subclasses:
CommandButtonLayoutManagerCustom
public class CommandButtonLayoutManagerBig 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
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractCommandButtoncommandButtonprotected StringtitlePart1The first part of (possibly) two-lined split ofcommandButton's title.protected StringtitlePart2The second part of (possibly) two-lined split ofcommandButton's title.
-
Constructor Summary
Constructors Constructor Description CommandButtonLayoutManagerBig(AbstractCommandButton commandButton)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PointgetKeyTipAnchorCenterPoint(AbstractCommandButton commandButton)Returns the anchor center point of the key tip of the specified command button.CommandButtonLayoutManager.CommandButtonLayoutInfogetLayoutInfo(AbstractCommandButton commandButton, Graphics g)Returns the layout information for the specified command button.intgetPreferredIconSize()Returns the preferred icon size of command buttons which use this layout manager.DimensiongetPreferredSize(AbstractCommandButton commandButton)Returns the preferred size of the specified command button.voidpropertyChange(PropertyChangeEvent evt)protected voidupdateTitleStrings()Updates the title strings forCommandButtonDisplayState.BIGand other relevant states.
-
-
-
Field Detail
-
commandButton
protected AbstractCommandButton commandButton
-
titlePart1
protected String titlePart1
The first part of (possibly) two-lined split ofcommandButton's title.
-
titlePart2
protected String titlePart2
The second part of (possibly) two-lined split ofcommandButton's title.
-
-
Constructor Detail
-
CommandButtonLayoutManagerBig
public CommandButtonLayoutManagerBig(AbstractCommandButton commandButton)
-
-
Method Detail
-
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
public Dimension getPreferredSize(AbstractCommandButton commandButton)
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
public void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChangein interfacePropertyChangeListener
-
updateTitleStrings
protected void updateTitleStrings()
Updates the title strings forCommandButtonDisplayState.BIGand other relevant states.
-
getKeyTipAnchorCenterPoint
public Point getKeyTipAnchorCenterPoint(AbstractCommandButton commandButton)
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.
-
-