All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class picture.ColorMapEntry

java.lang.Object
   |
   +----picture.ColorMapEntry

public class ColorMapEntry
extends Object
implements Parsable
This parses a color map entry of the form [.5 <1 0 0>] which means the color map should map value .5 to the color red.

This code is (c) 1996 Leemon Baird <leemon@cs.cmu.edu>, http://www.cs.cmu.edu/~baird
The source and object code may be redistributed freely. If the code is modified, please state so in the comments.

Version:
1.0, 28 March 96
Author:
Leemon Baird

Variable Index

 o blue
The color (red,green,blue,filter,transparency) to which the number level maps
 o cols
 o filter
The color (red,green,blue,filter,transparency) to which the number level maps
 o green
The color (red,green,blue,filter,transparency) to which the number level maps
 o level
The number that maps to this color
 o red
The color (red,green,blue,filter,transparency) to which the number level maps
 o trans
The color (red,green,blue,filter,transparency) to which the number level maps

Constructor Index

 o ColorMapEntry()

Method Index

 o BNF(int)
 o getParameters(int)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
 o initialize(int)
Initialize, either partially or completely.
 o parse(Parser, int)
Parse the input file to get the parameters for this object.
 o unparse(Unparser, int)
Output a description of this object that can be parsed with parse().

Variables

 o level
 public NumExp level
The number that maps to this color

 o red
 public double red
The color (red,green,blue,filter,transparency) to which the number level maps

 o green
 public double green
The color (red,green,blue,filter,transparency) to which the number level maps

 o blue
 public double blue
The color (red,green,blue,filter,transparency) to which the number level maps

 o filter
 public double filter
The color (red,green,blue,filter,transparency) to which the number level maps

 o trans
 public double trans
The color (red,green,blue,filter,transparency) to which the number level maps

 o cols
 protected ColorVector cols

Constructors

 o ColorMapEntry
 public ColorMapEntry()

Methods

 o getParameters
 public Object[][] getParameters(int lang)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.

See Also:
getParameters
 o BNF
 public String BNF(int lang)
 o unparse
 public void unparse(Unparser u,
                     int lang)
Output a description of this object that can be parsed with parse().

See Also:
Parsable
 o parse
 public Object parse(Parser p,
                     int lang) throws ParserException
Parse the input file to get the parameters for this object.

Throws: ParserException
parser didn't find the required token
 o initialize
 public void initialize(int level)
Initialize, either partially or completely.

See Also:
initialize

All Packages  Class Hierarchy  This Package  Previous  Next  Index