|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.piccolox.util.PLocator
edu.umd.cs.piccolox.util.PNodeLocator
edu.umd.cs.piccolox.util.PBoundsLocator
public class PBoundsLocator
PBoundsLocator is a locator that locates points on the bounds of a node.
Field Summary |
---|
Fields inherited from class edu.umd.cs.piccolox.util.PNodeLocator |
---|
node |
Constructor Summary | |
---|---|
PBoundsLocator(PNode node,
int aSide)
Constructs a locator for tracking the position on the node provided. |
Method Summary | |
---|---|
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. |
Methods inherited from class edu.umd.cs.piccolox.util.PNodeLocator |
---|
getNode, setNode |
Methods inherited from class edu.umd.cs.piccolox.util.PLocator |
---|
locatePoint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PBoundsLocator(PNode node, int aSide)
node
- node to trackaSide
- specified the position on the node to trackMethod Detail |
---|
public static PBoundsLocator createEastLocator(PNode node)
node
- node to track
public static PBoundsLocator createNorthEastLocator(PNode node)
node
- node to track
public static PBoundsLocator createNorthWestLocator(PNode node)
node
- node to track
public static PBoundsLocator createNorthLocator(PNode node)
node
- node to track
public static PBoundsLocator createSouthLocator(PNode node)
node
- node to track
public static PBoundsLocator createWestLocator(PNode node)
node
- node to track
public static PBoundsLocator createSouthWestLocator(PNode node)
node
- node to track
public static PBoundsLocator createSouthEastLocator(PNode node)
node
- node to track
public int getSide()
public void setSide(int side)
side
- new side to trackpublic double locateX()
locateX
in class PNodeLocator
public double locateY()
locateY
in class PNodeLocator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |