Class CommandButtonLayoutManagerBig
java.lang.Object
org.pushingpixels.radiance.component.internal.ui.common.CommandButtonLayoutManagerBig
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,CommandButtonLayoutManager
- Direct Known Subclasses:
CommandButtonLayoutManagerBig.FitToIcon
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.pushingpixels.radiance.component.api.common.CommandButtonLayoutManager
CommandButtonLayoutManager.CommandButtonKind, CommandButtonLayoutManager.CommandButtonLayoutInfo, CommandButtonLayoutManager.CommandButtonSeparatorOrientation, CommandButtonLayoutManager.TextLayoutInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActionKeyTipAnchorCenterPoint
(JCommandButton commandButton) Returns the anchor center point of the action key tip of the specified command button.private int
getCurrentIconHeight
(JCommandButton commandButton) private int
getCurrentIconHeight
(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) private int
getCurrentIconWidth
(JCommandButton commandButton) private int
getCurrentIconWidth
(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) getLayoutInfo
(JCommandButton commandButton) Returns the layout information for the specified command button.getPopupKeyTipAnchorCenterPoint
(JCommandButton commandButton) Returns the anchor center point of the popup key tip of the specified command button.getPreferredIconSize
(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) Returns the preferred icon size of a button using this layout manager.getPreferredSize
(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) Returns the preferred size of a button using this layout manager.void
private void
updateTitleStrings
(JCommandButton commandButton) Updates the title strings forCommandButtonPresentationState.BIG
and other relevant states.private void
updateTitleStrings
(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) Updates the title strings forCommandButtonPresentationState.BIG
and other relevant states.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pushingpixels.radiance.component.api.common.CommandButtonLayoutManager
getCommandButtonKind, getCommandButtonKind
-
Field Details
-
titlePartsComputed
private boolean titlePartsComputed -
titleForPreviousComputation
-
titlePart1
The first part of (possibly) two-lined split of the button's title. -
titlePart2
The second part of (possibly) two-lined split of the button's title.
-
-
Constructor Details
-
CommandButtonLayoutManagerBig
public CommandButtonLayoutManagerBig()
-
-
Method Details
-
getPreferredIconSize
public Dimension getPreferredIconSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) Description copied from interface:CommandButtonLayoutManager
Returns the preferred icon size of a button using this layout manager.- Specified by:
getPreferredIconSize
in interfaceCommandButtonLayoutManager
-
getCurrentIconWidth
-
getCurrentIconHeight
-
getCurrentIconWidth
private int getCurrentIconWidth(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) -
getCurrentIconHeight
private int getCurrentIconHeight(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) -
getPreferredSize
public Dimension getPreferredSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) Description copied from interface:CommandButtonLayoutManager
Returns the preferred size of a button using this layout manager.- Specified by:
getPreferredSize
in interfaceCommandButtonLayoutManager
-
propertyChange
- Specified by:
propertyChange
in interfaceCommandButtonLayoutManager
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
updateTitleStrings
Updates the title strings forCommandButtonPresentationState.BIG
and other relevant states. -
updateTitleStrings
private void updateTitleStrings(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) Updates the title strings forCommandButtonPresentationState.BIG
and other relevant states. -
getActionKeyTipAnchorCenterPoint
Description copied from interface:CommandButtonLayoutManager
Returns the anchor center point of the action key tip of the specified command button.- Specified by:
getActionKeyTipAnchorCenterPoint
in interfaceCommandButtonLayoutManager
- Parameters:
commandButton
- Command button.- Returns:
- The anchor center point of the action key tip of the specified command button.
-
getPopupKeyTipAnchorCenterPoint
Description copied from interface:CommandButtonLayoutManager
Returns the anchor center point of the popup key tip of the specified command button.- Specified by:
getPopupKeyTipAnchorCenterPoint
in interfaceCommandButtonLayoutManager
- Parameters:
commandButton
- Command button.- Returns:
- The anchor center point of the popup key tip of the specified command button.
-
getLayoutInfo
public CommandButtonLayoutManager.CommandButtonLayoutInfo getLayoutInfo(JCommandButton commandButton) Description copied from interface:CommandButtonLayoutManager
Returns the layout information for the specified command button.- Specified by:
getLayoutInfo
in interfaceCommandButtonLayoutManager
- Parameters:
commandButton
- Command button.- Returns:
- The layout information for the specified command button.
-