Class NoApi
- java.lang.Object
-
- ch.swingfx.window.translucentandshaped.NoApi
-
- All Implemented Interfaces:
ITranslucentAndShapedWindowApi
public class NoApi extends java.lang.Object implements ITranslucentAndShapedWindowApi
Class that represents no support for translucent and shaped windows because there is no api we can wrap.
You shouldn't use this class directly. Instead useTranslucentAndShapedWindowApiFactory
to get the correct instance depending on your system JRE. For more details see http://download.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html#6u10
Note: Only Sun/Oracle JREs support sun.awt.AWTUtilities. Other JDK/JREs (example OpenJDK) do not support the private API
-
-
Constructor Summary
Constructors Constructor Description NoApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiType
getApiType()
float
getWindowOpacity(java.awt.Window window)
java.awt.Shape
getWindowShape(java.awt.Window window)
boolean
isTranslucencyCapable(java.awt.GraphicsConfiguration gc)
boolean
isTranslucencySupported(Translucency translucencyKind, java.awt.GraphicsDevice gd)
boolean
isWindowOpaque(java.awt.Window window)
void
setWindowOpacity(java.awt.Window window, float opacity)
void
setWindowOpaque(java.awt.Window window, boolean isOpaque)
void
setWindowShape(java.awt.Window window, java.awt.Shape shape)
-
-
-
Method Detail
-
isTranslucencySupported
public boolean isTranslucencySupported(Translucency translucencyKind, java.awt.GraphicsDevice gd)
- Specified by:
isTranslucencySupported
in interfaceITranslucentAndShapedWindowApi
-
setWindowOpacity
public void setWindowOpacity(java.awt.Window window, float opacity)
- Specified by:
setWindowOpacity
in interfaceITranslucentAndShapedWindowApi
-
getWindowOpacity
public float getWindowOpacity(java.awt.Window window)
- Specified by:
getWindowOpacity
in interfaceITranslucentAndShapedWindowApi
-
setWindowShape
public void setWindowShape(java.awt.Window window, java.awt.Shape shape)
- Specified by:
setWindowShape
in interfaceITranslucentAndShapedWindowApi
-
getWindowShape
public java.awt.Shape getWindowShape(java.awt.Window window)
- Specified by:
getWindowShape
in interfaceITranslucentAndShapedWindowApi
-
setWindowOpaque
public void setWindowOpaque(java.awt.Window window, boolean isOpaque)
- Specified by:
setWindowOpaque
in interfaceITranslucentAndShapedWindowApi
-
isWindowOpaque
public boolean isWindowOpaque(java.awt.Window window)
- Specified by:
isWindowOpaque
in interfaceITranslucentAndShapedWindowApi
-
isTranslucencyCapable
public boolean isTranslucencyCapable(java.awt.GraphicsConfiguration gc)
- Specified by:
isTranslucencyCapable
in interfaceITranslucentAndShapedWindowApi
-
getApiType
public ApiType getApiType()
- Specified by:
getApiType
in interfaceITranslucentAndShapedWindowApi
-
-