|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.themes.basic.BasicSpanFactory
public class BasicSpanFactory
The BasicSpanFactory
uses a small animation to expand and to shrink its Span
s.
Constructor Summary | |
---|---|
BasicSpanFactory(int duration,
int minSpeed)
Creates a new factory |
Method Summary | |
---|---|
Span |
create(SpanCallback callback)
Creates a new Span . |
int |
getMinSpeed()
Gets the minimum speed of the animation. |
void |
setDuration(int duration)
Sets how long an animation takes for changing the size of a Span . |
void |
setMinSpeed(int minSpeed)
Sets the minimum speed to open/close spans. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicSpanFactory(int duration, int minSpeed)
duration
- how long the animation takesminSpeed
- the minimum speed, how many pixels must be shown/hidden on average within 1000 milliseconds.Method Detail |
---|
public void setDuration(int duration)
Span
. Changing this property
affects all Span
s that were ever created by this factory.
duration
- how long the animation is in milliseconds, at least 0public void setMinSpeed(int minSpeed)
minSpeed
- the minimum speed, can be 0public int getMinSpeed()
setMinSpeed(int)
public Span create(SpanCallback callback)
SpanFactory
Span
.
create
in interface SpanFactory
callback
- allows interaction between Span
and DockStation
.
Span
, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |