|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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
|
protected Color[] |
shadow
|
| 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()
Retuns the opaque state of this border scheme. |
protected Color[] |
getHighlight()
Returns the highlight colors being used. |
protected Insets |
getInsets()
Returns the Insets required by this Scheme. |
protected Color[] |
getShadow()
Returns the shadow colors being used. |
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 - Hightlight colors to be used.shadow - Shadow colors to be used.public SchemeBorder.Scheme(Color[] colors)
Colors - to be used for the border.| Method Detail |
protected Insets calculateInsets()
protected boolean calculateOpaque()
null if any of the border
colors is null. This is done to
prevent the appearance of underlying pixels since
the border color is null.
- Since:
- 2.0
protected Color[] getHighlight()
protected Insets getInsets()
protected Color[] getShadow()
protected void init()
protected boolean isOpaque()
|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||