Interface CommandButtonLayoutManager
- All Superinterfaces:
EventListener, PropertyChangeListener
- All Known Implementing Classes:
CommandButtonLayoutManagerBig, CommandButtonLayoutManagerBig.FitToIcon, CommandButtonLayoutManagerBigFixed, CommandButtonLayoutManagerBigFixedLandscape, CommandButtonLayoutManagerMedium, CommandButtonLayoutManagerMedium.FitToIcon, CommandButtonLayoutManagerMenuTileLevel1, CommandButtonLayoutManagerMenuTileLevel2, CommandButtonLayoutManagerSmall, CommandButtonLayoutManagerSmall.FitToIcon, CommandButtonLayoutManagerTile, CommandButtonLayoutManagerTile.FitToIcon
Definition of a layout manager for
JCommandButtons.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumerates the available command button kinds.static classLayout information on different visual parts of a single command button.static enumEnumerates the available values for separator orientations.static classLayout information on a single line of text. -
Method Summary
Modifier and TypeMethodDescriptiongetActionKeyTipAnchorCenterPoint(JCommandButton commandButton) Returns the anchor center point of the action key tip of the specified command button.getCommandButtonKind(JCommandButton commandButton) getCommandButtonKind(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.default void
-
Method Details
-
getCommandButtonKind
default CommandButtonLayoutManager.CommandButtonKind getCommandButtonKind(JCommandButton commandButton) -
getCommandButtonKind
default CommandButtonLayoutManager.CommandButtonKind getCommandButtonKind(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) -
getPreferredIconSize
Dimension getPreferredIconSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) Returns the preferred icon size of a button using this layout manager. -
getPreferredSize
Dimension getPreferredSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel) Returns the preferred size of a button using this layout manager. -
getActionKeyTipAnchorCenterPoint
Returns the anchor center point of the action key tip of the specified command button.- Parameters:
commandButton- Command button.- Returns:
- The anchor center point of the action key tip of the specified command button.
-
getPopupKeyTipAnchorCenterPoint
Returns the anchor center point of the popup key tip of the specified command button.- Parameters:
commandButton- Command button.- Returns:
- The anchor center point of the popup key tip of the specified command button.
-
getLayoutInfo
Returns the layout information for the specified command button.- Parameters:
commandButton- Command button.- Returns:
- The layout information for the specified command button.
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-