All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class picture.Description

java.lang.Object
   |
   +----picture.PicPipe
           |
           +----picture.Description

public class Description
extends PicPipe
Put "Description " before or after a PicPipe to say what the picture is

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, 11 May 96
Author:
Leemon Baird

Variable Index

 o desc

Constructor Index

 o Description()

Method Index

 o BNF(int)
Return BNF description of parameters for this object, when parsing language lang.
 o init(PicPipeList)
Initialize the description of this object and remove this object from the linked list of objects to call while drawing the image.
 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 desc
 protected String desc

Constructors

 o Description
 public Description()

Methods

 o BNF
 public String BNF(int lang)
Return BNF description of parameters for this object, when parsing language lang.

Overrides:
BNF in class PicPipe
 o unparse
 public void unparse(Unparser u,
                     int lang)
Output a description of this object that can be parsed with parse().

Overrides:
unparse in class PicPipe
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
Overrides:
parse in class PicPipe
 o init
 public PicPipeList init(PicPipeList list)
Initialize the description of this object and remove this object from the linked list of objects to call while drawing the image. When called, list.first is this object, and list.rest.first is the source object. If this object is the first pipeline in the sequence, then it will never be called by get() anyway, so it can stay on the linked list, and can call setDescription on itself.

Overrides:
init in class PicPipe

All Packages  Class Hierarchy  This Package  Previous  Next  Index