|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.SchemeBorder.Scheme
org.eclipse.draw2d.ButtonBorder.ButtonScheme
Provides for a scheme to represent the borders of clickable figures like buttons.
Though similar to the Scheme
it supports an extra set of
borders for the pressed states.
Field Summary |
Fields inherited from class org.eclipse.draw2d.SchemeBorder.Scheme |
highlight, shadow |
Constructor Summary | |
ButtonBorder.ButtonScheme(org.eclipse.swt.graphics.Color[] highlight,
org.eclipse.swt.graphics.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(org.eclipse.swt.graphics.Color[] hl,
org.eclipse.swt.graphics.Color[] sh,
org.eclipse.swt.graphics.Color[] hlp,
org.eclipse.swt.graphics.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. |
Method Summary | |
protected Insets |
calculateInsets()
Calculates and returns the Insets for this border. |
protected boolean |
calculateOpaque()
Calculates and returns the opaque state of this border. |
protected org.eclipse.swt.graphics.Color[] |
getHighlightPressed()
Returns the pressed highlight colors of this border. |
protected org.eclipse.swt.graphics.Color[] |
getShadowPressed()
Returns the pressed shadow colors of this border. |
Methods inherited from class org.eclipse.draw2d.SchemeBorder.Scheme |
getHighlight, getInsets, getShadow, init, isOpaque |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ButtonBorder.ButtonScheme(org.eclipse.swt.graphics.Color[] highlight, org.eclipse.swt.graphics.Color[] shadow)
highlight
- Colors for the top-left sides of the bordershadow
- Colors for the bottom-right sides of the borderpublic ButtonBorder.ButtonScheme(org.eclipse.swt.graphics.Color[] hl, org.eclipse.swt.graphics.Color[] sh, org.eclipse.swt.graphics.Color[] hlp, org.eclipse.swt.graphics.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 pressedMethod Detail |
protected Insets calculateInsets()
calculateInsets
in class SchemeBorder.Scheme
protected boolean calculateOpaque()
Returns false in the following conditions:
null
null
calculateOpaque
in class SchemeBorder.Scheme
protected org.eclipse.swt.graphics.Color[] getHighlightPressed()
protected org.eclipse.swt.graphics.Color[] getShadowPressed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |