|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BorderInterface
BorderInterface is an interface that provides the necessary methods to draw a border on a visual component in a specified rectangle.
Border
Field Summary | |
---|---|
static int |
BOTTOM_LEFT
Bottom/left lightSource |
static int |
BOTTOM_RIGHT
Bottom/right lightSource |
static int |
DEFAULT
Default border style shown |
static int |
LOWERED
Lowered border lightSource |
static int |
NONE
No border style shown |
static int |
RAISED
Raised border lightSource |
static int |
TOP_LEFT
Top/left lightSource |
static int |
TOP_RIGHT
Top/right lightSource |
Method Summary | |
---|---|
void |
drawInRect(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draw the Border within the specified rectangle on the specified component. |
void |
drawInRect(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draw the Border within the specified rectangle. |
int |
getBorderWidth()
Get the border width. |
java.awt.Insets |
getInsets()
Method to get the Insets of this Border. |
java.awt.Insets |
getInsets(java.awt.Component comp)
Method to get the Insets of this Border on the specified component. |
int |
getLightSource()
Get the Light Source of the Border. |
int |
getStyle()
Get the style of the Border. |
void |
setBorderWidth(int width)
Set the border width. |
void |
setLightSource(int ltSrc)
Set the type of the Border: RAISED or LOWERED |
void |
setStyle(int s)
Set the style of the Border: NONE or DEFAULT or some id set by a implementation |
Field Detail |
---|
static final int NONE
static final int DEFAULT
static final int RAISED
static final int LOWERED
static final int TOP_LEFT
static final int TOP_RIGHT
static final int BOTTOM_RIGHT
static final int BOTTOM_LEFT
Method Detail |
---|
void drawInRect(java.awt.Component comp, java.awt.Graphics g, int x, int y, int width, int height)
comp
- the java.awt.Component to draw the border ong
- the Graphics contextx
- the x position of the border rectangley
- the y position of the border rectanglewidth
- the width of the border rectangleheight
- the height of the border rectanglevoid drawInRect(java.awt.Graphics g, int x, int y, int width, int height)
g
- the Graphics contextx
- the x position of the border rectangley
- the y position of the border rectanglewidth
- the width of the border rectangleheight
- the height of the border rectangleint getBorderWidth()
java.awt.Insets getInsets(java.awt.Component comp)
comp
- the java.awt.Component to draw the border on
java.awt.Insets getInsets()
int getStyle()
int getLightSource()
void setBorderWidth(int width)
width
- the new width of the bordervoid setStyle(int s)
void setLightSource(int ltSrc)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |