public static class ButtonBorder.ButtonScheme extends SchemeBorder.Scheme
Scheme it
supports an extra set of borders for the pressed states.highlight, shadow| Constructor and Description |
|---|
ButtonBorder.ButtonScheme(Color[] highlight,
Color[] shadow)
Constructs a new button scheme where the input colors are the colors
for the top-left and bottom-right sides of the border.
|
ButtonBorder.ButtonScheme(Color[] hl,
Color[] sh,
Color[] hlp,
Color[] shp)
Constructs a new button scheme where the input colors are the colors
for the top-left and bottom-right sides of the border, for the normal
and pressed states.
|
| Modifier and Type | Method and Description |
|---|---|
protected Insets |
calculateInsets()
Calculates and returns the Insets for this border.
|
protected boolean |
calculateOpaque()
Calculates and returns the opaque state of this border.
|
protected Color[] |
getHighlightPressed()
Returns the pressed highlight colors of this border.
|
protected Color[] |
getShadowPressed()
Returns the pressed shadow colors of this border.
|
getHighlight, getInsets, getShadow, init, isOpaquepublic ButtonBorder.ButtonScheme(Color[] highlight, Color[] shadow)
highlight - Colors for the top-left sides of the bordershadow - Colors for the bottom-right sides of the borderpublic ButtonBorder.ButtonScheme(Color[] hl, Color[] sh, Color[] hlp, Color[] shp)
hl - Colors for the top-left sides of the bordersh - Colors for the bottom-right sides of the borderhlp - Colors for the top-left sides of the border when figure is
pressedshp - Colors for the bottom-right sides of the border when
figure is pressedprotected Insets calculateInsets()
calculateInsets in class SchemeBorder.Schemeprotected boolean calculateOpaque()
Returns false in the following conditions:
null
null
calculateOpaque in class SchemeBorder.Schemeprotected Color[] getHighlightPressed()
protected Color[] getShadowPressed()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.