public class BasicSpanFactory extends Object implements SpanFactory
BasicSpanFactory uses a small animation to expand and to shrink its Spans.| Constructor and Description |
|---|
BasicSpanFactory(int duration,
int minSpeed)
Creates a new factory
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.public void setDuration(int duration)
Span. Changing this property
affects all Spans 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)
SpanFactorySpan.create in interface SpanFactorycallback - allows interaction between Span and DockStation.Span, not nullCopyright © 2017 Docking Frames. All rights reserved.