|
||||||||||
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
.
The information is collected by the station itself.
Nested Class Summary | |
---|---|
static class |
PutInfo.Put
Information where the mouse is. |
Field Summary | |
---|---|
private double |
divider
The location of the divider if the dockable is put aside the node |
private Dockable |
dockable
The Dockable which will be dropped |
private boolean |
draw
true if some lines should be painted onto the station |
private SplitNode |
node
The node which is the anchor for put |
private int |
oldSize
The old size of dockable |
private PutInfo.Put |
put
The location of the mouse in respect to node |
Constructor Summary | |
---|---|
PutInfo(SplitNode node,
PutInfo.Put put)
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. |
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 |
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 |
Field Detail |
---|
private SplitNode node
put
private PutInfo.Put put
node
private boolean draw
true
if some lines should be painted onto the station
private Dockable dockable
Dockable
which will be dropped
private double divider
dockable
is put aside the node
private int oldSize
dockable
Constructor Detail |
---|
public PutInfo(SplitNode node, PutInfo.Put put)
node
- the node to which put
belongsput
- where to put the Dockable
in respect to node
Method Detail |
---|
public void setDockable(Dockable dockable)
Dockable
which will be added to the station.
dockable
- the Dockable or null
public Dockable getDockable()
null
public void setNode(SplitNode node)
node
- the node or null
public SplitNode getNode()
null
public void setPut(PutInfo.Put put)
node
.
put
- the location of the mouse or null
public PutInfo.Put getPut()
null
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |