A B C D E F G I J L M N O P Q R S T U V W X Y 
All Classes All Packages

A

Abs - Class in picasso.parser.language.expressions
Represents the absolute function in the Picasso language.
Abs(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Abs
Creates an absolute function that takes the given expression as a parameter.
AbsAnalyzer - Class in picasso.parser
Handles parsing the Absolute Function.
AbsAnalyzer() - Constructor for class picasso.parser.AbsAnalyzer
 
AbsToken - Class in picasso.parser.tokens.functions
Represents the absolute function token.
AbsToken() - Constructor for class picasso.parser.tokens.functions.AbsToken
 
add(String, Command<Pixmap>) - Method in class picasso.view.ButtonPanel
Add the given Command as a button with the given button text.
add(NamedCommand<Pixmap>) - Method in class picasso.view.ButtonPanel
Add the given Command as a button.
ADD_OR_SUBTRACT - Static variable in interface picasso.parser.tokens.operations.OperationInterface
 
Addition - Class in picasso.parser.language.expressions
Represent the addition function in the Picasso language.
Addition(ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Addition
 
addToHistory(String) - Method in class picasso.view.ButtonPanel
Saves an evaluation after evaluate succeeds
APOSTROPHE - Static variable in class picasso.parser.language.CharConstants
 
Assignment - Class in picasso.parser.language.expressions
Represent the equal operation in the Picasso language.
Assignment(ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Assignment
 
ASSIGNMENT - Static variable in interface picasso.parser.tokens.operations.OperationInterface
 
AssignmentAnalyzer - Class in picasso.parser
Analyzer for the equal operation.
AssignmentAnalyzer() - Constructor for class picasso.parser.AssignmentAnalyzer
 
AssignmentToken - Class in picasso.parser.tokens.operations
Represents a equal sign in the Picasso programming language which is used for assignment For example: a = x+y
AssignmentToken() - Constructor for class picasso.parser.tokens.operations.AssignmentToken
 
Atan - Class in picasso.parser.language.expressions
Represents the arctan function in the Picasso language.
Atan(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Atan
Creates a arctan expression that takes the given expression as a parameter.
AtanAnalyzer - Class in picasso.parser
Handles parsing the Atan Function.
AtanAnalyzer() - Constructor for class picasso.parser.AtanAnalyzer
 
AtanToken - Class in picasso.parser.tokens.functions
Represents the arctan function token.
AtanToken() - Constructor for class picasso.parser.tokens.functions.AtanToken
 

B

BACK_SLASH - Static variable in class picasso.parser.language.CharConstants
 
BANG - Static variable in class picasso.parser.language.CharConstants
 
BinaryFunction - Class in picasso.parser.language.expressions
Represents a function that takes two arguments.
BinaryFunction(ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.BinaryFunction
The constructor.
BinaryOperationAnalyzer - Class in picasso.parser
Abstract class that parses an operation that takes two expressions as parameters.
BinaryOperationAnalyzer() - Constructor for class picasso.parser.BinaryOperationAnalyzer
 
BuiltinFunctionsReader - Class in picasso.parser.language
Handles reading the available built-in functions from a file.
BuiltinFunctionsReader() - Constructor for class picasso.parser.language.BuiltinFunctionsReader
 
ButtonPanel - Class in picasso.view
The collection of commands represented as buttons that apply to the active image.
ButtonPanel(Canvas) - Constructor for class picasso.view.ButtonPanel
Create panel that will update the given picasso.view.

C

Canvas - Class in picasso.view
The canvas on which to present the image.
Canvas(JFrame) - Constructor for class picasso.view.Canvas
 
Canvas(JFrame, String) - Constructor for class picasso.view.Canvas
 
CanvasMouseListener - Class in picasso.view
Listener object for mouse events in the canvas
CanvasMouseListener() - Constructor for class picasso.view.CanvasMouseListener
 
capitalize(String) - Static method in class picasso.parser.tokens.TokenFactory
Capitalizes the first letter in the string
CARET - Static variable in class picasso.parser.language.CharConstants
 
Ceil - Class in picasso.parser.language.expressions
Represents the Ceil function in the Picasso language.
Ceil(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Ceil
Create a ceil expression tree that takes as a parameter the given expression
CeilAnalyzer - Class in picasso.parser
Handles parsing the clamp function.
CeilAnalyzer() - Constructor for class picasso.parser.CeilAnalyzer
 
CeilToken - Class in picasso.parser.tokens.functions
Represents the floor function token
CeilToken() - Constructor for class picasso.parser.tokens.functions.CeilToken
 
CharConstants - Class in picasso.parser.language
Symbolic names for character constants
CharConstants() - Constructor for class picasso.parser.language.CharConstants
 
CharToken - Class in picasso.parser.tokens.chars
A token represented by a single character, e.g., '*', ';', '[' and so on; the method equals compares a CharToken as equal to another CharToken encapsulating the same character.
CharToken(int) - Constructor for class picasso.parser.tokens.chars.CharToken
Represents the given single-character token
CharTokenFactory - Class in picasso.parser.tokens
Factory for generating CharToken objects ensuring that only one of any specific CharToken object is created (enforcing CharToken singleton-ness per char value)
CharTokenFactory() - Constructor for class picasso.parser.tokens.CharTokenFactory
 
clamp() - Method in class picasso.parser.language.expressions.RGBColor
Clamps the color components between COLOR_MIN and COLOR_MAX
clamp(double) - Static method in class picasso.parser.language.expressions.Clamp
Clamps a single value to the range [-1, 1].
clamp(double) - Static method in class picasso.parser.language.expressions.RGBColor
Clamps the value to between COLOR_MIN and COLOR_MAX
Clamp - Class in picasso.parser.language.expressions
Represents the clamp function in the Picasso language.
Clamp(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Clamp
Create a clamp expression tree that takes as a parameter the given expression
ClampAnalyzer - Class in picasso.parser
Handles parsing the clamp function.
ClampAnalyzer() - Constructor for class picasso.parser.ClampAnalyzer
 
ClampToken - Class in picasso.parser.tokens.functions
Represents the clamp function token
ClampToken() - Constructor for class picasso.parser.tokens.functions.ClampToken
 
COLOR_MAX - Static variable in class picasso.parser.language.expressions.RGBColor
 
COLOR_MIN - Static variable in class picasso.parser.language.expressions.RGBColor
 
ColorAnalyzer - Class in picasso.parser
SemanticAnalyzer for an RGB Color
ColorAnalyzer() - Constructor for class picasso.parser.ColorAnalyzer
 
colorEvaluate() - Method in class picasso.parser.language.expressions.RandomPicasso
Randomly generates a color.
ColorToken - Class in picasso.parser.tokens
Represents a color (using double values).
ColorToken(double, double, double) - Constructor for class picasso.parser.tokens.ColorToken
Constructs a token representing the value
COMMA - Static variable in class picasso.parser.language.CharConstants
 
Command<T> - Interface in picasso.util
An abstract command class that operates on some target object.
CommaToken - Class in picasso.parser.tokens.chars
Represents a comma in the Picasso programming language
CommaToken() - Constructor for class picasso.parser.tokens.chars.CommaToken
 
Constant - Class in picasso.parser.language.expressions
Represents a constant in the Picasso language.
Constant(double) - Constructor for class picasso.parser.language.expressions.Constant
Creates a new Constant object that represents the given value
ConstantAnalyzer - Class in picasso.parser
Analyzer for a constant, must be between [-1, 1]
ConstantAnalyzer() - Constructor for class picasso.parser.ConstantAnalyzer
 
Cos - Class in picasso.parser.language.expressions
Represents the cosine function in the Picasso language.
Cos(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Cos
Creates a cosine expression that takes the given expression as a parameter.
COS - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
CosAnalyzer - Class in picasso.parser
Handles parsing the Cos Function.
CosAnalyzer() - Constructor for class picasso.parser.CosAnalyzer
 
CosToken - Class in picasso.parser.tokens.functions
Represents the Cos function token.
CosToken() - Constructor for class picasso.parser.tokens.functions.CosToken
 
createImageFunction(Image, ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.ImageClipAnalyzer
 
createImageFunction(Image, ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.ImageFunctionAnalyzer
Creates the specific image function expression node
createImageFunction(Image, ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.ImageWrapAnalyzer
 
createPerlinFunction(ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.PerlinBWAnalyzer
 
createPerlinFunction(ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.PerlinColorAnalyzer
 
createPerlinFunction(ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.PerlinFunctionAnalyzer
Creates the specific Perlin function expression node

D

DEFAULT_COLOR - Static variable in class picasso.model.Pixmap
 
DEFAULT_NAME - Static variable in class picasso.model.Pixmap
 
DEFAULT_SIZE - Static variable in class picasso.model.Pixmap
 
displayDebug(Point, Pixmap) - Method in class picasso.view.ButtonPanel
 
displayError(String) - Method in class picasso.view.ButtonPanel
 
displayStatus(String) - Method in class picasso.view.ButtonPanel
 
DIVIDE - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
DivideAnalyzer - Class in picasso.parser
Handles parsing the division token.
DivideAnalyzer() - Constructor for class picasso.parser.DivideAnalyzer
 
DivideToken - Class in picasso.parser.tokens.operations
Represents the divide sign token
DivideToken() - Constructor for class picasso.parser.tokens.operations.DivideToken
 
Division - Class in picasso.parser.language.expressions
Represents the division operation in the Picasso language.
Division(ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Division
Create a division operation that takes as two parameters the given expression
DOLLAR - Static variable in class picasso.parser.language.CharConstants
 
DOMAIN_MAX - Static variable in class picasso.view.commands.Evaluator
 
DOMAIN_MIN - Static variable in class picasso.view.commands.Evaluator
 

E

EOFToken - Class in picasso.parser.tokens
This represents an end-of-file token.
EQUAL - Static variable in class picasso.parser.language.CharConstants
 
equals(Object) - Method in class picasso.parser.language.expressions.BinaryFunction
Checks to see if two binary objects are equal.
equals(Object) - Method in class picasso.parser.language.expressions.Constant
Determines if two Constants are equivalent (represent the same value.)
equals(Object) - Method in class picasso.parser.language.expressions.Image
Checks if this Image equals another object
equals(Object) - Method in class picasso.parser.language.expressions.ImageFunction
Checks if this ImageFunction equals another object
equals(Object) - Method in class picasso.parser.language.expressions.NoArgumentFunction
Checks if the given functions are equal.
equals(Object) - Method in class picasso.parser.language.expressions.PerlinFunction
Checks if this Perlin function equals another object
equals(Object) - Method in class picasso.parser.language.expressions.RGBColor
 
equals(Object) - Method in class picasso.parser.language.expressions.UnaryFunction
Checks if the given functions are equal.
equals(Object) - Method in class picasso.parser.language.expressions.Variable
 
equals(Object) - Method in class picasso.parser.language.expressions.X
 
equals(Object) - Method in class picasso.parser.language.expressions.Y
 
equals(Object) - Method in class picasso.parser.tokens.chars.CharToken
 
equals(Object) - Method in class picasso.parser.tokens.ColorToken
 
equals(Object) - Method in class picasso.parser.tokens.EOFToken
 
equals(Object) - Method in class picasso.parser.tokens.functions.FunctionToken
 
equals(Object) - Method in class picasso.parser.tokens.IdentifierToken
 
equals(Object) - Method in class picasso.parser.tokens.ImageToken
Checks if this token equals another object
equals(Object) - Method in class picasso.parser.tokens.NumberToken
 
ERROR_TOLERANCE - Static variable in class picasso.parser.language.expressions.RGBColor
for testing
EvaluatableExpression - Interface in picasso.parser.language
Classes that implement this interface can be evaluated for the image.
evaluate(double, double) - Method in interface picasso.parser.language.EvaluatableExpression
 
evaluate(double, double) - Method in class picasso.parser.language.expressions.Abs
Evaluates this expression at the given x and y points by evaluating the absolute value of the given function's parameters.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Addition
 
evaluate(double, double) - Method in class picasso.parser.language.expressions.Assignment
 
evaluate(double, double) - Method in class picasso.parser.language.expressions.Atan
Evaluates the expression at the given x and y coordinates by evaluating the arctan of the function's parameters.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Ceil
Evaluates this expression at the given x,y point by evaluating the ceil of the function's parameter.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Clamp
Evaluates this expression at the given x,y point by evaluating the clamp of the function's parameter.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Constant
The constant is like an RGB Color with the constant as each component.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Cos
Evaluates the expression at the given x and y coordinates by evaluating the cosine of the function's parameters.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Division
Evaluates this expression at the given x,y point by evaluating the division of the operation's parameters.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Exp
Evaluates the expression at the given x and y coordinates by evaluating the exponent of the function's parameters.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Exponentiation
Evaluates this expression at the given x,y point by evaluating the exponentiation of the operation's parameter.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Floor
Evaluates this expression at the given x,y point by evaluating the floor of the function's parameter.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Image
Evaluates the image at a specific (x, y) coordinate and returns the RGB color
evaluate(double, double) - Method in class picasso.parser.language.expressions.ImageClip
Evaluates the ImageClip expression at a specific (x, y) coordinate
evaluate(double, double) - Method in class picasso.parser.language.expressions.ImageWrap
Evaluates the ImageWrap expression at a specific (x, y) coordinate
evaluate(double, double) - Method in class picasso.parser.language.expressions.Log
Evaluates the expression at the given x and y coordinates by evaluating the log of the function's parameters.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Modulo
Evaluates this expression at the given x,y point by evaluating the modulo of the operation's parameters.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Multiplication
Evaluates this expression at the given x,y point by evaluating the multiplication of the operation's parameters.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Negation
Evaluates this expression at the given x,y point by evaluating the negation of the function's parameter.
evaluate(double, double) - Method in class picasso.parser.language.expressions.PerlinBW
Evaluates the perlinBW function at the given x, y coordinates The way this works is by evaluating the two expressions at the given x, y coordinates and then using the noise function to generate a grayscale color
evaluate(double, double) - Method in class picasso.parser.language.expressions.PerlinColor
Evaluates the perlinColor function at the given x, y coordinates The way this works is by evaluating the two expressions at the given x, y coordinates and then using the noise function to generate a color.
evaluate(double, double) - Method in class picasso.parser.language.expressions.RandomPicasso
Evaluates the expression at the given x and y coordinates by assigning the same random color to each x and y coordinate.
evaluate(double, double) - Method in class picasso.parser.language.expressions.RGBColor
Returns this color
evaluate(double, double) - Method in class picasso.parser.language.expressions.RgbToYCrCb
Evaluates the expression at the given x and y coordinates by converting RGB to luminance/chrominance space.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Sin
Evaluates this expression at the given x,y point by evaluating the sine of the function's parameter.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Subtraction
 
evaluate(double, double) - Method in class picasso.parser.language.expressions.Tan
Evaluates the expression at the given x and y coordinates by evaluating the tangent of the function's parameters.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Variable
 
evaluate(double, double) - Method in class picasso.parser.language.expressions.Wrap
 
evaluate(double, double) - Method in class picasso.parser.language.expressions.X
Returns the color represented by x.
evaluate(double, double) - Method in class picasso.parser.language.expressions.Y
Returns the color represented by y.
evaluate(double, double) - Method in class picasso.parser.language.expressions.YCrCbToRGB
Evaluates the expression at the given x and y coordinates by converting to RGB from luminance/chrominance space.
evaluate(double, double) - Method in class picasso.parser.language.ExpressionTreeNode
Evaluate this expression, given x and y
evaluate(RGBColor, RGBColor) - Method in enum picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
Evaluator - Class in picasso.view.commands
Evaluate an expression for each pixel in a image.
Evaluator(ButtonPanel) - Constructor for class picasso.view.commands.Evaluator
 
execute(Pixmap) - Method in class picasso.view.commands.Evaluator
Evaluate an expression for each point in the image.
execute(Pixmap) - Method in class picasso.view.commands.FileReader
Prompts the user for a file to read from and then inputs the expression from that file into the ButtonPanel object and evaluates it.
execute(Pixmap) - Method in class picasso.view.commands.LearningEvaluator
 
execute(Pixmap) - Method in class picasso.view.commands.RandomExpressionCommand
Generates a random expression, displays it, and evaluates it
execute(Pixmap) - Method in class picasso.view.commands.Reader
Displays the image file on the given target.
execute(Pixmap) - Method in class picasso.view.commands.StringExpressionCommand
Prompts user for text, generates expression, displays it, and evaluates it
execute(Pixmap) - Method in class picasso.view.commands.Writer
 
execute(T) - Method in interface picasso.util.Command
Implementations determine how to update the given target object
execute(T) - Method in class picasso.util.NamedCommand
Run the given command.
execute(T) - Method in class picasso.util.ThreadedCommand
Run the command on the target or cancel it if is already running.
Exp - Class in picasso.parser.language.expressions
Represents the exponent function in the Picasso language, which raises the Euler function (e) to the given parameter.
Exp(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Exp
Creates an exponent function that takes the given expression as a parameter.
ExpAnalyzer - Class in picasso.parser
Handles parsing the Exp Function.
ExpAnalyzer() - Constructor for class picasso.parser.ExpAnalyzer
 
EXPONENTIATE - Static variable in interface picasso.parser.tokens.operations.OperationInterface
 
ExponentiateAnalyzer - Class in picasso.parser
Handles parsing the Exponentiation token.
ExponentiateAnalyzer() - Constructor for class picasso.parser.ExponentiateAnalyzer
 
ExponentiateToken - Class in picasso.parser.tokens.operations
Represents the exponentiate sign token
ExponentiateToken() - Constructor for class picasso.parser.tokens.operations.ExponentiateToken
 
Exponentiation - Class in picasso.parser.language.expressions
Represents the exponentiation operation in the Picasso language.
Exponentiation(ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Exponentiation
Create a exponentiation operation that takes as a parameter the given expression
ExpressionTreeGenerator - Class in picasso.parser
Parses a string into an expression tree based on rules for arithmetic.
ExpressionTreeGenerator() - Constructor for class picasso.parser.ExpressionTreeGenerator
 
ExpressionTreeNode - Class in picasso.parser.language
All elements of the language (e.g., that make up ExpressionTree) should extend ExpressionTreeNode.
ExpressionTreeNode() - Constructor for class picasso.parser.language.ExpressionTreeNode
 
ExpToken - Class in picasso.parser.tokens.functions
Represents the Exp function token.
ExpToken() - Constructor for class picasso.parser.tokens.functions.ExpToken
 

F

FileCommand<T> - Class in picasso.util
An abstract command that allows access to the file system through a JFileChooser dialog box.
FileCommand(int) - Constructor for class picasso.util.FileCommand
Create command that will pop-up the given type of JFileChooser dialog
FileReader - Class in picasso.view.commands
This class supports reading expressions directly from a file and evaluating them.
FileReader(ButtonPanel, Evaluator) - Constructor for class picasso.view.commands.FileReader
Constructs a new FileReader object that can read text from a file into a ButtonPanel object
firstExpression - Variable in class picasso.parser.language.expressions.PerlinFunction
 
Floor - Class in picasso.parser.language.expressions
Represents the floor function in the Picasso language.
Floor(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Floor
Create a floor expression tree that takes as a parameter the given expression
FloorAnalyzer - Class in picasso.parser
Handles parsing the floor function.
FloorAnalyzer() - Constructor for class picasso.parser.FloorAnalyzer
 
FloorToken - Class in picasso.parser.tokens.functions
Represents the floor function token
FloorToken() - Constructor for class picasso.parser.tokens.functions.FloorToken
 
Frame - Class in picasso.view
Main container for the Picasso application
Frame(Dimension) - Constructor for class picasso.view.Frame
 
FunctionToken - Class in picasso.parser.tokens.functions
Parent class for Tokens that represent functions.
FunctionToken(String) - Constructor for class picasso.parser.tokens.functions.FunctionToken
 

G

gelementsToValue - Static variable in class picasso.parser.language.ExpressionTreeNode
 
generate() - Method in class picasso.generator.RandomExpressionGenerator
Generates a random expression with a randomly determined depth (1-15)
generate(String) - Method in class picasso.generator.StringExpressionGenerator
Generates an expression based on the input string The same string will always produce the same expression
generateExpression(int) - Method in class picasso.generator.RandomExpressionGenerator
Generates a random expression with the given depth
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.AssignmentAnalyzer
Specifies expression tree generation for assignment operator It is used to assign values like var=x+y
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.BinaryOperationAnalyzer
 
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.ColorAnalyzer
 
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.ConstantAnalyzer
 
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.IdentifierAnalyzer
Returns the expression tree associated with a variable given it exists Otherwise raises a Picasso user exception
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.ImageAnalyzer
Generate an expression tree from a stack of tokens containing an ImageToken
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.ImageFunctionAnalyzer
Parses tokens into an image function expression
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.NoArgumentFunctionAnalyzer
 
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.PerlinFunctionAnalyzer
Parses tokens into a Perlin function expression
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.SemanticAnalyzer
From a stack of tokens in postfix order, creates an expression tree
generateExpressionTree(Stack<Token>) - Method in interface picasso.parser.SemanticAnalyzerInterface
 
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.UnaryFunctionAnalyzer
 
generateExpressionTree(Stack<Token>) - Method in class picasso.parser.UnaryOperationAnalyzer
 
getBlue() - Method in class picasso.parser.language.expressions.RGBColor
Returns the amount of blue, between COLOR_MIN and COLOR_MAX
getBlue() - Method in class picasso.parser.tokens.ColorToken
 
getBufferedImage() - Method in class picasso.parser.language.expressions.Image
Gets the BufferedImage object
getButtonPanel() - Static method in class picasso.view.Frame
 
getCanvas() - Static method in class picasso.view.Frame
 
getColor() - Method in class picasso.parser.language.expressions.RandomPicasso
Getter method that returns the value of color.
getColor(int, int) - Method in class picasso.model.Pixmap
Returns the color of the pixel at the given (x,y) coordinate if the coordinate is within the bounds of the image; otherwise returns the default color
getErrorText() - Method in class picasso.view.ButtonPanel
Getter for testing the status label text
getExpressionText() - Method in class picasso.view.ButtonPanel
Getter for the text input of the expression field
getFilename() - Method in class picasso.parser.language.expressions.Image
Gets the filename of this image
getFileName() - Method in class picasso.util.FileCommand
Pops up the appropriate file dialog box.
getFirstExpression() - Method in class picasso.parser.language.expressions.PerlinFunction
Returns the first expression parameter
getFunctionName() - Method in class picasso.parser.ImageClipAnalyzer
 
getFunctionName() - Method in class picasso.parser.ImageFunctionAnalyzer
Returns the name of this function for error messages.
getFunctionName() - Method in class picasso.parser.ImageWrapAnalyzer
 
getFunctionsList() - Static method in class picasso.parser.language.BuiltinFunctionsReader
Get the list of built-in function names
getGenerator() - Method in class picasso.generator.StringExpressionGenerator
Gets the underlying RandomExpressionGenerator
getGreen() - Method in class picasso.parser.language.expressions.RGBColor
Returns the amount of green, between COLOR_MIN and COLOR_MAX
getGreen() - Method in class picasso.parser.tokens.ColorToken
 
getIdToexpression(String) - Static method in class picasso.parser.IdentifierAnalyzer
Method to get the expression associated with a variable.
getImage() - Method in class picasso.parser.language.expressions.ImageFunction
Returns the image used by this function
getImageFunctions() - Static method in class picasso.generator.RandomExpressionGenerator
Returns imageFunctions.
getInstance() - Static method in class picasso.parser.ConstantAnalyzer
 
getInstance() - Static method in class picasso.parser.SemanticAnalyzer
Make sure that there is only one semantic analyzer for the application.
getInstance() - Static method in class picasso.parser.tokens.EOFToken
 
getName() - Method in class picasso.model.Pixmap
Returns the name of the image
getName() - Method in class picasso.parser.language.expressions.Variable
 
getName() - Method in class picasso.parser.tokens.IdentifierToken
Returns the identifier's name
getName() - Method in class picasso.util.NamedCommand
Returns name of this command.
getNoArgFunctions() - Static method in class picasso.generator.RandomExpressionGenerator
Returns noArgFunctions.
getOperations() - Static method in class picasso.generator.RandomExpressionGenerator
Returns operations.
getPixmap() - Method in class picasso.view.Canvas
 
getRed() - Method in class picasso.parser.language.expressions.RGBColor
Returns the amount of red, between COLOR_MIN and COLOR_MAX
getRed() - Method in class picasso.parser.tokens.ColorToken
 
getSecondExpression() - Method in class picasso.parser.language.expressions.PerlinFunction
Returns the second expression parameter
getSemanticParser() - Method in class picasso.parser.Tokenizer
 
getSize() - Method in class picasso.model.Pixmap
 
getStatusLabel() - Method in class picasso.view.ButtonPanel
Getter for testing the status label Jlabel object
getSteps() - Method in class picasso.parser.LearningExpressionTreeGenerator
Returns all steps taken from conversions
getToken() - Method in class picasso.parser.Tokenizer
 
getToken(int) - Static method in class picasso.parser.tokens.CharTokenFactory
 
getUnaryFunctions() - Static method in class picasso.generator.RandomExpressionGenerator
Returns unaryFunctions.
getValue() - Method in class picasso.parser.language.expressions.Constant
Returns the value of the constant
getValue() - Method in class picasso.parser.tokens.ImageToken
Gets the filename value of this image token
getXExpression() - Method in class picasso.parser.language.expressions.ImageFunction
Returns the x-coordinate expression
getYExpression() - Method in class picasso.parser.language.expressions.ImageFunction
Returns the y-coordinate expression

I

IdentifierAnalyzer - Class in picasso.parser
Handle an identifier token
IdentifierAnalyzer() - Constructor for class picasso.parser.IdentifierAnalyzer
 
IdentifierToken - Class in picasso.parser.tokens
Represents an identifier (a variable name)
IdentifierToken(String) - Constructor for class picasso.parser.tokens.IdentifierToken
 
image - Variable in class picasso.parser.language.expressions.ImageFunction
 
Image - Class in picasso.parser.language.expressions
Represents an image in the Picasso language This class loads an image from a file and provides a method to evaluate colors at specific coordinates.
Image(String) - Constructor for class picasso.parser.language.expressions.Image
Constructs an Image object from a filename string.
ImageAnalyzer - Class in picasso.parser
Handles parsing image tokens (strings representing image filenames)
ImageAnalyzer() - Constructor for class picasso.parser.ImageAnalyzer
 
ImageClip - Class in picasso.parser.language.expressions
Represents an image clipping expression in the Picasso language
ImageClip(Image, ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.ImageClip
Constructs an ImageClip expression with the specified image and expressions
ImageClipAnalyzer - Class in picasso.parser
Handles parsing of the imageClip function in the Picasso language
ImageClipAnalyzer() - Constructor for class picasso.parser.ImageClipAnalyzer
 
ImageClipToken - Class in picasso.parser.tokens.functions
Represents the imageClip function token in the Picasso language
ImageClipToken() - Constructor for class picasso.parser.tokens.functions.ImageClipToken
Constructs an imageClip token.
ImageFunction - Class in picasso.parser.language.expressions
Abstract base class for functions that operate on images (imageWrap, imageClip, etc.)
ImageFunction(Image, ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.ImageFunction
Constructs an ImageFunction with the specified image and expressions
ImageFunctionAnalyzer - Class in picasso.parser
Abstract base class for parsing functions that operate on images (imageWrap, imageClip, etc.)
ImageFunctionAnalyzer() - Constructor for class picasso.parser.ImageFunctionAnalyzer
 
imageToDomainScale(int, int) - Method in class picasso.view.commands.Evaluator
Convert from image space to domain space.
ImageToken - Class in picasso.parser.tokens
Represents an image filename token in the Picasso language
ImageToken(String) - Constructor for class picasso.parser.tokens.ImageToken
Constructs a token representing an image filename
ImageWrap - Class in picasso.parser.language.expressions
Represents an image wrapping expression in the Picasso language
ImageWrap(Image, ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.ImageWrap
Constructs an ImageWrap expression with the specified image and coordinate expressions
ImageWrapAnalyzer - Class in picasso.parser
Handles parsing of the imageWrap function in the Picasso language
ImageWrapAnalyzer() - Constructor for class picasso.parser.ImageWrapAnalyzer
 
ImageWrapToken - Class in picasso.parser.tokens.functions
Represents the imageWrap function token in the Picasso language
ImageWrapToken() - Constructor for class picasso.parser.tokens.functions.ImageWrapToken
Constructs an imageWrap token.
ImprovedNoise - Class in picasso.model
JAVA REFERENCE IMPLEMENTATION OF IMPROVED NOISE - COPYRIGHT 2002 KEN PERLIN.
ImprovedNoise() - Constructor for class picasso.model.ImprovedNoise
 
infixToPostfix(String) - Method in class picasso.parser.ExpressionTreeGenerator
This method converts the String infix expression to a Stack of tokens, which are in postfix.
INVERT - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
isAllowRandom() - Method in class picasso.generator.RandomExpressionGenerator
Returns whether random() is allowed in generated expressions
isConstant() - Method in class picasso.parser.tokens.chars.CharToken
 
isConstant() - Method in class picasso.parser.tokens.ColorToken
 
isConstant() - Method in class picasso.parser.tokens.EOFToken
 
isConstant() - Method in class picasso.parser.tokens.functions.FunctionToken
 
isConstant() - Method in class picasso.parser.tokens.IdentifierToken
 
isConstant() - Method in class picasso.parser.tokens.ImageToken
Checks if this token is a constant
isConstant() - Method in class picasso.parser.tokens.NumberToken
 
isConstant() - Method in class picasso.parser.tokens.Token
Returns true if this token represents a constant, false otherwise
isFunction() - Method in class picasso.parser.tokens.chars.CharToken
 
isFunction() - Method in class picasso.parser.tokens.ColorToken
 
isFunction() - Method in class picasso.parser.tokens.EOFToken
 
isFunction() - Method in class picasso.parser.tokens.functions.FunctionToken
 
isFunction() - Method in class picasso.parser.tokens.IdentifierToken
 
isFunction() - Method in class picasso.parser.tokens.ImageToken
Checks if this token is a function
isFunction() - Method in class picasso.parser.tokens.NumberToken
 
isFunction() - Method in class picasso.parser.tokens.Token
Returns true if this token represents a function, false otherwise
isInBounds(int, int) - Method in class picasso.model.Pixmap
Determine if the given (x,y) coordinate is within the bounds of this image.
isValidValue(double) - Static method in class picasso.parser.tokens.ColorToken
 

J

JAVA_COLOR_MAX - Static variable in class picasso.parser.language.expressions.RGBColor
 

L

LearningDisplay - Class in picasso.view
Displays Infix to post fix conversion steps in a new scrollable window
LearningDisplay() - Constructor for class picasso.view.LearningDisplay
 
LearningEvaluator - Class in picasso.view.commands
Command to display learning mode showing infix to postfix conversion
LearningEvaluator(ButtonPanel) - Constructor for class picasso.view.commands.LearningEvaluator
 
LearningExpressionTreeGenerator - Class in picasso.parser
Version of ExpressionTreeGenerator that saves all steps the algo takes when converting infix to postfix.
LearningExpressionTreeGenerator() - Constructor for class picasso.parser.LearningExpressionTreeGenerator
 
LEFT_BRACKET - Static variable in class picasso.parser.language.CharConstants
 
LEFT_PAREN - Static variable in class picasso.parser.language.CharConstants
 
LeftBracketToken - Class in picasso.parser.tokens.chars
Represents a left bracket in the Picasso programming language
LeftBracketToken() - Constructor for class picasso.parser.tokens.chars.LeftBracketToken
 
LeftParenToken - Class in picasso.parser.tokens.chars
Represents a left parenthesis in the Picasso programming language
LeftParenToken() - Constructor for class picasso.parser.tokens.chars.LeftParenToken
 
Log - Class in picasso.parser.language.expressions
Represents the log function in the Picasso language.
Log(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Log
Creates a log expression that takes the given expression as a parameter.
LogAnalyzer - Class in picasso.parser
Handles parsing the Log Function.
LogAnalyzer() - Constructor for class picasso.parser.LogAnalyzer
 
LogToken - Class in picasso.parser.tokens.functions
Represents the Log function token.
LogToken() - Constructor for class picasso.parser.tokens.functions.LogToken
 

M

main(String[]) - Static method in class picasso.Main
 
main(String[]) - Static method in class picasso.parser.Tokenizer
 
Main - Class in picasso
Starting point for Picasso.
Main() - Constructor for class picasso.Main
 
makeExpression(String) - Method in class picasso.parser.ExpressionTreeGenerator
Converts the given string into expression tree for easier manipulation.
match(Token) - Method in class picasso.parser.Tokenizer
Try to match a token.
MINUS - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
MINUS - Static variable in class picasso.parser.language.CharConstants
 
MinusAnalyzer - Class in picasso.parser
Handles parsing the subtraction token.
MinusAnalyzer() - Constructor for class picasso.parser.MinusAnalyzer
 
MinusToken - Class in picasso.parser.tokens.operations
Represents the minus sign token
MinusToken() - Constructor for class picasso.parser.tokens.operations.MinusToken
 
MOD - Static variable in class picasso.parser.language.CharConstants
 
Modulo - Class in picasso.parser.language.expressions
Represents the modulo operation in the Picasso language.
Modulo(ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Modulo
Create a modulo expression that takes as two parameters the given expression
ModuloAnalyzer - Class in picasso.parser
Handles parsing the Module token.
ModuloAnalyzer() - Constructor for class picasso.parser.ModuloAnalyzer
 
ModuloToken - Class in picasso.parser.tokens.operations
Represents the mod sign token
ModuloToken() - Constructor for class picasso.parser.tokens.operations.ModuloToken
 
mouseClicked(MouseEvent) - Method in class picasso.view.CanvasMouseListener
 
mouseEntered(MouseEvent) - Method in class picasso.view.CanvasMouseListener
 
mouseExited(MouseEvent) - Method in class picasso.view.CanvasMouseListener
 
mousePressed(MouseEvent) - Method in class picasso.view.CanvasMouseListener
 
mouseReleased(MouseEvent) - Method in class picasso.view.CanvasMouseListener
 
Multiplication - Class in picasso.parser.language.expressions
Represents the multiplication operation in the Picasso language.
Multiplication(ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Multiplication
Create a multiplication expression that takes as a parameter the given expression
MULTIPLY_OR_DIVIDE_OR_MOD - Static variable in interface picasso.parser.tokens.operations.OperationInterface
 

N

NamedCommand<T> - Class in picasso.util
A command with a name (e.g., to display on a button)
NamedCommand(String, Command<T>) - Constructor for class picasso.util.NamedCommand
Create command with a name and an action.
Negation - Class in picasso.parser.language.expressions
Represents the Negation operator in the Picasso language.
Negation(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Negation
Create a negation expression tree that takes as a parameter the given expression
NEGATION - Static variable in interface picasso.parser.tokens.operations.OperationInterface
 
NegationAnalyzer - Class in picasso.parser
Handles parsing the plus or "addition function".
NegationAnalyzer() - Constructor for class picasso.parser.NegationAnalyzer
 
NegationToken - Class in picasso.parser.tokens.operations
Represents the negation token
NegationToken() - Constructor for class picasso.parser.tokens.operations.NegationToken
 
newBinaryNode(ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.BinaryOperationAnalyzer
Abstract method that allows child classes to provide the expression tree nodes for the binary operator.
newBinaryNode(ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.DivideAnalyzer
Specifies how to generate a new node for Divide
newBinaryNode(ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.ExponentiateAnalyzer
Specifies how to generate a new node for Exponentiate
newBinaryNode(ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.MinusAnalyzer
Specifies how to generate a new node for Subtraction
newBinaryNode(ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.ModuloAnalyzer
Specifies how to generate a new node for Modulo operation
newBinaryNode(ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.PlusAnalyzer
Specifies how to generate a new node for Addition
newBinaryNode(ExpressionTreeNode, ExpressionTreeNode) - Method in class picasso.parser.TimesAnalyzer
Specifies how to generate a new node for multiplication
newNode() - Method in class picasso.parser.NoArgumentFunctionAnalyzer
Abstract methods that allows child classes to provide the expression tree node for the no argument function.
newNode() - Method in class picasso.parser.RandomAnalyzer
Provides an expression tree node of the random function.
newNode(ExpressionTreeNode) - Method in class picasso.parser.AbsAnalyzer
Specifies how to generate a new node for Absolute function
newNode(ExpressionTreeNode) - Method in class picasso.parser.AtanAnalyzer
Creates the expression tree node for the Atan function.
newNode(ExpressionTreeNode) - Method in class picasso.parser.CeilAnalyzer
Specifies how to generate a new node for Ceil
newNode(ExpressionTreeNode) - Method in class picasso.parser.ClampAnalyzer
Specifies how to generate a new node for Clamp
newNode(ExpressionTreeNode) - Method in class picasso.parser.CosAnalyzer
Creates the expression tree node for the Cos function.
newNode(ExpressionTreeNode) - Method in class picasso.parser.ExpAnalyzer
Creates the expression tree node for the Exp function.
newNode(ExpressionTreeNode) - Method in class picasso.parser.FloorAnalyzer
Specifies how to generate a new node for Floor unary function
newNode(ExpressionTreeNode) - Method in class picasso.parser.LogAnalyzer
Creates the expression tree node for the Log function.
newNode(ExpressionTreeNode) - Method in class picasso.parser.RgbToYCrCbAnalyzer
Creates an expression tree node for the RgbToYCrCb function.
newNode(ExpressionTreeNode) - Method in class picasso.parser.SinAnalyzer
Specifies how to generate a new node for sin unary function
newNode(ExpressionTreeNode) - Method in class picasso.parser.TanAnalyzer
Creates the expression tree node for the Tan function.
newNode(ExpressionTreeNode) - Method in class picasso.parser.UnaryFunctionAnalyzer
Abstract method that allows child classes to provide the expression tree node for the unary function.
newNode(ExpressionTreeNode) - Method in class picasso.parser.WrapAnalyzer
Specifies how to generate a new node for wrap unary function
newNode(ExpressionTreeNode) - Method in class picasso.parser.YCrCbToRGBAnalyzer
Creates an expression tree node for the YCrCbToRGB function.
newUnaryNode(ExpressionTreeNode) - Method in class picasso.parser.NegationAnalyzer
 
newUnaryNode(ExpressionTreeNode) - Method in class picasso.parser.UnaryOperationAnalyzer
Abstract method that allows child classes to provide the expression tree nodes for the unary operator.
nextToken() - Method in class picasso.parser.Tokenizer
get the next token and store it for retrieval by getToken()
NoArgumentFunction - Class in picasso.parser.language.expressions
Represents a function that takes no arguments.
NoArgumentFunction() - Constructor for class picasso.parser.language.expressions.NoArgumentFunction
 
NoArgumentFunctionAnalyzer - Class in picasso.parser
Abstract class that parses a function that takes no expressions as parameters.
NoArgumentFunctionAnalyzer() - Constructor for class picasso.parser.NoArgumentFunctionAnalyzer
 
noise(double, double, double) - Static method in class picasso.model.ImprovedNoise
 
NumberToken - Class in picasso.parser.tokens
Represents a number (using double values).
NumberToken(double) - Constructor for class picasso.parser.tokens.NumberToken
Constructs a token representing value

O

onStep(String) - Method in class picasso.parser.ExpressionTreeGenerator
Used by LearningExpressionTreeGenerator to parse a step
onStep(String) - Method in class picasso.parser.LearningExpressionTreeGenerator
Parses a step in the program so that we display it appropriately in the learning window
OperationInterface - Interface in picasso.parser.tokens.operations
A marker interface
orderOfOperation() - Method in class picasso.parser.tokens.operations.AssignmentToken
 
orderOfOperation() - Method in class picasso.parser.tokens.operations.DivideToken
 
orderOfOperation() - Method in class picasso.parser.tokens.operations.ExponentiateToken
 
orderOfOperation() - Method in class picasso.parser.tokens.operations.MinusToken
 
orderOfOperation() - Method in class picasso.parser.tokens.operations.ModuloToken
 
orderOfOperation() - Method in class picasso.parser.tokens.operations.NegationToken
 
orderOfOperation() - Method in interface picasso.parser.tokens.operations.OperationInterface
 
orderOfOperation() - Method in class picasso.parser.tokens.operations.PlusToken
 
orderOfOperation() - Method in class picasso.parser.tokens.operations.TimesToken
 

P

paint(Graphics) - Method in class picasso.model.Pixmap
 
paintComponent(Graphics) - Method in class picasso.view.Canvas
 
parse(StreamTokenizer) - Static method in class picasso.parser.tokens.TokenFactory
 
parseTokens(String) - Method in class picasso.parser.Tokenizer
Parses the given string into a list of Picasso tokens (in order)
PERIOD - Static variable in class picasso.parser.language.CharConstants
 
PerlinBW - Class in picasso.parser.language.expressions
Represents the perlinBW function in the Picasso language
PerlinBW(ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.PerlinBW
Creates a PerlinBW expression with two parameter expressions
PERLINBW - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
PerlinBWAnalyzer - Class in picasso.parser
Handles parsing the perlinBW function
PerlinBWAnalyzer() - Constructor for class picasso.parser.PerlinBWAnalyzer
 
PerlinBWToken - Class in picasso.parser.tokens.functions
Represents the perlinBW function token
PerlinBWToken() - Constructor for class picasso.parser.tokens.functions.PerlinBWToken
Constructs a new PerlinBWToken.
PerlinColor - Class in picasso.parser.language.expressions
Represents the perlinColor function in the Picasso language
PerlinColor(ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.PerlinColor
Creates a PerlinColor expression with two parameter expressions
PERLINCOLOR - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
PerlinColorAnalyzer - Class in picasso.parser
Handles parsing the perlinColor function
PerlinColorAnalyzer() - Constructor for class picasso.parser.PerlinColorAnalyzer
 
PerlinColorToken - Class in picasso.parser.tokens.functions
Represents the perlinColor function token
PerlinColorToken() - Constructor for class picasso.parser.tokens.functions.PerlinColorToken
Constructs a new PerlinColorToken.
PerlinFunction - Class in picasso.parser.language.expressions
Abstract base class for Perlin noise functions
PerlinFunction(ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.PerlinFunction
Creates a PerlinFunction with two parameter expressions
PerlinFunctionAnalyzer - Class in picasso.parser
Abstract base class for parsing Perlin noise functions
PerlinFunctionAnalyzer() - Constructor for class picasso.parser.PerlinFunctionAnalyzer
 
picasso - package picasso
 
picasso.generator - package picasso.generator
 
picasso.model - package picasso.model
 
picasso.parser - package picasso.parser
 
picasso.parser.language - package picasso.parser.language
 
picasso.parser.language.expressions - package picasso.parser.language.expressions
 
picasso.parser.tokens - package picasso.parser.tokens
 
picasso.parser.tokens.chars - package picasso.parser.tokens.chars
 
picasso.parser.tokens.functions - package picasso.parser.tokens.functions
 
picasso.parser.tokens.operations - package picasso.parser.tokens.operations
 
picasso.util - package picasso.util
 
picasso.view - package picasso.view
 
picasso.view.commands - package picasso.view.commands
 
PicassoUserException - Exception in picasso.parser
Describe an exception that occurred during parsing.
PicassoUserException(String) - Constructor for exception picasso.parser.PicassoUserException
 
Pixmap - Class in picasso.model
Class for manipulating graphics images, originally developed in C++.
Pixmap() - Constructor for class picasso.model.Pixmap
Create a default pixmap (300x300 black)
Pixmap(int, int) - Constructor for class picasso.model.Pixmap
Create a black pixmap with given width and height
Pixmap(int, int, Color) - Constructor for class picasso.model.Pixmap
Create a pixmap with given width and height and filled with given initial color
Pixmap(Dimension) - Constructor for class picasso.model.Pixmap
Create a black pixmap with given size
Pixmap(String) - Constructor for class picasso.model.Pixmap
Create a pixmap from the given local file
Pixmap(Pixmap) - Constructor for class picasso.model.Pixmap
Create this image as a copy of the given image
PLUS - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
PLUS - Static variable in class picasso.parser.language.CharConstants
 
PlusAnalyzer - Class in picasso.parser
Handles parsing the plus or "addition function".
PlusAnalyzer() - Constructor for class picasso.parser.PlusAnalyzer
 
PlusToken - Class in picasso.parser.tokens.operations
Represents the plus sign token
PlusToken() - Constructor for class picasso.parser.tokens.operations.PlusToken
 

Q

QUESTION - Static variable in class picasso.parser.language.CharConstants
 
QUOTE - Static variable in class picasso.parser.language.CharConstants
 

R

RandomAnalyzer - Class in picasso.parser
Handles parsing the random function.
RandomAnalyzer() - Constructor for class picasso.parser.RandomAnalyzer
 
RandomExpressionCommand - Class in picasso.view.commands
Command that generates a random Picasso expression and evaluates it
RandomExpressionCommand(ButtonPanel, Evaluator) - Constructor for class picasso.view.commands.RandomExpressionCommand
Creates a new RandomExpressionCommand
RandomExpressionGenerator - Class in picasso.generator
Generates random Picasso expressions
RandomExpressionGenerator() - Constructor for class picasso.generator.RandomExpressionGenerator
Creates a RandomExpressionGenerator with a random seed
RandomExpressionGenerator(long) - Constructor for class picasso.generator.RandomExpressionGenerator
Creates a RandomExpressionGenerator with a specific seed Same seed will produce the same sequence of expressions
RandomExpressionGenerator(long, boolean) - Constructor for class picasso.generator.RandomExpressionGenerator
Creates a RandomExpressionGenerator with a specific seed and random control
RandomPicasso - Class in picasso.parser.language.expressions
Represents the random function in the Picasso language, which takes no parameters and returns a random, solid color.
RandomPicasso() - Constructor for class picasso.parser.language.expressions.RandomPicasso
Constructor for RandomPicasso.
RandomToken - Class in picasso.parser.tokens.functions
Represents the random function token.
RandomToken() - Constructor for class picasso.parser.tokens.functions.RandomToken
Creates a token for the random function.
read(String) - Method in class picasso.model.Pixmap
Read the image named by fileName
Reader - Class in picasso.view.commands
Open the chosen image file and display in the Pixmap target.
Reader() - Constructor for class picasso.view.commands.Reader
Creates a Reader object, which prompts users for image files to open
ReferenceForExpressionEvaluations - Enum in picasso.parser.language.expressions
This is the original implementation.
refresh() - Method in class picasso.view.Canvas
 
RGB2YCRCR - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
RGBColor - Class in picasso.parser.language.expressions
Special color class for Picasso.
RGBColor(double, double, double) - Constructor for class picasso.parser.language.expressions.RGBColor
Create an RGBColor object that has the given amount of red, green, and blue.
RGBColor(Color) - Constructor for class picasso.parser.language.expressions.RGBColor
Copy a Java Color object into a Picasso RGBColor object
RgbToYCrCb - Class in picasso.parser.language.expressions
Represents the rgbToYCrCb function in the Picasso language, which converts a RGB color to luminance/chrominance space.
RgbToYCrCb(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.RgbToYCrCb
Creates an RgbToYCrCb function that takes the given parameter as an expression.
RgbToYCrCbAnalyzer - Class in picasso.parser
Handles parsing the RgbToYCrCb Function.
RgbToYCrCbAnalyzer() - Constructor for class picasso.parser.RgbToYCrCbAnalyzer
 
RgbToYCrCbToken - Class in picasso.parser.tokens.functions
Represents the RgbToYCrCb function token.
RgbToYCrCbToken() - Constructor for class picasso.parser.tokens.functions.RgbToYCrCbToken
Creates a token for the RgbToYCrCb function.
RIGHT_BRACKET - Static variable in class picasso.parser.language.CharConstants
 
RIGHT_PAREN - Static variable in class picasso.parser.language.CharConstants
 
RightBracketToken - Class in picasso.parser.tokens.chars
Represents a right bracket in the Picasso programming language
RightBracketToken() - Constructor for class picasso.parser.tokens.chars.RightBracketToken
 
RightParenToken - Class in picasso.parser.tokens.chars
Represents a right parenthesis in the Picasso programming language
RightParenToken() - Constructor for class picasso.parser.tokens.chars.RightParenToken
 

S

scale(double, int) - Static method in class picasso.parser.language.expressions.Image
Scales a value from the range [-1, 1] to an integer pixel coordinate to the image's width or height
secondExpression - Variable in class picasso.parser.language.expressions.PerlinFunction
 
SemanticAnalyzer - Class in picasso.parser
SemanticAnalyzer calls appropriate SemanticAnalyzer for the given token
SemanticAnalyzerInterface - Interface in picasso.parser
The interface that all Semantic Analyzers must implement
setAllowRandom(boolean) - Method in class picasso.generator.RandomExpressionGenerator
Sets whether random() function is allowed in generated expressions
setColor(int, int, Color) - Method in class picasso.model.Pixmap
 
setCurrToken(Token) - Method in class picasso.parser.Tokenizer
 
setExpressionText(String) - Method in class picasso.view.ButtonPanel
Sets the text in the input.
setIdToExpression(String, ExpressionTreeNode) - Static method in class picasso.parser.IdentifierAnalyzer
Method to update our map idToExpression with new variable names It is called for the execute() method of the Equal
setSeed(long) - Method in class picasso.generator.RandomExpressionGenerator
Sets the seed for the random number generator.
setSize(int, int) - Method in class picasso.model.Pixmap
Changes the size of the image to the given width and height
setSize(Dimension) - Method in class picasso.model.Pixmap
 
setSize(Dimension) - Method in class picasso.view.Canvas
 
show(String, List<String>, Component) - Static method in class picasso.view.LearningDisplay
 
signEvaluate() - Method in class picasso.parser.language.expressions.RandomPicasso
Randomly generates a sign (positive or negative).
Sin - Class in picasso.parser.language.expressions
Represents the sine function in the Picasso language.
Sin(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Sin
Create a sine expression that takes as a parameter the given expression
SinAnalyzer - Class in picasso.parser
Handles parsing the Sine function.
SinAnalyzer() - Constructor for class picasso.parser.SinAnalyzer
 
SinToken - Class in picasso.parser.tokens.functions
Represents the sine function token
SinToken() - Constructor for class picasso.parser.tokens.functions.SinToken
 
SIZE - Static variable in class picasso.Main
 
SLASH - Static variable in class picasso.parser.language.CharConstants
 
STAR - Static variable in class picasso.parser.language.CharConstants
 
StringExpressionCommand - Class in picasso.view.commands
Command that generates a Picasso expression from user-provided text The same input text will always produce the same expression
StringExpressionCommand(ButtonPanel, Evaluator) - Constructor for class picasso.view.commands.StringExpressionCommand
Creates a new StringExpressionCommand
StringExpressionGenerator - Class in picasso.generator
Generates Picasso expressions based on an input string The same input text will always produce the same expression
StringExpressionGenerator() - Constructor for class picasso.generator.StringExpressionGenerator
Creates a new StringExpressionGenerator Disables random() in generated expressions
Subtraction - Class in picasso.parser.language.expressions
Represent the subtraction function in the Picasso language.
Subtraction(ExpressionTreeNode, ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Subtraction
 

T

Tan - Class in picasso.parser.language.expressions
Represents the tangent function in the Picasso language.
Tan(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Tan
Creates a tangent expression that takes the given expression as a parameter.
TanAnalyzer - Class in picasso.parser
Handles parsing the Tan Function.
TanAnalyzer() - Constructor for class picasso.parser.TanAnalyzer
 
TanToken - Class in picasso.parser.tokens.functions
Represents the Tan function token.
TanToken() - Constructor for class picasso.parser.tokens.functions.TanToken
 
ThreadedCommand<T> - Class in picasso.util
Execute a long running command in a separate thread and display the results in a component while the command is running.
ThreadedCommand(JComponent, Command<T>) - Constructor for class picasso.util.ThreadedCommand
Create a command that runs the given command and updates the given view over time.
TILDE - Static variable in class picasso.parser.language.CharConstants
 
TIMES - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
TimesAnalyzer - Class in picasso.parser
Handles parsing the multiplication token.
TimesAnalyzer() - Constructor for class picasso.parser.TimesAnalyzer
 
TimesToken - Class in picasso.parser.tokens.operations
Represents the times sign token
TimesToken() - Constructor for class picasso.parser.tokens.operations.TimesToken
 
toDouble(int) - Static method in class picasso.parser.language.expressions.RGBColor
Convert the Java color's component value (from [0,255]) to the [-1,1] range needed for Picasso
toInt(double) - Static method in class picasso.parser.language.expressions.RGBColor
Convert the Picasso color's component value (from [-1,1] to the Java color's component (from [0,255])
toJavaColor() - Method in class picasso.parser.language.expressions.RGBColor
Converts to Java's Color class
Token - Class in picasso.parser.tokens
Represents tokens in the Picasso programming language
Token(String) - Constructor for class picasso.parser.tokens.Token
Creates a token with the given description
TokenFactory - Class in picasso.parser.tokens
Looks at a generic token and creates the appropriate token type
TokenFactory() - Constructor for class picasso.parser.tokens.TokenFactory
 
Tokenizer - Class in picasso.parser
A tokenizer for the Picasso language.
Tokenizer() - Constructor for class picasso.parser.Tokenizer
 
toString() - Method in class picasso.parser.language.expressions.BinaryFunction
Returns the string representation of the function in the format ": , "
toString() - Method in class picasso.parser.language.expressions.Constant
Returns the constant as a string formatted as "Constant: "
toString() - Method in class picasso.parser.language.expressions.Image
Returns a string representation of this Image
toString() - Method in class picasso.parser.language.expressions.ImageFunction
Returns a string representation of this ImageFunction
toString() - Method in class picasso.parser.language.expressions.NoArgumentFunction
Returns the string representation of the function in the format "()".
toString() - Method in class picasso.parser.language.expressions.PerlinFunction
Returns a string representation of this Perlin function
toString() - Method in class picasso.parser.language.expressions.RGBColor
Returns the RGBColor as a String in the form "Color: <red> <green> <blue>"
toString() - Method in class picasso.parser.language.expressions.UnaryFunction
Returns the string representation of the function in the format ": "
toString() - Method in class picasso.parser.language.expressions.Variable
Returns the string representation of this variable, using its name
toString() - Method in class picasso.parser.language.expressions.X
Returns "x", the representation of this variable in Picasso expressions
toString() - Method in class picasso.parser.language.expressions.Y
Returns "y", the representation of this variable in Picasso expressions
toString() - Method in class picasso.parser.tokens.chars.CharToken
 
toString() - Method in class picasso.parser.tokens.ColorToken
 
toString() - Method in class picasso.parser.tokens.IdentifierToken
 
toString() - Method in class picasso.parser.tokens.ImageToken
Returns a string representation of this image token
toString() - Method in class picasso.parser.tokens.NumberToken
 
toString() - Method in class picasso.parser.tokens.Token
Represents the token by its description

U

UnaryFunction - Class in picasso.parser.language.expressions
Represents a function that takes one argument.
UnaryFunction(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.UnaryFunction
Constructor for the UnaryFunction class.
UnaryFunctionAnalyzer - Class in picasso.parser
Abstract class that parses a function that takes one expression as a parameter.
UnaryFunctionAnalyzer() - Constructor for class picasso.parser.UnaryFunctionAnalyzer
 
UnaryOperationAnalyzer - Class in picasso.parser
Abstract class that parses an operation that one expressions as parameters.
UnaryOperationAnalyzer() - Constructor for class picasso.parser.UnaryOperationAnalyzer
 
UNDER_SCORE - Static variable in class picasso.parser.language.CharConstants
 

V

value() - Method in class picasso.parser.tokens.chars.CharToken
 
value() - Method in class picasso.parser.tokens.NumberToken
 
valueOf(String) - Static method in enum picasso.parser.language.expressions.ReferenceForExpressionEvaluations
Returns the enum constant of this type with the specified name.
values() - Static method in enum picasso.parser.language.expressions.ReferenceForExpressionEvaluations
Returns an array containing the constants of this enum type, in the order they are declared.
Variable - Class in picasso.parser.language.expressions
Represents a variable
Variable(String) - Constructor for class picasso.parser.language.expressions.Variable
 

W

wrap(double) - Static method in class picasso.parser.language.expressions.Wrap
Wraps a single value to the range [-1, 1].
Wrap - Class in picasso.parser.language.expressions
Represents the wrap function in the Picasso language.
Wrap(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.Wrap
Create a Wrap expression tree node with the given parameter
WrapAnalyzer - Class in picasso.parser
Handles parsing the wrap function.
WrapAnalyzer() - Constructor for class picasso.parser.WrapAnalyzer
 
WrapToken - Class in picasso.parser.tokens.functions
Represents the wrap function token
WrapToken() - Constructor for class picasso.parser.tokens.functions.WrapToken
 
write(String) - Method in class picasso.model.Pixmap
Write the current image to a file as a jpg.
Writer - Class in picasso.view.commands
Save the chosen file.
Writer() - Constructor for class picasso.view.commands.Writer
 

X

X - Class in picasso.parser.language.expressions
Represents x in a Picasso expression
X - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
X() - Constructor for class picasso.parser.language.expressions.X
 
xExpression - Variable in class picasso.parser.language.expressions.ImageFunction
 

Y

Y - Class in picasso.parser.language.expressions
Represents y in a Picasso expression
Y - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
Y() - Constructor for class picasso.parser.language.expressions.Y
 
YCRC2RGBR - picasso.parser.language.expressions.ReferenceForExpressionEvaluations
 
YCrCbToRGB - Class in picasso.parser.language.expressions
Represents the yCrCbToRGB function in the Picasso language, which converts to RGB from luminance/chrominance space.
YCrCbToRGB(ExpressionTreeNode) - Constructor for class picasso.parser.language.expressions.YCrCbToRGB
Creates an YCrCbToRGB function that takes the given parameter as an expression.
YCrCbToRGBAnalyzer - Class in picasso.parser
Handles parsing the YCrCbToRGB Function.
YCrCbToRGBAnalyzer() - Constructor for class picasso.parser.YCrCbToRGBAnalyzer
 
YCrCbToRGBToken - Class in picasso.parser.tokens.functions
Represents the YCrCbToRGB function token.
YCrCbToRGBToken() - Constructor for class picasso.parser.tokens.functions.YCrCbToRGBToken
Creates a token for the YCrCbToRGB function.
yExpression - Variable in class picasso.parser.language.expressions.ImageFunction
 
A B C D E F G I J L M N O P Q R S T U V W X Y 
All Classes All Packages