public static class SchemeBorder.Scheme
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Color[] |
highlight
Arrays of Colors, used for highlight and shadow effecsts
|
protected Color[] |
shadow
Arrays of Colors, used for highlight and shadow effecsts
|
| Modifier | Constructor and Description |
|---|---|
protected |
SchemeBorder.Scheme()
Constructs a default border Scheme with no border sides.
|
|
SchemeBorder.Scheme(Color[] colors)
Constructs a border scheme with the specified colors.
|
|
SchemeBorder.Scheme(Color[] highlight,
Color[] shadow)
Constructs a border Scheme with the specified highlight and shadow
colors.
|
| Modifier and Type | Method and Description |
|---|---|
protected Insets |
calculateInsets()
Calculates and returns the Insets for this border Scheme.
|
protected boolean |
calculateOpaque()
Calculates and retuns the opaque state of this border scheme.
|
protected Color[] |
getHighlight()
Returns the highlight colors of this border scheme as an array of
Colors.
|
protected Insets |
getInsets()
Returns the Insets required by this Scheme.
|
protected Color[] |
getShadow()
Returns the shadow colors of this border scheme as an array of
Colors.
|
protected void |
init()
Calculates and initializes the properties of this border scheme.
|
protected boolean |
isOpaque()
Returns whether this border should be opaque or not.
|
protected Color[] highlight
protected Color[] shadow
protected SchemeBorder.Scheme()
public SchemeBorder.Scheme(Color[] highlight, Color[] shadow)
highlight - the hightlight colorsshadow - the shadow colorspublic SchemeBorder.Scheme(Color[] colors)
colors - the colors to be used for the borderprotected Insets calculateInsets()
protected boolean calculateOpaque()
false if any of the border colors are null.
This is done to prevent the appearance of underlying pixels since the
border color is null.true if this border is opaqueprotected Color[] getHighlight()
protected Insets getInsets()
protected Color[] getShadow()
protected void init()
protected boolean isOpaque()
true if this border is opaqueCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.