Package org.eclipse.draw2d
Class ButtonBorder
java.lang.Object
org.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.SchemeBorder
org.eclipse.draw2d.ButtonBorder
- All Implemented Interfaces:
- Border,- ColorConstants
Creates a border for a clickable type of figure, which works in conjunction
 with the Figure and its model. This border adjusts itself to the various
 states the model of the figure could be. This border uses an extended
 
Scheme called ButtonBorder.ButtonScheme which provides
 more information required by border to handle the the states of the model.- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classProvides for a scheme to represent the borders of clickable figures like buttons.static interfaceInterface defining commonly used schemes for the ButtonBorder.Nested classes/interfaces inherited from class org.eclipse.draw2d.SchemeBorderSchemeBorder.SchemeNested classes/interfaces inherited from interface org.eclipse.draw2d.ColorConstantsColorConstants.SystemColorFactory
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final BorderDefault button border.static final BorderInverted highlight colors from BUTTON.static final BorderUsed for scrollbar buttons.static final BorderUsed for toolbar buttons.Fields inherited from class org.eclipse.draw2d.SchemeBorderDARKER_LIGHTER, DARKEST_DARKER, LIGHTER_DARKER, schemeFields inherited from class org.eclipse.draw2d.AbstractBordertempRectFields inherited from interface org.eclipse.draw2d.ColorConstantsblack, blue, button, buttonDarker, buttonDarkest, buttonLightest, cyan, darkBlue, darkGray, darkGreen, gray, green, lightBlue, lightGray, lightGreen, lineForeground, listBackground, listForeground, listHoverBackgroundColor, listSelectedBackgroundColor, menuBackground, menuBackgroundSelected, menuForeground, menuForegroundSelected, orange, red, titleBackground, titleForeground, titleGradient, titleInactiveBackground, titleInactiveForeground, titleInactiveGradient, tooltipBackground, tooltipForeground, white, yellow
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a ButtonBorder with a predefined button scheme set as its default.Constructs a ButtonBorder with the input ButtonScheme set as its Scheme.
- 
Method SummaryMethods inherited from class org.eclipse.draw2d.SchemeBordergetInsets, getScheme, isOpaque, paint, setSchemeMethods inherited from class org.eclipse.draw2d.AbstractBordergetPaintRectangle, getPreferredSize
- 
Field Details- 
BUTTONDefault button border.- See Also:
 
- 
BUTTON_CONTRASTInverted highlight colors from BUTTON.- See Also:
 
- 
BUTTON_SCROLLBARUsed for scrollbar buttons.- See Also:
 
- 
TOOLBARUsed for toolbar buttons.- See Also:
 
 
- 
- 
Constructor Details- 
ButtonBorderpublic ButtonBorder()Constructs a ButtonBorder with a predefined button scheme set as its default.- Since:
- 2.0
 
- 
ButtonBorderConstructs a ButtonBorder with the input ButtonScheme set as its Scheme.- Parameters:
- scheme- ButtonScheme for this ButtonBorder.
- Since:
- 2.0
 
 
- 
- 
Method Details- 
paintPaints this border with the help of the set scheme, the model of the clickable figure, and other inputs. The scheme is used in conjunction with the state of the model to get the appropriate colors for the border.- Specified by:
- paintin interface- Border
- Overrides:
- paintin class- SchemeBorder
- Parameters:
- figure- The Clickable that this border belongs to
- graphics- The graphics used for painting
- insets- The insets
- See Also:
 
 
-