public class PBoundsLocator extends PNodeLocator
node| Constructor and Description |
|---|
PBoundsLocator(PNode node,
int aSide)
Constructs a locator for tracking the position on the node provided.
|
| Modifier and Type | Method and Description |
|---|---|
static PBoundsLocator |
createEastLocator(PNode node)
Creates a locator for tracking the east side of the provided node.
|
static PBoundsLocator |
createNorthEastLocator(PNode node)
Creates a locator for tracking the north east corner of the provided
node.
|
static PBoundsLocator |
createNorthLocator(PNode node)
Creates a locator for tracking the north side of the provided node.
|
static PBoundsLocator |
createNorthWestLocator(PNode node)
Creates a locator for tracking the north west corner of the provided
node.
|
static PBoundsLocator |
createSouthEastLocator(PNode node)
Creates a locator for tracking the south east corner of the provided
node.
|
static PBoundsLocator |
createSouthLocator(PNode node)
Creates a locator for tracking the south side of the provided node.
|
static PBoundsLocator |
createSouthWestLocator(PNode node)
Creates a locator for tracking the south west corner of the provided
node.
|
static PBoundsLocator |
createWestLocator(PNode node)
Creates a locator for tracking the west side of the provided node.
|
int |
getSide()
Returns the side of the node that's being tracked.
|
double |
locateX()
Maps the locator's side to its x position.
|
double |
locateY()
Maps the locator's side to its y position.
|
void |
setSide(int side)
Sets the side to track on the node.
|
getNode, setNodelocatePointpublic PBoundsLocator(PNode node, int aSide)
node - node to trackaSide - specified the position on the node to trackpublic static PBoundsLocator createEastLocator(PNode node)
node - node to trackpublic static PBoundsLocator createNorthEastLocator(PNode node)
node - node to trackpublic static PBoundsLocator createNorthWestLocator(PNode node)
node - node to trackpublic static PBoundsLocator createNorthLocator(PNode node)
node - node to trackpublic static PBoundsLocator createSouthLocator(PNode node)
node - node to trackpublic static PBoundsLocator createWestLocator(PNode node)
node - node to trackpublic static PBoundsLocator createSouthWestLocator(PNode node)
node - node to trackpublic static PBoundsLocator createSouthEastLocator(PNode node)
node - node to trackpublic int getSide()
public void setSide(int side)
side - new side to trackpublic double locateX()
locateX in class PNodeLocatorpublic double locateY()
locateY in class PNodeLocatorCopyright © 1995-2012 Piccolo2D. All Rights Reserved.