|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SwingLayoutNode.Anchor
Determines where nodes are anchored in the area allocated by the Swing layout manager. Predefined anchor names are similar to GridBagConstraint anchors and have the same semantics.
Nested Class Summary | |
---|---|
static class |
SwingLayoutNode.Anchor.AbstractAnchor
|
Field Summary | |
---|---|
static SwingLayoutNode.Anchor |
CENTER
Anchors the node's center as the point used when laying it out. |
static SwingLayoutNode.Anchor |
EAST
Anchors the node's middle right as the point used when laying it out. |
static SwingLayoutNode.Anchor |
NORTH
Anchors the node's top center as the point used when laying it out. |
static SwingLayoutNode.Anchor |
NORTHEAST
Anchors the node's top right as the point used when laying it out. |
static SwingLayoutNode.Anchor |
NORTHWEST
Anchors the node's top left as the point used when laying it out. |
static SwingLayoutNode.Anchor |
SOUTH
Anchors the node's center bottom as the point used when laying it out. |
static SwingLayoutNode.Anchor |
SOUTHEAST
Anchors the node's bottom right as the point used when laying it out. |
static SwingLayoutNode.Anchor |
SOUTHWEST
Anchors the node's bottom left as the point used when laying it out. |
static SwingLayoutNode.Anchor |
WEST
Anchors the node's middle left as the point used when laying it out. |
Method Summary | |
---|---|
void |
positionNode(PNode node,
double x,
double y,
double width,
double height)
Positions the node in the bounds defined. |
Field Detail |
---|
static final SwingLayoutNode.Anchor CENTER
static final SwingLayoutNode.Anchor NORTH
static final SwingLayoutNode.Anchor NORTHEAST
static final SwingLayoutNode.Anchor EAST
static final SwingLayoutNode.Anchor SOUTHEAST
static final SwingLayoutNode.Anchor SOUTH
static final SwingLayoutNode.Anchor SOUTHWEST
static final SwingLayoutNode.Anchor WEST
static final SwingLayoutNode.Anchor NORTHWEST
Method Detail |
---|
void positionNode(PNode node, double x, double y, double width, double height)
node
- node to be laid outx
- left of boundsy
- top of boundswidth
- width of boundsheight
- height of bounds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |