public class PNodeLocator extends PLocator
| Modifier and Type | Field and Description |
|---|---|
protected PNode |
node
Node being located by this locator.
|
| Constructor and Description |
|---|
PNodeLocator(PNode node)
Constructs a locator responsible for locating the given node.
|
| Modifier and Type | Method and Description |
|---|---|
PNode |
getNode()
Returns the node being located by this locator.
|
double |
locateX()
Locates the left of the target node's bounds.
|
double |
locateY()
Locates the top of the target node's bounds.
|
void |
setNode(PNode node)
Changes the node being located by this locator.
|
locatePointprotected PNode node
public PNodeLocator(PNode node)
node - node to be locatedpublic PNode getNode()
public void setNode(PNode node)
node - new node to have this locator locate.public double locateX()
Copyright © 1995-2012 Piccolo2D. All Rights Reserved.