|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tbee.swing.ShadowBorder
public class ShadowBorder
Create a shadowed (bottom right) border. Preferable use the static createBorder methods because of the FlyWeight pattern.
| Field Summary | |
|---|---|
static String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
ShadowBorder()
standaard 5 pixel gray shadow |
|
ShadowBorder(int size,
Color color)
custom shadow |
|
| Method Summary | |
|---|---|
static ShadowBorder |
createBorder()
FlyWeight pattern implementation standaard border |
static ShadowBorder |
createBorder(int size,
Color c)
FlyWeight pattern implementation Custom border |
static JPanel |
createJPanelWithShadow(Component component)
Wrap a component in a JPanel with standard shadow |
static JPanel |
createJPanelWithShadow(Component component,
ShadowBorder shadowBorder)
Wrap a component in a JPanel with shadow |
Insets |
getBorderInsets(Component c)
|
boolean |
getUseNoise()
|
boolean |
isBorderOpaque()
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
Even though this paint may take long to render the required shadow is noise is used. |
void |
setUseNoise(boolean noise)
using noise make the shadow better but requires more time to renden |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SOURCECODE_VERSION
| Constructor Detail |
|---|
public ShadowBorder()
public ShadowBorder(int size,
Color color)
| Method Detail |
|---|
public void setUseNoise(boolean noise)
public boolean getUseNoise()
public Insets getBorderInsets(Component c)
getBorderInsets in interface Borderpublic boolean isBorderOpaque()
isBorderOpaque in interface Border
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
paintBorder in interface Borderpublic static ShadowBorder createBorder()
public static ShadowBorder createBorder(int size,
Color c)
c -
public static JPanel createJPanelWithShadow(Component component)
public static JPanel createJPanelWithShadow(Component component,
ShadowBorder shadowBorder)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||