public class SplitSpanStrategy extends Object
Spans of a SplitDockStation.| Constructor and Description |
|---|
SplitSpanStrategy(SplitDockStation station)
Creates a new strategy
|
| Modifier and Type | Method and Description |
|---|---|
Span[] |
createSpans(SpanSplitNode node)
Creates four
Spans, one for each side of leaf. |
StationSpanFactoryValue |
getFactory()
Gets the factory which is responsible for creating new
Spans. |
Span[] |
getSpans(PutInfo put)
Gets the
Spans that are used when put is active. |
Rectangle |
modifyBounds(Rectangle bounds,
SpanSplitNode node)
|
int |
putToPosition(PutInfo.Put put)
Tells the index of the
Span at side put. |
void |
setController(DockController controller)
Sets the
DockController which is used by the SplitDockStation. |
void |
setPut(PutInfo info)
Mutates the
Spans such that info shows up. |
void |
unsetPut()
Immediately resets all
Spans to have a size of 0. |
public SplitSpanStrategy(SplitDockStation station)
station - the owner of this strategy, not nullpublic void setPut(PutInfo info)
Spans such that info shows up.info - the current drop information or nullpublic int putToPosition(PutInfo.Put put)
Span at side put.put - one of the non-combining putsIllegalArgumentException - if put does not describe one
of the sides of a SplitNodepublic Span[] getSpans(PutInfo put)
Spans that are used when put is active.put - the drag and drop operation which may be activeSpans that would expand if put is active, can be nullpublic void unsetPut()
Spans to have a size of 0.public StationSpanFactoryValue getFactory()
Spans.public void setController(DockController controller)
DockController which is used by the SplitDockStation.controller - the controller in whose realm this strategy workspublic Span[] createSpans(SpanSplitNode node)
Spans, one for each side of leaf.public Rectangle modifyBounds(Rectangle bounds, SpanSplitNode node)
bounds - the boundaries to shrinknode - the node to evaluateCopyright © 2017 Docking Frames. All rights reserved.