|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.extension.gui.dock.theme.bubble.BubbleColorAnimation.Entry
private class BubbleColorAnimation.Entry
One pair of colors.
Field Summary | |
---|---|
private int |
age
The age of the current transition from source to destination |
private java.lang.String |
destination
Key of the color to which the animation runs |
private java.awt.Color |
intermediate
Replacement of source for special circumstances |
private java.lang.String |
source
Key of the color which is abandoned by the animation |
Constructor Summary | |
---|---|
private |
BubbleColorAnimation.Entry()
|
Method Summary | |
---|---|
java.awt.Color |
getColor()
Gets the current color represented by this pair. |
void |
setColors(java.lang.String source,
java.lang.String destination)
Replaces source and destination color immediately |
void |
setDestination(java.lang.String color)
Sets all properties such that an animation from the current color to color can happen. |
boolean |
step(int delta)
Makes another step of the animation towards destination . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String source
private java.lang.String destination
private java.awt.Color intermediate
source
for special circumstances
private int age
Constructor Detail |
---|
private BubbleColorAnimation.Entry()
Method Detail |
---|
public java.awt.Color getColor()
public boolean step(int delta)
destination
.
delta
- the time passed since the last call in milliseconds
true
if the animation is still running, false
if the animation is finishedpublic void setColors(java.lang.String source, java.lang.String destination)
source
- the new sourcedestination
- the new destinationpublic void setDestination(java.lang.String color)
color
can happen.
color
- the new destination
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |