picasso.parser.language.expressions
Class PicassoString

java.lang.Object
  extended by picasso.parser.language.ExpressionTreeNode
      extended by picasso.parser.language.expressions.PicassoString
All Implemented Interfaces:
EvaluatableExpression

public class PicassoString
extends ExpressionTreeNode

Represents a String (filename) in the Picasso language.

Author:
David Margolies

Constructor Summary
PicassoString(java.lang.String filename)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 RGBColor evaluate(double x, double y)
          Evaluate this expression, given x and y
 Pixmap image()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PicassoString

public PicassoString(java.lang.String filename)
Parameters:
d - must be in range [-1, 1]
Method Detail

image

public Pixmap image()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

evaluate

public RGBColor evaluate(double x,
                         double y)
Description copied from class: ExpressionTreeNode
Evaluate this expression, given x and y

Specified by:
evaluate in interface EvaluatableExpression
Specified by:
evaluate in class ExpressionTreeNode
Returns:
the result of evaluating the expression

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object