|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdtypes.PSStack
dtypes.PSPath
Is a subclass of PSStack which represents a Graphics Stack for the postscript interpreter. For this reason, it adds two more fields of type Point, which hold the current position and last move of the pen. Because the action() methods of the path operators need to have access to these fields, the class also provides accessors and transformers for these variables.
| Field Summary |
| Fields inherited from class dtypes.PSStack |
numberElem, v |
| Constructor Summary | |
PSPath()
Creates a new PSPath and initializes its state. |
|
| Method Summary | |
java.awt.Point |
getCurrentPosition()
Returns the currentPosition. |
java.awt.Point |
getLastMove()
Returns the lastMove. |
java.lang.Object |
getObjectAt(int n)
Returns the object held in the stack at the position given. |
void |
setCurrentPosition(java.awt.Point currentPosition)
Changes the current position. |
void |
setLastMove(java.awt.Point lastMove)
Changes the last move. |
| Methods inherited from class dtypes.PSStack |
clear, get, getSize, isEmpty, peek, pop, push |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PSPath()
| Method Detail |
public java.awt.Point getCurrentPosition()
public java.awt.Point getLastMove()
public void setCurrentPosition(java.awt.Point currentPosition)
currentPosition - The new current position.public void setLastMove(java.awt.Point lastMove)
lastMove - The new last move.public java.lang.Object getObjectAt(int n)
n - The position in the stack.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||