pstypes
Interface PSPathOperator

All Superinterfaces:
PSObject, PSOperator
All Known Implementing Classes:
PSArc, PSArct, PSClosepath, PSCurrentpoint, PSLineto, PSMoveto, PSNewpath, PSRlineto, PSRmoveto, PSShow, PSShowpage, PSStroke

public interface PSPathOperator
extends PSOperator

An object that implements this interface is defined as a path operator.

This interface defines the group of path operators.

The implementations of those operators should define the way the graphics are draw in a frame. The implementor must check the type of input,the number of parameters taken as well as the number of operands needed and taken from the stack


Method Summary
 void action(PSStack s, PSPath p)
          Executes the action as it is intented.
 
Methods inherited from interface pstypes.PSOperator
getOperatorToken, isValid
 

Method Detail

action

public void action(PSStack s,
                   PSPath p)
Executes the action as it is intented.

The implementor determines the kind of the drawing that will be held as well as the type of operands needed.

Precondition : A valid stack is given to method as well as the information needed for the drawing.
Postcondition : The implemented action will be executed.

Parameters:
s - The stack where the operands are stored.
p - The path data type containing all the necessery information from the draw