Interface CommandButtonLayoutManager
-
- All Superinterfaces:
java.util.EventListener,java.beans.PropertyChangeListener
public interface CommandButtonLayoutManager extends java.beans.PropertyChangeListenerDefinition of a layout manager forJCommandButtons.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCommandButtonLayoutManager.CommandButtonKindEnumerates the available command button kinds.static classCommandButtonLayoutManager.CommandButtonLayoutInfoLayout information on different visual parts of a single command button.static classCommandButtonLayoutManager.CommandButtonSeparatorOrientationEnumerates the available values for separator orientations.static classCommandButtonLayoutManager.TextLayoutInfoLayout information on a single line of text.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.awt.PointgetActionKeyTipAnchorCenterPoint(JCommandButton commandButton)Returns the anchor center point of the action key tip of the specified command button.default CommandButtonLayoutManager.CommandButtonKindgetCommandButtonKind(JCommandButton commandButton)default CommandButtonLayoutManager.CommandButtonKindgetCommandButtonKind(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)CommandButtonLayoutManager.CommandButtonLayoutInfogetLayoutInfo(JCommandButton commandButton)Returns the layout information for the specified command button.java.awt.PointgetPopupKeyTipAnchorCenterPoint(JCommandButton commandButton)Returns the anchor center point of the popup key tip of the specified command button.java.awt.DimensiongetPreferredIconSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)Returns the preferred icon size of a button using this layout manager.java.awt.DimensiongetPreferredSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)Returns the preferred size of a button using this layout manager.default voidpropertyChange(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:
propertyChangein interfacejava.beans.PropertyChangeListener
-
-