Class NoApi
java.lang.Object
ch.swingfx.window.translucentandshaped.NoApi
- All Implemented Interfaces:
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 use
Note: Only Sun/Oracle JREs support sun.awt.AWTUtilities. Other JDK/JREs (example OpenJDK) do not support the private API
You shouldn't use this class directly. Instead use
TranslucentAndShapedWindowApiFactory
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#6u10Note: Only Sun/Oracle JREs support sun.awt.AWTUtilities. Other JDK/JREs (example OpenJDK) do not support the private API
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
getWindowOpacity
(Window window) getWindowShape
(Window window) boolean
boolean
isTranslucencySupported
(Translucency translucencyKind, GraphicsDevice gd) boolean
isWindowOpaque
(Window window) void
setWindowOpacity
(Window window, float opacity) void
setWindowOpaque
(Window window, boolean isOpaque) void
setWindowShape
(Window window, Shape shape)
-
Constructor Details
-
NoApi
public NoApi()
-
-
Method Details
-
isTranslucencySupported
- Specified by:
isTranslucencySupported
in interfaceITranslucentAndShapedWindowApi
-
setWindowOpacity
- Specified by:
setWindowOpacity
in interfaceITranslucentAndShapedWindowApi
-
getWindowOpacity
- Specified by:
getWindowOpacity
in interfaceITranslucentAndShapedWindowApi
-
setWindowShape
- Specified by:
setWindowShape
in interfaceITranslucentAndShapedWindowApi
-
getWindowShape
- Specified by:
getWindowShape
in interfaceITranslucentAndShapedWindowApi
-
setWindowOpaque
- Specified by:
setWindowOpaque
in interfaceITranslucentAndShapedWindowApi
-
isWindowOpaque
- Specified by:
isWindowOpaque
in interfaceITranslucentAndShapedWindowApi
-
isTranslucencyCapable
- Specified by:
isTranslucencyCapable
in interfaceITranslucentAndShapedWindowApi
-
getApiType
- Specified by:
getApiType
in interfaceITranslucentAndShapedWindowApi
-