Class RegionBuilder
java.lang.Object
com.l2fprod.gui.region.RegionBuilder
- All Implemented Interfaces:
NativeConstants
SkinRegion.
- Version:
- $Revision: 1.2 $, $Date: 2003/12/06 21:51:20 $
- Author:
- $Author: l2fprod $
-
Field Summary
Fields inherited from interface NativeConstants
FILL_ALTERNATE, FILL_WINDING, REGION_AND, REGION_COPY, REGION_DIFF, REGION_OR, REGION_XOR, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncombineRegions(Region region1, Region region2, int combineMode) Description of the MethodcreateEllipticRegion(int x1, int y1, int x2, int y2) Description of the MethodcreatePolygonRegion(int[] xpoints, int[] ypoints, int fillMode) Description of the MethodcreateRectangleRegion(int x1, int y1, int x2, int y2) Description of the MethodcreateRegion(Image image) Description of the MethodcreateRegion(Image image, int width, int height) Description of the MethodcreateRoundRectangleRegion(int x1, int y1, int x2, int y2, int x3, int y3) Description of the Methodstatic booleanvoidsetWindowRegion(int handle, Region region, boolean redraw) Sets the Region for the graphical object identified by the given native handle.voidsetWindowRegion(Window window, Region region, boolean redraw) Sets the WindowRegion attribute of the RegionBuilder object
-
Constructor Details
-
RegionBuilder
public RegionBuilder()
-
-
Method Details
-
getInstance
-
isSupported
public static boolean isSupported() -
setWindowRegion
-
setWindowRegion
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- anintvalueregion- aRegionvalueredraw- abooleanvalue
-
createEllipticRegion
Description of the Method- Parameters:
x1- Description of Parametery1- Description of Parameterx2- Description of Parametery2- Description of Parameter- Returns:
- Description of the Returned Value
-
createRectangleRegion
Description of the Method- Parameters:
x1- Description of Parametery1- Description of Parameterx2- Description of Parametery2- Description of Parameter- Returns:
- Description of the Returned Value
-
createRoundRectangleRegion
Description of the Method- Parameters:
x1- Description of Parametery1- Description of Parameterx2- Description of Parametery2- Description of Parameterx3- Description of Parametery3- Description of Parameter- Returns:
- Description of the Returned Value
-
createPolygonRegion
Description of the Method- Parameters:
xpoints- Description of Parameterypoints- Description of ParameterfillMode- Description of Parameter- Returns:
- Description of the Returned Value
-
combineRegions
-
createRegion
-
createRegion
-