:: com :: sun :: star :: awt ::

interface XRegion
Description
manages multiple rectangles which make up a region.

Methods' Summary
getBounds returns the bounding box of the shape.  
clear makes this region an empty region.  
move moves this region by the specified horizontal and vertical delta.  
unionRectangle adds the specified rectangle to this region.  
intersectRectangle intersects the specified rectangle with the current region.  
excludeRectangle removes the area of the specified rectangle from this region.  
xOrRectangle applies an exclusive-or operation with the specified rectangle to this region.  
unionRegion adds the specified region to this region.  
intersectRegion intersects the specified region with the current region.  
excludeRegion removes the area of the specified region from this region.  
xOrRegion applies an exclusive-or operation with the specified region to this region.  
getRectangles returns all rectangles which are making up this region.  
Methods' Details
getBounds
Rectangle
getBounds();

Description
returns the bounding box of the shape.
clear
void
clear();

Description
makes this region an empty region.
move
void
move( [in] long  nHorzMove,
[in] long  nVertMove );

Description
moves this region by the specified horizontal and vertical delta.
unionRectangle
void
unionRectangle( [in] Rectangle  Rect );

Description
adds the specified rectangle to this region.
intersectRectangle
void
intersectRectangle( [in] Rectangle  Region );

Description
intersects the specified rectangle with the current region.
excludeRectangle
void
excludeRectangle( [in] Rectangle  Rect );

Description
removes the area of the specified rectangle from this region.
xOrRectangle
void
xOrRectangle( [in] Rectangle  Rect );

Description
applies an exclusive-or operation with the specified rectangle to this region.
unionRegion
void
unionRegion( [in] XRegion  Region );

Description
adds the specified region to this region.
intersectRegion
void
intersectRegion( [in] XRegion  Region );

Description
intersects the specified region with the current region.
excludeRegion
void
excludeRegion( [in] XRegion  Region );

Description
removes the area of the specified region from this region.
xOrRegion
void
xOrRegion( [in] XRegion  Region );

Description
applies an exclusive-or operation with the specified region to this region.
getRectangles
sequence< Rectangle >
getRectangles();

Description
returns all rectangles which are making up this region.
Top of Page