public final class SimpleEtchedBorder extends SchemeBorder
SchemeBorder.Scheme, SchemeBorder.SCHEMESColorConstants.SystemColorFactory| Modifier and Type | Field and Description |
|---|---|
protected static Insets |
INSETS
The insets
|
static Border |
singleton
The singleton instance of this class
|
DARKER_LIGHTER, DARKEST_DARKER, LIGHTER_DARKER, schemetempRectblack, blue, button, buttonDarker, buttonDarkest, buttonLightest, cyan, darkBlue, darkGray, darkGreen, gray, green, lightBlue, lightGray, lightGreen, listBackground, listForeground, menuBackground, menuBackgroundSelected, menuForeground, menuForegroundSelected, orange, red, titleBackground, titleForeground, titleGradient, titleInactiveBackground, titleInactiveForeground, titleInactiveGradient, tooltipBackground, tooltipForeground, white, yellow| Modifier | Constructor and Description |
|---|---|
protected |
SimpleEtchedBorder()
Constructs a default border having a two pixel wide border.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
getInsets(IFigure figure)
Returns the Insets used by this border.
|
boolean |
isOpaque()
Returns the opaque state of this border.
|
void |
paint(IFigure figure,
Graphics g,
Insets insets)
Paints the border.
|
getScheme, paint, setSchemegetPaintRectangle, getPreferredSizepublic static final Border singleton
protected static final Insets INSETS
protected SimpleEtchedBorder()
public Insets getInsets(IFigure figure)
getInsets in interface BordergetInsets in class SchemeBorderfigure - The figure this border belongs toBorder.getInsets(IFigure)public boolean isOpaque()
isOpaque in interface BorderisOpaque in class SchemeBordertrue if this border is opaqueBorder.isOpaque()public void paint(IFigure figure, Graphics g, Insets insets)
BorderIFigure.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 as Rectangle.contains(int, int).paint in interface Borderpaint in class SchemeBorderfigure - The figure this border belongs tog - The graphics object used for paintinginsets - The insetsBorder.paint(IFigure, Graphics, Insets)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.