public interface SubstanceButtonShaper extends SubstanceTrait
Modifier and Type | Method and Description |
---|---|
javax.swing.border.Border |
getButtonBorder(javax.swing.AbstractButton button)
Returns the border for the specified button.
|
java.awt.Shape |
getButtonOutline(javax.swing.AbstractButton button)
Deprecated.
Will be removed in version 6.0. Use
getButtonOutline(AbstractButton, Insets, int, int, boolean)
instead. |
java.awt.Shape |
getButtonOutline(javax.swing.AbstractButton button,
java.awt.Insets insets)
Deprecated.
Will be removed in version 6.0. Use
getButtonOutline(AbstractButton, Insets, int, int, boolean)
instead. |
java.awt.Shape |
getButtonOutline(javax.swing.AbstractButton button,
java.awt.Insets insets,
int width,
int height)
Deprecated.
Will be removed in version 6.0. Use
getButtonOutline(AbstractButton, Insets, int, int, boolean)
instead. |
java.awt.Shape |
getButtonOutline(javax.swing.AbstractButton button,
java.awt.Insets insets,
int width,
int height,
boolean isInner)
Returns the outline path for the specified button.
|
java.lang.String |
getDisplayName()
Returns the display name of
this trait. |
java.awt.Dimension |
getPreferredSize(javax.swing.AbstractButton button,
java.awt.Dimension uiPreferredSize)
Returns the preferred size for the specified button.
|
boolean |
isProportionate()
Returns the boolean indication whether the shaper should maintain button
proportions on the resize.
|
java.lang.String getDisplayName()
SubstanceTrait
this
trait. This method is part
of officially supported API.getDisplayName
in interface SubstanceTrait
this
trait.@Deprecated java.awt.Shape getButtonOutline(javax.swing.AbstractButton button)
getButtonOutline(AbstractButton, Insets, int, int, boolean)
instead.button
- A button.@Deprecated java.awt.Shape getButtonOutline(javax.swing.AbstractButton button, java.awt.Insets insets, int width, int height)
getButtonOutline(AbstractButton, Insets, int, int, boolean)
instead.button
- A button.insets
- Button insets.width
- Button width.height
- Button height.java.awt.Shape getButtonOutline(javax.swing.AbstractButton button, java.awt.Insets insets, int width, int height, boolean isInner)
button
- A button.insets
- Button insets.width
- Button width.height
- Button height.isInner
- Indication whether the returned outline is used for the inner
contour.@Deprecated java.awt.Shape getButtonOutline(javax.swing.AbstractButton button, java.awt.Insets insets)
getButtonOutline(AbstractButton, Insets, int, int, boolean)
instead.button
- A button.insets
- Button insets.javax.swing.border.Border getButtonBorder(javax.swing.AbstractButton button)
button
- A button.java.awt.Dimension getPreferredSize(javax.swing.AbstractButton button, java.awt.Dimension uiPreferredSize)
button
- A button.uiPreferredSize
- Preferred size of the button under the regular conditions
(plain rectangular button).boolean isProportionate()
true
if this
shaper should maintain
button proportions on the resize, false
otherwise.