|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgoanim.util.Node
algoanim.util.OffsetFromLastPosition
public class OffsetFromLastPosition
This is a concrete kind of a Node. The coordinates are
measured as a displacement from the last node used>.
For example, to place an element 20 pixels to the right and 10 pixels
of the last coordinate referenced, you would use the following:
Node n = new OffsetFromLastPosition(20, 10);
| Constructor Summary | |
|---|---|
OffsetFromLastPosition(int dx,
int dy)
Creates a new Offset instance at a distance of (xCoordinate, yCoordinate) in direction "targetDirection" from the base primitive "reference". |
|
| Method Summary | |
|---|---|
int |
getX()
Returns the x-axis offset. |
int |
getY()
Returns the y-axis offset. |
| Methods inherited from class algoanim.util.Node |
|---|
convertToNode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OffsetFromLastPosition(int dx,
int dy)
dx - the x-axis offset.dy - the y-axis offset.| Method Detail |
|---|
public int getX()
public int getY()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||