public class PAContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.Stack |
dictionaries |
PAEngine |
engine |
protected java.lang.Object |
lastUnknownIdentifier |
java.util.Stack |
operands |
PAPencil |
pencil |
(package private) PAParser |
poorscript |
protected java.util.Random |
randomNumberGenerator |
| Constructor and Description |
|---|
PAContext(java.awt.Component component) |
PAContext(java.awt.Graphics2D g,
java.awt.Dimension size) |
PAContext(PAPencil pencil) |
| Modifier and Type | Method and Description |
|---|---|
void |
collectArray() |
protected java.util.HashMap |
constructGlobalDict() |
protected java.util.HashMap |
constructSystemDict() |
void |
draw(java.io.InputStream inputStream) |
java.lang.Object |
findDictionary(java.lang.Object identifier) |
java.lang.Object |
findIdentifier(java.lang.Object identifier) |
java.lang.Object |
getLastUnknownIdentifier() |
java.lang.Object |
peekOperand() |
double[] |
popNumberOperands(int n) |
java.lang.Object[] |
popOperands(int n) |
public PAPencil pencil
public java.util.Stack dictionaries
public java.util.Stack operands
public PAEngine engine
PAParser poorscript
protected java.util.Random randomNumberGenerator
protected java.lang.Object lastUnknownIdentifier
public PAContext(java.awt.Component component)
public PAContext(java.awt.Graphics2D g,
java.awt.Dimension size)
public PAContext(PAPencil pencil)
public void draw(java.io.InputStream inputStream)
throws PainterException
PainterExceptionpublic java.lang.Object getLastUnknownIdentifier()
public double[] popNumberOperands(int n)
throws PainterException
PainterExceptionpublic java.lang.Object[] popOperands(int n)
throws PainterException
PainterExceptionpublic java.lang.Object peekOperand()
throws PainterException
PainterExceptionpublic java.lang.Object findIdentifier(java.lang.Object identifier)
public java.lang.Object findDictionary(java.lang.Object identifier)
public void collectArray()
throws PainterException
PainterExceptionprotected java.util.HashMap constructGlobalDict()
protected java.util.HashMap constructSystemDict()