|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.csail.sdg.alloy4.OurBorder
public final class OurBorder
Graphical border on zero, one, two, three, or all four sides of a component.
Thread Safety: Can be called only by the AWT event thread.
Constructor Summary | |
---|---|
OurBorder(boolean top,
boolean left,
boolean bottom,
boolean right)
Construct a Border object that draws a light gray line on 0, 1, 2, 3, or all 4 sides of the component. |
|
OurBorder(java.awt.Color top,
java.awt.Color left,
java.awt.Color bottom,
java.awt.Color right)
Construct a Border object that draws a border on 0, 1, 2, 3, or all 4 sides of the component. |
Method Summary | |
---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
This method is called by Swing to retrieve the dimension of the border. |
boolean |
isBorderOpaque()
This method is called by Swing to find out whether this border object needs to fill in its own background. |
void |
paintBorder(java.awt.Component component,
java.awt.Graphics graphics,
int x,
int y,
int width,
int height)
This method is called by Swing to actually draw the borders. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OurBorder(java.awt.Color top, java.awt.Color left, java.awt.Color bottom, java.awt.Color right)
top
- - nonnull if we want to draw a border line (with that color) above the componentleft
- - nonnull if we want to draw a border line (with that color) to the left of the componentbottom
- - nonnull if we want to draw a border line (with that color) below the componentright
- - nonnull if we want to draw a border line (with that color) to the right of the componentpublic OurBorder(boolean top, boolean left, boolean bottom, boolean right)
top
- - true if we want to draw a Color.LIGHT_GRAY border line above the componentleft
- - true if we want to draw a Color.LIGHT_GRAY border line to the left of the componentbottom
- - true if we want to draw a Color.LIGHT_GRAY border line below the componentright
- - true if we want to draw a Color.LIGHT_GRAY border line to the right of the componentMethod Detail |
---|
public void paintBorder(java.awt.Component component, java.awt.Graphics graphics, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
in interface javax.swing.border.Border
public boolean isBorderOpaque()
isBorderOpaque
in interface javax.swing.border.Border
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |