Class TranslucentAndShapedWindowApiFactory
- java.lang.Object
-
- ch.swingfx.window.translucentandshaped.TranslucentAndShapedWindowApiFactory
-
public class TranslucentAndShapedWindowApiFactory extends java.lang.Object
Factory for creatingITranslucentAndShapedWindowApi
objects depending on the JRE
Prior to JRE 6 update 10 there is no support for this. As of JRE 6u10 there is support in private APIs. As of JRE 7 there is official support for this.
This factory figures out which one to use.
Note: Only Sun/Oracle JREs support sun.awt.AWTUtilities. Other JDK/JREs (example OpenJDK) do not support the private API
-
-
Field Summary
Fields Modifier and Type Field Description private static ITranslucentAndShapedWindowApi
api
-
Constructor Summary
Constructors Constructor Description TranslucentAndShapedWindowApiFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ITranslucentAndShapedWindowApi
getApi()
get a singleton instance of anITranslucentAndShapedWindowApi
object.
-
-
-
Field Detail
-
api
private static final ITranslucentAndShapedWindowApi api
-
-
Method Detail
-
getApi
public static ITranslucentAndShapedWindowApi getApi()
get a singleton instance of anITranslucentAndShapedWindowApi
object.- Returns:
- a singleton instance of an
ITranslucentAndShapedWindowApi
object
-
-