|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SubstanceButtonShaper
Button shaper interface for Substance look and feel. This class is part of officially supported API.
| Method Summary | |
|---|---|
javax.swing.border.Border |
getButtonBorder(javax.swing.AbstractButton button)
Returns the border for the specified button. |
java.awt.geom.GeneralPath |
getButtonOutline(javax.swing.AbstractButton button)
Returns the outline path for the specified button. |
java.awt.geom.GeneralPath |
getButtonOutline(javax.swing.AbstractButton button,
java.awt.Insets insets)
Returns the outline path for the specified button. |
java.awt.geom.GeneralPath |
getButtonOutline(javax.swing.AbstractButton button,
java.awt.Insets insets,
int width,
int height)
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. |
| Method Detail |
|---|
java.lang.String getDisplayName()
SubstanceTraitthis trait. This method is
part of officially supported API.
getDisplayName in interface SubstanceTraitthis trait.java.awt.geom.GeneralPath getButtonOutline(javax.swing.AbstractButton button)
button - A button.
java.awt.geom.GeneralPath getButtonOutline(javax.swing.AbstractButton button,
java.awt.Insets insets,
int width,
int height)
button - A button.insets - Button insets.width - Button width.height - Button height.
java.awt.geom.GeneralPath getButtonOutline(javax.swing.AbstractButton button,
java.awt.Insets insets)
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||