PropertyChangeListener
, EventListener
, CommandButtonLayoutManager
CommandButtonLayoutManagerCustom
public class CommandButtonLayoutManagerBig extends Object implements CommandButtonLayoutManager
CommandButtonLayoutManager.CommandButtonLayoutInfo, CommandButtonLayoutManager.CommandButtonSeparatorOrientation, CommandButtonLayoutManager.TextLayoutInfo
Modifier and Type | Field | Description |
---|---|---|
protected AbstractCommandButton |
commandButton |
|
protected String |
titlePart1 |
The first part of (possibly) two-lined split of
commandButton 's
title. |
protected String |
titlePart2 |
The second part of (possibly) two-lined split of
commandButton 's
title. |
Constructor | Description |
---|---|
CommandButtonLayoutManagerBig(AbstractCommandButton commandButton) |
Modifier and Type | Method | Description |
---|---|---|
Point |
getKeyTipAnchorCenterPoint(AbstractCommandButton commandButton) |
Returns the anchor center point of the key tip of the specified command
button.
|
CommandButtonLayoutManager.CommandButtonLayoutInfo |
getLayoutInfo(AbstractCommandButton commandButton,
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.
|
Dimension |
getPreferredSize(AbstractCommandButton commandButton) |
Returns the preferred size of the specified command button.
|
void |
propertyChange(PropertyChangeEvent evt) |
|
protected void |
updateTitleStrings() |
Updates the title strings for
CommandButtonDisplayState.BIG and
other relevant states. |
protected AbstractCommandButton commandButton
protected String titlePart1
commandButton
's
title.protected String titlePart2
commandButton
's
title.public CommandButtonLayoutManagerBig(AbstractCommandButton commandButton)
public int getPreferredIconSize()
CommandButtonLayoutManager
getPreferredIconSize
in interface CommandButtonLayoutManager
public Dimension getPreferredSize(AbstractCommandButton commandButton)
CommandButtonLayoutManager
getPreferredSize
in interface CommandButtonLayoutManager
commandButton
- Command button.public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
protected void updateTitleStrings()
CommandButtonDisplayState.BIG
and
other relevant states.public Point getKeyTipAnchorCenterPoint(AbstractCommandButton commandButton)
CommandButtonLayoutManager
getKeyTipAnchorCenterPoint
in interface CommandButtonLayoutManager
commandButton
- Command button.public CommandButtonLayoutManager.CommandButtonLayoutInfo getLayoutInfo(AbstractCommandButton commandButton, Graphics g)
CommandButtonLayoutManager
getLayoutInfo
in interface CommandButtonLayoutManager
commandButton
- Command button.g
- Graphics context.