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
-
maxX
-
-
maxY
-
-
minX
-
-
minY
-
-
Region()
-
-
BNF(int)
- Return BNF description of parameters for this object, when parsing language lang.
-
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.
-
parse(Parser, int)
- Parse the input file to get the parameters for this object.
-
unparse(Unparser, int)
- Output a description of this object that can be parsed with parse().
minX
protected NumExp minX
maxX
protected NumExp maxX
minY
protected NumExp minY
maxY
protected NumExp maxY
Region
public Region()
BNF
public String BNF(int lang)
- Return BNF description of parameters for this object, when parsing language lang.
- Overrides:
- BNF in class PicPipe
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
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
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