Interface CommandButtonLayoutManager
-
- All Superinterfaces:
java.util.EventListener
,java.beans.PropertyChangeListener
- All Known Implementing Classes:
CommandButtonLayoutManagerBig
,CommandButtonLayoutManagerBig.FitToIcon
,CommandButtonLayoutManagerBigFixed
,CommandButtonLayoutManagerBigFixedLandscape
,CommandButtonLayoutManagerMedium
,CommandButtonLayoutManagerMedium.FitToIcon
,CommandButtonLayoutManagerMenuTileLevel1
,CommandButtonLayoutManagerMenuTileLevel2
,CommandButtonLayoutManagerSmall
,CommandButtonLayoutManagerSmall.FitToIcon
,CommandButtonLayoutManagerTile
,CommandButtonLayoutManagerTile.FitToIcon
public interface CommandButtonLayoutManager extends java.beans.PropertyChangeListener
Definition of a layout manager forJCommandButton
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CommandButtonLayoutManager.CommandButtonKind
Enumerates the available command button kinds.static class
CommandButtonLayoutManager.CommandButtonLayoutInfo
Layout information on different visual parts of a single command button.static class
CommandButtonLayoutManager.CommandButtonSeparatorOrientation
Enumerates the available values for separator orientations.static class
CommandButtonLayoutManager.TextLayoutInfo
Layout information on a single line of text.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.awt.Point
getActionKeyTipAnchorCenterPoint(JCommandButton commandButton)
Returns the anchor center point of the action key tip of the specified command button.default CommandButtonLayoutManager.CommandButtonKind
getCommandButtonKind(JCommandButton commandButton)
default CommandButtonLayoutManager.CommandButtonKind
getCommandButtonKind(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)
CommandButtonLayoutManager.CommandButtonLayoutInfo
getLayoutInfo(JCommandButton commandButton)
Returns the layout information for the specified command button.java.awt.Point
getPopupKeyTipAnchorCenterPoint(JCommandButton commandButton)
Returns the anchor center point of the popup key tip of the specified command button.java.awt.Dimension
getPreferredIconSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)
Returns the preferred icon size of a button using this layout manager.java.awt.Dimension
getPreferredSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)
Returns the preferred size of a button using this layout manager.default void
propertyChange(java.beans.PropertyChangeEvent evt)
-
-
-
Method Detail
-
getCommandButtonKind
default CommandButtonLayoutManager.CommandButtonKind getCommandButtonKind(JCommandButton commandButton)
-
getCommandButtonKind
default CommandButtonLayoutManager.CommandButtonKind getCommandButtonKind(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)
-
getPreferredIconSize
java.awt.Dimension getPreferredIconSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)
Returns the preferred icon size of a button using this layout manager.
-
getPreferredSize
java.awt.Dimension getPreferredSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)
Returns the preferred size of a button using this layout manager.
-
getActionKeyTipAnchorCenterPoint
java.awt.Point getActionKeyTipAnchorCenterPoint(JCommandButton commandButton)
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
java.awt.Point getPopupKeyTipAnchorCenterPoint(JCommandButton commandButton)
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
CommandButtonLayoutManager.CommandButtonLayoutInfo getLayoutInfo(JCommandButton commandButton)
Returns the layout information for the specified command button.- Parameters:
commandButton
- Command button.- Returns:
- The layout information for the specified command button.
-
propertyChange
default void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
-