|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.SchemeBorder.Scheme
Holds a set of information about a border, which can be changed to create a wide range of schemes. Provides support for border opacity, size, highlight side and shadow side colors.
Field Summary | |
protected Color[] |
highlight
Arrays of Colors, used for highlight and shadow effecsts |
protected Color[] |
shadow
Arrays of Colors, used for highlight and shadow effecsts |
Constructor Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Color[] highlight
protected Color[] shadow
Constructor Detail |
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 borderMethod Detail |
protected 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 opaque
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |