public class PutInfo extends Object
Dockable onto a SplitDockStation.| Modifier and Type | Class and Description |
|---|---|
static class |
PutInfo.Put
Information where the mouse is.
|
| Constructor and Description |
|---|
PutInfo(SplitNode node,
PutInfo.Put put,
Dockable dockable,
boolean combining)
Creates a new PutInfo.
|
| Modifier and Type | Method and Description |
|---|---|
CombinerSource |
getCombinerSource()
Gets information about the two
Dockables that are going to be merged. |
CombinerTarget |
getCombinerTarget()
Gets information about how to merge the two
Dockables. |
double |
getDivider()
Gets the preferred location of the divider.
|
Dockable |
getDockable()
Gets the Dockable which will be added to the station.
|
Leaf |
getLeaf()
Gets the leaf which contains
dockable |
SplitNode |
getNode()
Gets the future neighbor or parent.
|
int |
getOldSize()
Gets the old size of the
dockable. |
PutInfo.Put |
getPut()
Gets the location of the mouse.
|
boolean |
isCombining()
Tells whether the mouse position alone would result in
getPut() equaling
PutInfo.Put.CENTER or PutInfo.Put.TITLE. |
void |
setCombination(CombinerSource source,
CombinerTarget target)
Sets combination information that can be used for
Combiner.combine(CombinerSource, CombinerTarget). |
void |
setDivider(double divider)
Sets the preferred location that a divider should have if the
dockable
will have a neighbor. |
void |
setDockable(Dockable dockable)
Sets the
Dockable which will be added to the station. |
void |
setLeaf(Leaf leaf)
Sets the leaf which contains
dockable |
void |
setNode(SplitNode node)
Sets the node which might become neighbor or parent of the new child.
|
void |
setOldSize(int oldSize)
Sets the size that the
dockable had before
it was dragged around. |
void |
setPut(PutInfo.Put put)
Tells where the mouse is, in respect to
node. |
boolean |
willHaveNoEffect()
If this
PutInfo describes the current layout, then nothing will happen if it is applied. |
public PutInfo(SplitNode node, PutInfo.Put put, Dockable dockable, boolean combining)
node - the node to which put belongsput - where to put the Dockable in respect to nodedockable - the element that will be droppedcombining - whether the mouse position alone would set put to PutInfo.Put.CENTER or PutInfo.Put.TITLEpublic boolean willHaveNoEffect()
PutInfo describes the current layout, then nothing will happen if it is applied.public void setDockable(Dockable dockable)
Dockable which will be added to the station.dockable - the Dockable or nullpublic Dockable getDockable()
nullpublic void setNode(SplitNode node)
node - the node or nullpublic SplitNode getNode()
nullpublic void setPut(PutInfo.Put put)
node.put - the location of the mouse or nullpublic PutInfo.Put getPut()
nullpublic boolean isCombining()
getPut() equaling
PutInfo.Put.CENTER or PutInfo.Put.TITLE.public void setDivider(double divider)
dockable
will have a neighbor.divider - the location of the dividerpublic double getDivider()
public void setOldSize(int oldSize)
dockable had before
it was dragged around.oldSize - the size (width or height, the interpretation
depends on the value of put)public int getOldSize()
dockable.setOldSize(int)public void setLeaf(Leaf leaf)
dockableleaf - the leafpublic void setCombination(CombinerSource source, CombinerTarget target)
Combiner.combine(CombinerSource, CombinerTarget).public CombinerSource getCombinerSource()
Dockables that are going to be merged.nullpublic CombinerTarget getCombinerTarget()
Dockables.nullCopyright © 2017 Docking Frames. All rights reserved.