Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: 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
[oneway] void
clear();

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

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

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

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

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

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

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

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

Description
removes the area of the specified region from this region.
xOrRegion
[oneway] 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

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.