CompoundRegion Class Reference

Inheritance diagram for CompoundRegion:

Region List of all members.

Public Member Functions

 CompoundRegion (String name, Units xOrigin, Units yOrigin)
void addChild (Region childRegion, Coordinates relativeCoord)
 A compound region is made up of a bunch of regions and their coordinates relative to the origin of the compound region.
Coordinates getChildOffset (Region child)
Set< RegiongetChildren ()
RegionRenderer getRenderer ()
String toString ()

Detailed Description

Put more than one region together.

This software is distributed under the BSD License.

Author:
Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 26 of file CompoundRegion.java.


Member Function Documentation

void addChild ( Region  childRegion,
Coordinates  relativeCoord 
)

A compound region is made up of a bunch of regions and their coordinates relative to the origin of the compound region.

TODO: Should renderers of this class respect the master scaling factor???

Parameters:
childRegion a child region
relativeCoord 

Definition at line 62 of file CompoundRegion.java.

References Units.getConversionTo(), Region.getScaleX(), Region.getScaleY(), Region.getShape(), Region.getUnits(), Units.getValue(), Units.getValueIn(), Coordinates.getX(), Coordinates.getY(), and Region.setShape().

Coordinates getChildOffset ( Region  child  ) 

Parameters:
child 
Returns:

Definition at line 106 of file CompoundRegion.java.

Referenced by CompoundRenderer.renderToG2D().

Set<Region> getChildren (  ) 

Returns:

Definition at line 113 of file CompoundRegion.java.

Referenced by CompoundRenderer.renderToG2D().

RegionRenderer getRenderer (  ) 

See also:
edu.stanford.hci.r3.paper.Region.getRenderer()

Reimplemented from Region.

Definition at line 120 of file CompoundRegion.java.

String toString (  ) 

See also:
edu.stanford.hci.r3.paper.Region.toString()

Reimplemented from Region.

Definition at line 127 of file CompoundRegion.java.

References Region.getOriginX(), Region.getOriginY(), Region.getShape(), Units.getUnitName(), Units.getValue(), and Region.referenceUnits.


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:42 2007 for R3 Paper Toolkit by  doxygen 1.4.7