public interface Span
Span is an empty space that show up on a DockStation mostly during drag and drop operations. Every
DockStation can contain multiple spans which can change their size at any time.Spans are created by the customizable SpanFactory, and interact with their DockStation using
a SpanCallback.| Modifier and Type | Method and Description |
|---|---|
void |
configureSize(SpanMode mode,
int size)
|
int |
getSize()
Gets the current size of this
Span. |
void |
mutate(SpanMode mode)
Tells this
Span to mutate its size according to the settings made for mode. |
void |
set(SpanMode mode)
Like
mutate(SpanMode), but the mutation into mode has to be instantly. |
void mutate(SpanMode mode)
Span to mutate its size according to the settings made for mode. If
there are no settings for mode, then the default values from mode itself should
be utilized. Whether the Span changes its size instantly, or uses some kind of animation, is up to
the span. In any case the mutation should not take any longer than 1 second.mode - the mode into which this Span should govoid set(SpanMode mode)
mutate(SpanMode), but the mutation into mode has to be instantly.mode - the mode to apply instantlyvoid configureSize(SpanMode mode, int size)
Span that mode is associated with a size of size pixels. If this
Span currently is in mode, then it should apply the new size as if set(SpanMode) would
be called.mode - the mode for which to set a sizesize - the size in pixels, at least 0int getSize()
Span.Copyright © 2017 Docking Frames. All rights reserved.