| Package | Description |
|---|---|
| bibliothek.gui.dock.station.screen.magnet |
The magnet API allows
ScreenDockWindows to
attract each other, or to stick together. |
| Modifier and Type | Method and Description |
|---|---|
MagnetRequest.Side |
StickMagnetGraph.Node.getNeighbor(ScreenDockWindow window)
Tells whether
window is a neighbor of this node and
depends on this node, and if so tells on which side of this node
window lies. |
MagnetRequest.Side |
StickMagnetGraph.DefaultNode.getNeighbor(ScreenDockWindow window) |
MagnetRequest.Side |
StickMagnetGraph.Edge.getSide()
Tells at which side of the
starting node this
edge leaves the node. |
MagnetRequest.Side |
StickMagnetGraph.DefaultEdge.getSide() |
MagnetRequest.Side |
MagnetRequest.Side.opposite()
Gets the side that is opposite to
this. |
protected MagnetRequest.Side |
StickMagnetGraph.relation(ScreenDockWindow moved,
ScreenDockWindow fixed)
Gets the relation of
moved to fixed. |
static MagnetRequest.Side |
MagnetRequest.Side.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MagnetRequest.Side[] |
MagnetRequest.Side.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StickMagnetGraph.DefaultNode.add(MagnetRequest.Side side,
StickMagnetGraph.DefaultNode depending)
Creates a new edge between
this and depending. |
boolean |
StickMagnetGraph.depends(ScreenDockWindow window,
MagnetRequest.Side side)
Tells whether the side
side of window will be moved if the
root window is moved at side. |
int |
MagnetController.distance(ScreenDockWindow windowA,
MagnetRequest.Side sideA,
ScreenDockWindow windowB,
MagnetRequest.Side sideB,
boolean initialBoundaries)
Calculates the distance between
sideA of windowA to sideB of windowB. |
int |
StickMagnetGraphConstraint.get(MagnetRequest.Side side)
Gets the value that was
set earlier for side. |
int |
MagnetController.getValue(Rectangle rectangle,
MagnetRequest.Side side)
Gets the location of the side
side of rectangle. |
int |
MagnetController.getValue(ScreenDockWindow window,
MagnetRequest.Side side,
boolean initialBoundaries)
Gets the location of the side
side of window. |
protected void |
StickMagnetGraph.hardPush(MagnetRequest.Side side)
Starting at the root node, this method follows all
StickMagnetGraph.Edges going into direction side
and sets the hard flag on side and on opposite() on all StickMagnetGraph.Node.getConstraints()s it encounters. |
boolean |
MagnetRequest.is(MagnetRequest.Side side)
Calls
MagnetRequest.isWest(), MagnetRequest.isEast(), MagnetRequest.isNorth() or MagnetRequest.isSouth() depending
on side. |
boolean |
StickMagnetGraphConstraint.isDirect(MagnetRequest.Side side)
Tells whether
side is a directly set side. |
boolean |
StickMagnetGraphConstraint.isHard(MagnetRequest.Side side)
Tells whether
side is a hard side. |
boolean |
StickMagnetGraphConstraint.isSet(MagnetRequest.Side side)
Tells whether
StickMagnetGraphConstraint.set(MagnetRequest.Side, int) was called for side. |
void |
MagnetRequest.movingAttraction(ScreenDockWindow neighbor,
MagnetRequest.Side windowSide,
MagnetRequest.Side neighborSide)
Moves the
window such that its side windowSide is at
the same location as the side neighborSide from neighbor. |
protected void |
StickMagnetGraph.resizeRipple(StickMagnetGraph.Node node,
MagnetRequest.Side topleft)
Starting from the resized node
node this method distributes resizing over a chain of
nodes. |
void |
MagnetRequest.resizingAttraction(ScreenDockWindow neighbor,
MagnetRequest.Side windowSide,
MagnetRequest.Side neighborSide)
Resizes the
window such that its side windowSide is at
the same location as the side neighborSide from neighbor. |
void |
StickMagnetGraphConstraint.set(MagnetRequest.Side side,
int delta)
Sets how much
side has to be moved. |
void |
StickMagnetGraphConstraint.set(MagnetRequest.Side side,
int delta,
boolean direct,
boolean hard)
|
void |
StickMagnetGraphConstraint.setDirect(MagnetRequest.Side side,
boolean direct)
Marks
side to be set directly. |
void |
StickMagnetGraphConstraint.setHard(MagnetRequest.Side side,
boolean hard)
Marks
side as a hard side. |
| Constructor and Description |
|---|
DefaultEdge(StickMagnetGraph.DefaultNode source,
StickMagnetGraph.DefaultNode target,
MagnetRequest.Side side) |
Copyright © 2017 Docking Frames. All rights reserved.