Class CommandButtonLayoutManagerBig
- java.lang.Object
-
- org.pushingpixels.radiance.component.internal.ui.common.CommandButtonLayoutManagerBig
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.util.EventListener,CommandButtonLayoutManager
- Direct Known Subclasses:
CommandButtonLayoutManagerBig.FitToIcon
public class CommandButtonLayoutManagerBig extends java.lang.Object implements CommandButtonLayoutManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandButtonLayoutManagerBig.FitToIcon-
Nested classes/interfaces inherited from interface org.pushingpixels.radiance.component.api.common.CommandButtonLayoutManager
CommandButtonLayoutManager.CommandButtonKind, CommandButtonLayoutManager.CommandButtonLayoutInfo, CommandButtonLayoutManager.CommandButtonSeparatorOrientation, CommandButtonLayoutManager.TextLayoutInfo
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringtitleForPreviousComputationprivate java.lang.StringtitlePart1The first part of (possibly) two-lined split of the button's title.private java.lang.StringtitlePart2The second part of (possibly) two-lined split of the button's title.private booleantitlePartsComputed
-
Constructor Summary
Constructors Constructor Description CommandButtonLayoutManagerBig()
-
Method Summary
All Methods Instance Methods Concrete 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.private intgetCurrentIconHeight(JCommandButton commandButton)private intgetCurrentIconHeight(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)private intgetCurrentIconWidth(JCommandButton commandButton)private intgetCurrentIconWidth(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.voidpropertyChange(java.beans.PropertyChangeEvent evt)private voidupdateTitleStrings(JCommandButton commandButton)Updates the title strings forCommandButtonPresentationState.BIGand other relevant states.private voidupdateTitleStrings(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)Updates the title strings forCommandButtonPresentationState.BIGand 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 Detail
-
titlePartsComputed
private boolean titlePartsComputed
-
titleForPreviousComputation
private java.lang.String titleForPreviousComputation
-
titlePart1
private java.lang.String titlePart1
The first part of (possibly) two-lined split of the button's title.
-
titlePart2
private java.lang.String titlePart2
The second part of (possibly) two-lined split of the button's title.
-
-
Method Detail
-
getPreferredIconSize
public java.awt.Dimension getPreferredIconSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)
Description copied from interface:CommandButtonLayoutManagerReturns the preferred icon size of a button using this layout manager.- Specified by:
getPreferredIconSizein interfaceCommandButtonLayoutManager
-
getCurrentIconWidth
private int getCurrentIconWidth(JCommandButton commandButton)
-
getCurrentIconHeight
private int getCurrentIconHeight(JCommandButton commandButton)
-
getCurrentIconWidth
private int getCurrentIconWidth(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)
-
getCurrentIconHeight
private int getCurrentIconHeight(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)
-
getPreferredSize
public java.awt.Dimension getPreferredSize(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)
Description copied from interface:CommandButtonLayoutManagerReturns the preferred size of a button using this layout manager.- Specified by:
getPreferredSizein interfaceCommandButtonLayoutManager
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChangein interfaceCommandButtonLayoutManager- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
updateTitleStrings
private void updateTitleStrings(JCommandButton commandButton)
Updates the title strings forCommandButtonPresentationState.BIGand other relevant states.
-
updateTitleStrings
private void updateTitleStrings(BaseCommand command, BaseCommandButtonPresentationModel presentationModel)
Updates the title strings forCommandButtonPresentationState.BIGand other relevant states.
-
getActionKeyTipAnchorCenterPoint
public java.awt.Point getActionKeyTipAnchorCenterPoint(JCommandButton commandButton)
Description copied from interface:CommandButtonLayoutManagerReturns the anchor center point of the action key tip of the specified command button.- Specified by:
getActionKeyTipAnchorCenterPointin interfaceCommandButtonLayoutManager- Parameters:
commandButton- Command button.- Returns:
- The anchor center point of the action key tip of the specified command button.
-
getPopupKeyTipAnchorCenterPoint
public java.awt.Point getPopupKeyTipAnchorCenterPoint(JCommandButton commandButton)
Description copied from interface:CommandButtonLayoutManagerReturns the anchor center point of the popup key tip of the specified command button.- Specified by:
getPopupKeyTipAnchorCenterPointin 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:CommandButtonLayoutManagerReturns the layout information for the specified command button.- Specified by:
getLayoutInfoin interfaceCommandButtonLayoutManager- Parameters:
commandButton- Command button.- Returns:
- The layout information for the specified command button.
-
-