public abstract static class SwingLayoutNode.Anchor.AbstractAnchor extends Object implements SwingLayoutNode.Anchor
SwingLayoutNode.Anchor.AbstractAnchor
Constructor and Description |
---|
SwingLayoutNode.Anchor.AbstractAnchor() |
Modifier and Type | Method and Description |
---|---|
protected static double |
centerX(PNode node,
double x,
double width)
Returns the x at which the given node would need to be placed so
that its center was in the middle of the horizontal segment
defined by x and width.
|
protected static double |
centerY(PNode node,
double y,
double height)
Returns the y at which the given node would need to be placed so
that its center was in the middle of the vertical segment defined
by y and h.
|
protected static double |
east(PNode node,
double x,
double width)
Returns the x at which the given node would need to be placed so
that its right side was against the right side of the horizontal
range defined.
|
protected static double |
north(PNode node,
double y,
double height)
Returns the y at which the given node would need to be placed so
that its top was against the top of the vertical segment defined.
|
protected static double |
south(PNode node,
double y,
double height)
Returns the y at which the given node would need to be placed so
that its bottom was against the bottom of the vertical range
defined.
|
protected static double |
west(PNode node,
double x,
double width)
Returns the x at which the given node would need to be placed so
that its left side was against the left side of the horizontal
range defined.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
positionNode
public SwingLayoutNode.Anchor.AbstractAnchor()
protected static double centerX(PNode node, double x, double width)
node
- node which is being analyzedx
- x component of horizontal line segmentwidth
- width of horizontal line segmentprotected static double centerY(PNode node, double y, double height)
node
- node which is being analyzedy
- y component of horizontal line segmentheight
- height of vertical line segmentprotected static double north(PNode node, double y, double height)
node
- node which is being analyzedy
- y component of horizontal line segmentheight
- height of vertical line segmentprotected static double south(PNode node, double y, double height)
node
- node which is being analyzedy
- y component of vertical rangeheight
- height of vertical rangeprotected static double east(PNode node, double x, double width)
node
- node which is being analyzedx
- x component of horizontal rangewidth
- width of horizontal rangeprotected static double west(PNode node, double x, double width)
node
- node which is being analyzedx
- x component of horizontal rangewidth
- width of horizontal rangeCopyright © 1995-2012 Piccolo2D. All Rights Reserved.