Package org.eclipse.draw2d
Class SimpleEtchedBorder
java.lang.Object
org.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.SchemeBorder
org.eclipse.draw2d.SimpleEtchedBorder
- All Implemented Interfaces:
- Border,- ColorConstants
Provides a two pixel wide constant sized border, having an etched look.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.draw2d.SchemeBorderSchemeBorder.Scheme, SchemeBorder.SCHEMESNested classes/interfaces inherited from interface org.eclipse.draw2d.ColorConstantsColorConstants.SystemColorFactory
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final InsetsThe insetsstatic final BorderThe singleton instance of this classFields 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 SummaryConstructorsModifierConstructorDescriptionprotectedConstructs a default border having a two pixel wide border.
- 
Method SummaryMethods inherited from class org.eclipse.draw2d.SchemeBordergetScheme, paint, setSchemeMethods inherited from class org.eclipse.draw2d.AbstractBordergetPaintRectangle, getPreferredSize
- 
Field Details- 
singletonThe singleton instance of this class
- 
INSETSThe insets
 
- 
- 
Constructor Details- 
SimpleEtchedBorderprotected SimpleEtchedBorder()Constructs a default border having a two pixel wide border.- Since:
- 2.0
 
 
- 
- 
Method Details- 
getInsetsReturns the Insets used by this border. This is a constant value of two pixels in each direction.- Specified by:
- getInsetsin interface- Border
- Overrides:
- getInsetsin class- SchemeBorder
- Parameters:
- figure- The figure this border belongs to
- Returns:
- The insets
- See Also:
 
- 
isOpaquepublic boolean isOpaque()Returns the opaque state of this border. This border is opaque and takes responsibility to fill the region it encloses.- Specified by:
- isOpaquein interface- Border
- Overrides:
- isOpaquein class- SchemeBorder
- Returns:
- trueif this border is opaque
- See Also:
 
- 
paintDescription copied from interface:BorderPaints the border. The border should paint inside figure'sIFigure.getBounds(), inset by the parameter insets. The border generally should not paint inside its own insets. More specifically, Border b should paint inside the rectangle: figure.getBounds().getCropped(insets) and outside of the rectangle: figure.getBounds().getCropped(insets).getCropped(getInsets()) where inside is defined asRectangle.contains(int, int).- Specified by:
- paintin interface- Border
- Overrides:
- paintin class- SchemeBorder
- Parameters:
- figure- The figure this border belongs to
- g- The graphics object used for painting
- insets- The insets
- See Also:
 
 
-