public static interface SwingLayoutNode.Anchor
Modifier and Type | Interface and Description |
---|---|
static class |
SwingLayoutNode.Anchor.AbstractAnchor |
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
positionNode(PNode node,
double x,
double y,
double width,
double height)
Positions the node in the bounds defined.
|
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
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 boundsCopyright © 1995–2013 Piccolo2D. All rights reserved.