All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class picture.Region

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

public class Region
extends PicPipe
Put "Region (-1 -1) (1 1)" before or after a PicPipe in the source to zoom in to that region.

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, 21 April 96
Author:
Leemon Baird

Variable Index

 o maxX
 o maxY
 o minX
 o minY

Constructor Index

 o Region()

Method Index

 o BNF(int)
Return BNF description of parameters for this object, when parsing language lang.
 o init(PicPipeList)
Initialize the zoom region of the source 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 minX
 protected NumExp minX
 o maxX
 protected NumExp maxX
 o minY
 protected NumExp minY
 o maxY
 protected NumExp maxY

Constructors

 o Region
 public Region()

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 zoom region of the source 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 setRegion on itself.

Overrides:
init in class PicPipe

All Packages  Class Hierarchy  This Package  Previous  Next  Index