Class RegionBuilder

  • All Implemented Interfaces:
    NativeConstants

    public final class RegionBuilder
    extends java.lang.Object
    implements NativeConstants
    SkinRegion.
    Version:
    $Revision: 1.2 $, $Date: 2003/12/06 21:51:20 $
    Author:
    $Author: l2fprod $
    • Constructor Detail

      • RegionBuilder

        public RegionBuilder()
    • Method Detail

      • isSupported

        public static boolean isSupported()
      • setWindowRegion

        public void setWindowRegion​(java.awt.Window window,
                                    Region region,
                                    boolean redraw)
        Sets the WindowRegion attribute of the RegionBuilder object
        Parameters:
        window - The new WindowRegion value
        region - The new WindowRegion value
        redraw - The new WindowRegion value
      • setWindowRegion

        public void setWindowRegion​(int handle,
                                    Region region,
                                    boolean redraw)
        Sets the Region for the graphical object identified by the given native handle. This method may be used with environment such as Eclipse/SWT where it is easy to get the native handle of any "Shell" object.
        Parameters:
        handle - an int value
        region - a Region value
        redraw - a boolean value
      • createEllipticRegion

        public Region createEllipticRegion​(int x1,
                                           int y1,
                                           int x2,
                                           int y2)
        Description of the Method
        Parameters:
        x1 - Description of Parameter
        y1 - Description of Parameter
        x2 - Description of Parameter
        y2 - Description of Parameter
        Returns:
        Description of the Returned Value
      • createRectangleRegion

        public Region createRectangleRegion​(int x1,
                                            int y1,
                                            int x2,
                                            int y2)
        Description of the Method
        Parameters:
        x1 - Description of Parameter
        y1 - Description of Parameter
        x2 - Description of Parameter
        y2 - Description of Parameter
        Returns:
        Description of the Returned Value
      • createRoundRectangleRegion

        public Region createRoundRectangleRegion​(int x1,
                                                 int y1,
                                                 int x2,
                                                 int y2,
                                                 int x3,
                                                 int y3)
        Description of the Method
        Parameters:
        x1 - Description of Parameter
        y1 - Description of Parameter
        x2 - Description of Parameter
        y2 - Description of Parameter
        x3 - Description of Parameter
        y3 - Description of Parameter
        Returns:
        Description of the Returned Value
      • createPolygonRegion

        public Region createPolygonRegion​(int[] xpoints,
                                          int[] ypoints,
                                          int fillMode)
        Description of the Method
        Parameters:
        xpoints - Description of Parameter
        ypoints - Description of Parameter
        fillMode - Description of Parameter
        Returns:
        Description of the Returned Value
      • combineRegions

        public Region combineRegions​(Region region1,
                                     Region region2,
                                     int combineMode)
        Description of the Method
        Parameters:
        region1 - Description of Parameter
        region2 - Description of Parameter
        combineMode - Description of Parameter
        Returns:
        Description of the Returned Value
      • createRegion

        public Region createRegion​(java.awt.Image image)
        Description of the Method
        Parameters:
        image - Description of Parameter
        Returns:
        Description of the Returned Value
      • createRegion

        public Region createRegion​(java.awt.Image image,
                                   int width,
                                   int height)
        Description of the Method
        Parameters:
        image - Description of Parameter
        width - Description of Parameter
        height - Description of Parameter
        Returns:
        Description of the Returned Value