|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoperators.PSShowpage
Implements PSPathOperator interface.
Methods such as getOperatorToken() are inherited from PSPathOperator interface which are inherited from PSOperator. This concrete class is responsible for redrawing everything stored in the Graphics Stack.
| Constructor Summary | |
PSShowpage()
|
|
| Method Summary | |
void |
action(dtypes.PSStack s,
dtypes.PSPath p)
Redraws everything found in the Graphics Stack. |
java.lang.String |
getOperatorToken()
Returns the token identifying this operator. |
boolean |
isValid(dtypes.PSStack s)
Checks if it valid to use this operator now. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PSShowpage()
| Method Detail |
public java.lang.String getOperatorToken()
Returns the name of the operand that this concrete class simulates, here "showpage".
Precondition : A valid operator class has been created.
Postcondition : A string is returned,labeling the semantics of this class.
getOperatorToken in interface pstypes.PSOperator
public boolean isValid(dtypes.PSStack s)
throws exceptions.PSSyntaxException
Showpage can occur any time even with an empty Graphics Stack (with no obvious result).
Precondition : A valid instance of PSStack is given.
Postcondition : A reply to the question whether the operator can perfom its defined behaviour.
isValid in interface pstypes.PSOperators - A reference to an instance of PSStack.
exceptions.PSSyntaxException - The syntax of the token is wrong.
public void action(dtypes.PSStack s,
dtypes.PSPath p)
Showpage will be executed even if the Graphics Stack is empty.
Precondition : A valid Runtime Stack and Graphics Stack are given to method.
Postcondition : All the contents of the Graphics Stack are redrawn.
action in interface pstypes.PSPathOperators - The Runtime Stack which serves no purpose here.p - The Graphics Stack.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||