| Constructor and Description |
|---|
Simple3DBorder()
Constructs a new (raised) border.
|
Simple3DBorder(boolean raised)
Constructs a new border.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
getBorderInsets(Component comp)
Returns insets;
|
boolean |
isBorderOpaque()
Always returns TRUE.
|
boolean |
isRaised()
Returns TRUE if the border is drawn raised.
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the 3D rectangle around the given component.
|
void |
setBorderInsets(Insets insets)
Changes the insets of the border.
|
public Simple3DBorder(boolean raised)
raised - if TRUE the 3D border will be drawn raised instead of sunken.public Simple3DBorder()
public boolean isRaised()
public boolean isBorderOpaque()
isBorderOpaque in interface BorderBorder.isBorderOpaque()public Insets getBorderInsets(Component comp)
getBorderInsets in interface Bordercomp - the component for which to draw the borderBorder.getBorderInsets(Component)public void setBorderInsets(Insets insets)
insets - the border's insetspublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder in interface Borderc - the component for which to draw a borderg - the graphics context to use for rendering operationsx - the x-coordinate for the bordery - the y-coordinate for the borderwidth - the width of the borderheight - the height of the borderBorder.paintBorder(Component, Graphics, int, int, int, int)Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.