| org.jvnet.substance.button.SubstanceButtonShaper
All known Subclasses: org.jvnet.substance.button.BaseButtonShaper,
SubstanceButtonShaper | public interface SubstanceButtonShaper extends SubstanceTrait(Code) | | Button shaper interface for Substance look and feel. This class is
part of officially supported API.
author: Kirill Grouchnikov |
getButtonBorder | public Border getButtonBorder(AbstractButton button)(Code) | | Returns the border for the specified button.
Parameters: button - A button. The border for the specified button. |
getButtonOutline | public GeneralPath getButtonOutline(AbstractButton button)(Code) | | Returns the outline path for the specified button.
Parameters: button - A button. The outline path for the specified button. |
getButtonOutline | public GeneralPath getButtonOutline(AbstractButton button, Insets insets, int width, int height)(Code) | | Returns the outline path for the specified button.
Parameters: button - A button. Parameters: insets - Button insets. Parameters: width - Button width. Parameters: height - Button height. The outline path for the specified button. |
getButtonOutline | public GeneralPath getButtonOutline(AbstractButton button, Insets insets)(Code) | | Returns the outline path for the specified button.
Parameters: button - A button. Parameters: insets - Button insets. The outline path for the specified button. |
getPreferredSize | public Dimension getPreferredSize(AbstractButton button, Dimension uiPreferredSize)(Code) | | Returns the preferred size for the specified button.
Parameters: button - A button. Parameters: uiPreferredSize - Preferred size of the button under the regular conditions(plain rectangular button). The preferred size for the specified button. |
isProportionate | public boolean isProportionate()(Code) | | Returns the boolean indication whether the shaper should maintain button
proportions on the resize. This may be relevant for vector-based shapers
(such as animals / other objects).
true if this shaper should maintainbutton proportions on the resize, false otherwise. |
|
|