|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
org.openbp.swing.plaf.sky.SimpleBorder
public class SimpleBorder
A rectangular border consisting of a single line. The line can have a particular color and width. Note that the insets of the border must be larger or equal than the width.
| Constructor Summary | |
|---|---|
SimpleBorder()
Default constructor. |
|
SimpleBorder(java.awt.Insets insets)
Creates a new SimpleBorder instance with the
given Insets between Border and Component. |
|
SimpleBorder(int top,
int left,
int bottom,
int right)
Creates a new SimpleBorder instance with the
given Insets between border and Component. |
|
| Method Summary | |
|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Gets the insets of the border |
java.awt.Color |
getColor()
Gets the border color. |
static SimpleBorder |
getStandardBorder()
Gets the standard instance of this border. |
int |
getWidth()
Gets the border width. |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Implements AbstractBorder. |
void |
setColor(java.awt.Color color)
Sets the border color. |
void |
setWidth(int borderWidth)
Sets the border width. |
| Methods inherited from class javax.swing.border.AbstractBorder |
|---|
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleBorder()
public SimpleBorder(java.awt.Insets insets)
SimpleBorder instance with the
given Insets between Border and Component.
insets - The border insets
public SimpleBorder(int top,
int left,
int bottom,
int right)
SimpleBorder instance with the
given Insets between border and Component.
top - The top offsetleft - The left offsetbottom - The bottom offsetright - The right offset| Method Detail |
|---|
public static SimpleBorder getStandardBorder()
public int getWidth()
public void setWidth(int borderWidth)
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - The color or null for the default (gray)
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.AbstractBorderc - a Component valueg - a Graphics valuex - an int valuey - an int valuewidth - an int valueheight - an int valuepublic java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.AbstractBorderc - The component the border belongs to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||