Inheritance diagram for CompoundRegion:
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< Region > | getChildren () |
RegionRenderer | getRenderer () |
String | toString () |
This software is distributed under the BSD License.
Definition at line 26 of file CompoundRegion.java.
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???
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 | ) |
child |
Definition at line 106 of file CompoundRegion.java.
Referenced by CompoundRenderer.renderToG2D().
Set<Region> getChildren | ( | ) |
Definition at line 113 of file CompoundRegion.java.
Referenced by CompoundRenderer.renderToG2D().
RegionRenderer getRenderer | ( | ) |
String 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.