|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tbee.swing.CyclingBorders
public class CyclingBorders
Create a shadowed (bottom right) border. Preferable use the static createBorder methods because of the FlyWeight pattern.
| Field Summary | |
|---|---|
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
static javax.swing.border.Border |
TRANSPARENT_LINE_1
|
| Constructor Summary | |
|---|---|
CyclingBorders(javax.swing.JComponent component,
javax.swing.border.Border[] borders,
int delay,
int duration)
|
|
| Method Summary | |
|---|---|
static CyclingBorders |
alert(javax.swing.JComponent component,
java.awt.Color color)
Flashing border |
static CyclingBorders |
alert(javax.swing.JComponent component,
java.awt.Color color,
int duration)
Flashing border for a fixed amount of time, ending with the transparent border |
static CyclingBorders |
alert2(javax.swing.JComponent component,
java.awt.Color color,
int duration)
Flashing border for a fixed amount of time, ending with the alert color |
javax.swing.border.Border[] |
getBorders()
|
int |
getDelay()
|
int |
getDuration()
|
javax.swing.JComponent |
getJComponent()
|
static void |
main(java.lang.String[] args)
|
void |
setBorders(javax.swing.border.Border[] borders)
the borders to cycle through |
void |
setDelay(int delay)
delay between cycles in milliseconds |
void |
setDuration(int delay)
how long should the animation run (0 = forever) |
void |
setJComponent(javax.swing.JComponent component)
the component to cycle through |
CyclingBorders |
start()
Start the animation |
CyclingBorders |
stop()
Stop the animation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SOURCECODE_VERSION
public static javax.swing.border.Border TRANSPARENT_LINE_1
| Constructor Detail |
|---|
public CyclingBorders(javax.swing.JComponent component,
javax.swing.border.Border[] borders,
int delay,
int duration)
| Method Detail |
|---|
public void setJComponent(javax.swing.JComponent component)
public javax.swing.JComponent getJComponent()
public void setBorders(javax.swing.border.Border[] borders)
public javax.swing.border.Border[] getBorders()
public void setDelay(int delay)
public int getDelay()
public void setDuration(int delay)
public int getDuration()
public CyclingBorders start()
public CyclingBorders stop()
public static CyclingBorders alert(javax.swing.JComponent component,
java.awt.Color color)
component -
public static CyclingBorders alert(javax.swing.JComponent component,
java.awt.Color color,
int duration)
component -
public static CyclingBorders alert2(javax.swing.JComponent component,
java.awt.Color color,
int duration)
component -
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||