public class CommandButtonLayoutManagerMedium extends java.lang.Object implements CommandButtonLayoutManager
CommandButtonLayoutManager.CommandButtonLayoutInfo, CommandButtonLayoutManager.CommandButtonSeparatorOrientation, CommandButtonLayoutManager.TextLayoutInfo
Constructor and Description |
---|
CommandButtonLayoutManagerMedium() |
Modifier and Type | Method and Description |
---|---|
protected float |
getIconTextGapFactor() |
java.awt.Point |
getKeyTipAnchorCenterPoint(AbstractCommandButton commandButton)
Returns the anchor center point of the key tip of the specified command
button.
|
CommandButtonLayoutManager.CommandButtonLayoutInfo |
getLayoutInfo(AbstractCommandButton commandButton,
java.awt.Graphics g)
Returns the layout information for the specified command button.
|
int |
getPreferredIconSize()
Returns the preferred icon size of command buttons which use this layout
manager.
|
java.awt.Dimension |
getPreferredSize(AbstractCommandButton commandButton)
Returns the preferred size of the specified command button.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
public int getPreferredIconSize()
CommandButtonLayoutManager
getPreferredIconSize
in interface CommandButtonLayoutManager
protected float getIconTextGapFactor()
public java.awt.Dimension getPreferredSize(AbstractCommandButton commandButton)
CommandButtonLayoutManager
getPreferredSize
in interface CommandButtonLayoutManager
commandButton
- Command button.public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public java.awt.Point getKeyTipAnchorCenterPoint(AbstractCommandButton commandButton)
CommandButtonLayoutManager
getKeyTipAnchorCenterPoint
in interface CommandButtonLayoutManager
commandButton
- Command button.public CommandButtonLayoutManager.CommandButtonLayoutInfo getLayoutInfo(AbstractCommandButton commandButton, java.awt.Graphics g)
CommandButtonLayoutManager
getLayoutInfo
in interface CommandButtonLayoutManager
commandButton
- Command button.g
- Graphics context.