|
||||||||||
| 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 String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
static Border |
TRANSPARENT_LINE_1
|
| Constructor Summary | |
|---|---|
CyclingBorders(JComponent component,
Border[] borders,
int delay,
int duration)
|
|
| Method Summary | |
|---|---|
static CyclingBorders |
alert(JComponent component,
Color color)
Flashing border |
static CyclingBorders |
alert(JComponent component,
Color color,
int duration)
Flashing border for a fixed amount of time, ending with the transparent border |
static CyclingBorders |
alert2(JComponent component,
Color color,
int duration)
Flashing border for a fixed amount of time, ending with the alert color |
Border[] |
getBorders()
|
int |
getDelay()
|
int |
getDuration()
|
JComponent |
getJComponent()
|
static void |
main(String[] args)
|
void |
setBorders(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(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 String SOURCECODE_VERSION
public static Border TRANSPARENT_LINE_1
| Constructor Detail |
|---|
public CyclingBorders(JComponent component,
Border[] borders,
int delay,
int duration)
| Method Detail |
|---|
public void setJComponent(JComponent component)
public JComponent getJComponent()
public void setBorders(Border[] borders)
public 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(JComponent component,
Color color)
component -
public static CyclingBorders alert(JComponent component,
Color color,
int duration)
component -
public static CyclingBorders alert2(JComponent component,
Color color,
int duration)
component -
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||