|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.split.PutInfo
public class PutInfo
Carries information where to put a Dockable onto a SplitDockStation.
| Nested Class Summary | |
|---|---|
static class |
PutInfo.Put
Information where the mouse is. |
| Constructor Summary | |
|---|---|
PutInfo(SplitNode node,
PutInfo.Put put,
Dockable dockable,
boolean combining)
Creates a new PutInfo. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.TITLE| Method Detail |
|---|
public 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)
dockable
leaf - the leafpublic Leaf getLeaf()
dockable
null
public void setCombination(CombinerSource source,
CombinerTarget target)
Combiner.combine(CombinerSource, CombinerTarget).
source - information about the two Dockables to mergetarget - information about how to merge the Dockablespublic CombinerSource getCombinerSource()
Dockables that are going to be merged.
nullpublic CombinerTarget getCombinerTarget()
Dockables.
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||