|
JNA API> 4.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jna.platform.WindowUtils.NativeWindowUtils
public abstract static class WindowUtils.NativeWindowUtils
Window utilities with differing native implementations.
Nested Class Summary | |
---|---|
protected class |
WindowUtils.NativeWindowUtils.TransparentContentPane
|
Constructor Summary | |
---|---|
WindowUtils.NativeWindowUtils()
|
Method Summary | |
---|---|
GraphicsConfiguration |
getAlphaCompatibleGraphicsConfiguration()
Return the default graphics configuration. |
protected Window |
getWindow(Component c)
|
boolean |
isWindowAlphaSupported()
Default: no support. |
protected void |
setDoubleBuffered(Component root,
boolean buffered)
|
protected void |
setForceHeavyweightPopups(Window w,
boolean force)
Use this method to ensure heavyweight popups are used in conjunction with a given window. |
protected void |
setLayersTransparent(Window w,
boolean transparent)
|
protected void |
setMask(Component c,
Raster raster)
Override this method to provide bitmap masking of the given heavyweight component. |
void |
setWindowAlpha(Window w,
float alpha)
Set the overall alpha transparency of the window. |
void |
setWindowMask(Component w,
Icon mask)
Set the window mask based on an Icon. |
protected void |
setWindowMask(Component w,
Raster raster)
Set the window mask based on the given Raster, which should be treated as a bitmap (zero/nonzero values only). |
void |
setWindowMask(Component w,
Shape mask)
Set the window mask based on a Shape . |
void |
setWindowTransparent(Window w,
boolean transparent)
Set the window to be transparent. |
protected Raster |
toRaster(Component c,
Icon mask)
|
protected Raster |
toRaster(Shape mask)
|
protected Shape |
toShape(Raster raster)
|
protected void |
whenDisplayable(Component w,
Runnable action)
Execute the given action when the given window becomes displayable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WindowUtils.NativeWindowUtils()
Method Detail |
---|
protected Window getWindow(Component c)
protected void whenDisplayable(Component w, Runnable action)
protected Raster toRaster(Shape mask)
protected Raster toRaster(Component c, Icon mask)
protected Shape toShape(Raster raster)
public void setWindowAlpha(Window w, float alpha)
public boolean isWindowAlphaSupported()
public GraphicsConfiguration getAlphaCompatibleGraphicsConfiguration()
public void setWindowTransparent(Window w, boolean transparent)
protected void setDoubleBuffered(Component root, boolean buffered)
protected void setLayersTransparent(Window w, boolean transparent)
protected void setMask(Component c, Raster raster)
protected void setWindowMask(Component w, Raster raster)
null
means to remove the mask.
public void setWindowMask(Component w, Shape mask)
Shape
.
public void setWindowMask(Component w, Icon mask)
protected void setForceHeavyweightPopups(Window w, boolean force)
|
JNA API> 4.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |