|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.util.Simple3DBorder
public class Simple3DBorder
A simple 3D border with a line thickness of 1 pixel.
Constructor Summary | |
---|---|
Simple3DBorder()
Constructs a new (raised) border. |
|
Simple3DBorder(boolean raised)
Constructs a new border. |
Method Summary | |
---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component comp)
Returns insets; |
boolean |
isBorderOpaque()
Always returns TRUE. |
boolean |
isRaised()
Returns TRUE if the border is drawn raised. |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the 3D rectangle around the given component. |
void |
setBorderInsets(java.awt.Insets insets)
Changes the insets of the border. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Simple3DBorder(boolean raised)
raised
- if TRUE the 3D border will be drawn raised instead of sunken.public Simple3DBorder()
Method Detail |
---|
public boolean isRaised()
public boolean isBorderOpaque()
isBorderOpaque
in interface javax.swing.border.Border
Border.isBorderOpaque()
public java.awt.Insets getBorderInsets(java.awt.Component comp)
getBorderInsets
in interface javax.swing.border.Border
comp
- the component for which to draw the border
Border.getBorderInsets(Component)
public void setBorderInsets(java.awt.Insets insets)
insets
- the border's insetspublic void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
c
- 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |