|
||||||||||
| 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)
Creates a new PutInfo. |
|
| Method Summary | |
|---|---|
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 |
isDraw()
Tells whether the station should paint some lines. |
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 |
setDraw(boolean draw)
Sets whether the station should paint some lines to indicate where the dockable will be added, or not. |
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. |
| 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)
node - the node to which put belongsput - where to put the Dockable in respect to nodedockable - the element that will be dropped| Method Detail |
|---|
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 void setDivider(double divider)
dockable
will have a neighbor.
divider - the location of the dividerpublic double getDivider()
public void setDraw(boolean draw)
dockable will be added, or not.
draw - true if the station should paint somethingpublic boolean isDraw()
true if the station should paintsetDraw(boolean)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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||