com.l2fprod.gui.nativeskin.win32
Class Win32NativeSkin

java.lang.Object
  extended by com.l2fprod.gui.nativeskin.NativeSkin
      extended by com.l2fprod.gui.nativeskin.win32.Win32NativeSkin

public final class Win32NativeSkin
extends NativeSkin

Win32 Implementation.

Version:
$Revision: 1.4 $, $Date: 2004/08/10 18:38:13 $
Author:
$Author: l2fprod $, Herve Lemaitre (setWindowImageRegion0)

Constructor Summary
Win32NativeSkin()
           
 
Method Summary
 Region combineRegions(Region region1, Region region2, int combineMode)
          Description of the Method
 Region createEllipticRegion(int x1, int y1, int x2, int y2)
          Description of the Method
 Region createPolygonRegion(int[] xpoints, int[] ypoints, int fillMode)
          Description of the Method
 Region createRectangleRegion(int x1, int y1, int x2, int y2)
          Description of the Method
 Region createRegion(java.awt.Image image, int width, int height)
          Description of the Method
 Region createRoundRectangleRegion(int x1, int y1, int x2, int y2, int x3, int y3)
          Description of the Method
 void setAlwaysOnTop(java.awt.Window window, boolean enable)
          Set the window to be always on top of the others.
 void setWindowRegion(int handle, Region region, boolean redraw)
          Sets the Region for the graphical object identified by the given native handle.
 void setWindowRegion(java.awt.Window window, Region region, boolean redraw)
          Sets the WindowRegion attribute of the Win32RegionBuilder object
 void setWindowTransparency(java.awt.Window window, int transparency)
          Set the transparency of the given Window.
 
Methods inherited from class com.l2fprod.gui.nativeskin.NativeSkin
createRegion, getInstance, isSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Win32NativeSkin

public Win32NativeSkin()
Method Detail

setWindowTransparency

public void setWindowTransparency(java.awt.Window window,
                                  int transparency)
Description copied from class: NativeSkin
Set the transparency of the given Window.

Overrides:
setWindowTransparency in class NativeSkin
Parameters:
window - a Window value
transparency - an int value

setWindowRegion

public void setWindowRegion(java.awt.Window window,
                            Region region,
                            boolean redraw)
Sets the WindowRegion attribute of the Win32RegionBuilder object

Overrides:
setWindowRegion in class NativeSkin
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)
Description copied from class: NativeSkin
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 as it is a public member variable.

Overrides:
setWindowRegion in class NativeSkin
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

Overrides:
createEllipticRegion in class NativeSkin
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

Overrides:
createRectangleRegion in class NativeSkin
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

Overrides:
createRoundRectangleRegion in class NativeSkin
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

Overrides:
createPolygonRegion in class NativeSkin
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

Overrides:
combineRegions in class NativeSkin
Parameters:
region1 - Description of Parameter
region2 - Description of Parameter
combineMode - Description of Parameter
Returns:
Description of the Returned Value

setAlwaysOnTop

public void setAlwaysOnTop(java.awt.Window window,
                           boolean enable)
Description copied from class: NativeSkin
Set the window to be always on top of the others.

Overrides:
setAlwaysOnTop in class NativeSkin
Parameters:
window - a Window value
enable - true to put window on top, false to restore the default behaviour

createRegion

public Region createRegion(java.awt.Image image,
                           int width,
                           int height)
Description of the Method

Overrides:
createRegion in class NativeSkin
Parameters:
image - Description of Parameter
width - Description of Parameter
height - Description of Parameter
Returns:
Description of the Returned Value