org.omegahat.Graphics.Layouts
Class AllocatorRectRegionDescription
java.lang.Object
|
+--org.omegahat.Graphics.Primitives.RectRegionDescription
|
+--org.omegahat.Graphics.Layouts.AllocatorRectRegionDescription
- All Implemented Interfaces:
- AllocatorRegionDescriptionInt, RegionDescriptionInt
- Direct Known Subclasses:
- LayoutAllocatorRegionDescription
- public class AllocatorRectRegionDescription
- extends RectRegionDescription
- implements AllocatorRegionDescriptionInt
Basic extension of the RectRegionDescription
which has a reference to the allocator which created it.
This is used when the evaluation method for computing
the Region
from this description needs to communicate with the allocator because
of constraints between the descriptions (and hence the realized regions).
|
Constructor Summary |
AllocatorRectRegionDescription()
|
AllocatorRectRegionDescription(double x,
double y,
double width,
double height,
int unit,
RegionAllocator allocator)
|
AllocatorRectRegionDescription(double x,
double y,
double width,
double height,
RegionAllocator allocator)
|
AllocatorRectRegionDescription(RegionAllocator allocator)
|
AllocatorRectRegionDescription(UDouble x,
UDouble y,
UDouble width,
UDouble height,
int unit,
RegionAllocator allocator)
|
AllocatorRectRegionDescription(UDouble x,
UDouble y,
UDouble width,
UDouble height,
RegionAllocator allocator)
|
| Methods inherited from class org.omegahat.Graphics.Primitives.RectRegionDescription |
compute, getHeight, getHJust, getVJust, getWidth, getX, getY, justifyX, justifyY, setHeight, setHJust, setVJust, setWidth, setX, setY, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.omegahat.Graphics.Primitives.RegionDescriptionInt |
compute, getHeight, getHJust, getVJust, getWidth, getX, getY, setHeight, setHJust, setVJust, setWidth, setX, setY |
allocator
protected RegionAllocator allocator
AllocatorRectRegionDescription
public AllocatorRectRegionDescription()
AllocatorRectRegionDescription
public AllocatorRectRegionDescription(RegionAllocator allocator)
AllocatorRectRegionDescription
public AllocatorRectRegionDescription(double x,
double y,
double width,
double height,
RegionAllocator allocator)
AllocatorRectRegionDescription
public AllocatorRectRegionDescription(double x,
double y,
double width,
double height,
int unit,
RegionAllocator allocator)
AllocatorRectRegionDescription
public AllocatorRectRegionDescription(UDouble x,
UDouble y,
UDouble width,
UDouble height,
int unit,
RegionAllocator allocator)
AllocatorRectRegionDescription
public AllocatorRectRegionDescription(UDouble x,
UDouble y,
UDouble width,
UDouble height,
RegionAllocator allocator)
compute
public Region compute(double widthCM,
double heightCM,
double fontSize)
getAllocator
public RegionAllocator getAllocator()
- Accessor for
allocator field
- Specified by:
getAllocator in interface AllocatorRegionDescriptionInt
setAllocator
public RegionAllocator setAllocator(RegionAllocator value)
- Accessor for setting
allocator field