public class ButtonBorder extends SchemeBorder
Scheme called ButtonBorder.ButtonScheme which provides
more information required by border to handle the the states of the model.SchemeBorder.Scheme,
ButtonBorder.ButtonScheme| Modifier and Type | Class and Description |
|---|---|
static class |
ButtonBorder.ButtonScheme
Provides for a scheme to represent the borders of clickable figures like
buttons.
|
static interface |
ButtonBorder.SCHEMES
Interface defining commonly used schemes for the ButtonBorder.
|
SchemeBorder.SchemeColorConstants.SystemColorFactory| Modifier and Type | Field and Description |
|---|---|
static Border |
BUTTON
Default button border.
|
static Border |
BUTTON_CONTRAST
Inverted hightlight colors from BUTTON.
|
static Border |
BUTTON_SCROLLBAR
Used for scrollbar buttons.
|
static Border |
TOOLBAR
Used for toolbar buttons.
|
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| Constructor and Description |
|---|
ButtonBorder()
Constructs a ButtonBorder with a predefined button scheme set as its
default.
|
ButtonBorder(ButtonBorder.ButtonScheme scheme)
Constructs a ButtonBorder with the input ButtonScheme set as its Scheme.
|
| Modifier and Type | Method and Description |
|---|---|
void |
paint(IFigure figure,
Graphics graphics,
Insets insets)
Paints this border with the help of the set scheme, the model of the
clickable figure, and other inputs.
|
getInsets, getScheme, isOpaque, paint, setSchemegetPaintRectangle, getPreferredSizepublic static final Border BUTTON
ButtonBorder.SCHEMES.BUTTONpublic static final Border BUTTON_CONTRAST
ButtonBorder.SCHEMES.BUTTON_CONTRASTpublic static final Border BUTTON_SCROLLBAR
public static final Border TOOLBAR
ButtonBorder.SCHEMES.TOOLBARpublic ButtonBorder()
public ButtonBorder(ButtonBorder.ButtonScheme scheme)
scheme - ButtonScheme for this ButtonBorder.public void paint(IFigure figure, Graphics graphics, Insets insets)
paint in interface Borderpaint in class SchemeBorderfigure - The Clickable that this border belongs tographics - The graphics used for paintinginsets - The insetsBorder.paint(IFigure, Graphics, Insets)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.