public class Java6Workaround extends Object implements Workaround
| Constructor and Description |
|---|
Java6Workaround() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPrintWarnings()
Tells whether all
Java6Workarounds are allowed to print warnings. |
void |
markAsGlassPane(Component component)
Called for any
Component which is used as glass pane (as invisible panel). |
static void |
setPrintWarnings(boolean printWarnings)
Sets whether the methods of the
Java6Workaround can print warnings or not. |
boolean |
setTranslucent(Window window)
Makes the window
window translucent. |
boolean |
setTransparent(Window window,
Shape shape)
Makes the window
window transparent in all the regions that are not inside shape. |
void |
setup(DockController controller)
Called whenever a new
DockController is created, the Workaround may modify the controller in
any way it likes (e.g. |
boolean |
supportsPerpixelTranslucency(Window window)
Tells whether this
Workaround has the ability to make window translucent. |
boolean |
supportsPerpixelTransparency(Window window)
Tells whether this
Workaround has the ability to make window transparent. |
public static void setPrintWarnings(boolean printWarnings)
Java6Workaround can print warnings or not. Calling this method
affects all workarounds. The default behavior is not to print warnings.printWarnings - whether to print warningspublic static boolean isPrintWarnings()
Java6Workarounds are allowed to print warnings.setPrintWarnings(boolean)public void setup(DockController controller)
WorkaroundDockController is created, the Workaround may modify the controller in
any way it likes (e.g. install specialized factories).setup in interface Workaroundcontroller - the DockController which was just created and initializedpublic void markAsGlassPane(Component component)
WorkaroundComponent which is used as glass pane (as invisible panel).markAsGlassPane in interface Workaroundcomponent - the component that is invisiblepublic boolean supportsPerpixelTranslucency(Window window)
WorkaroundWorkaround has the ability to make window translucent.
Translucent means that each pixel of the window can have its own alpha value.supportsPerpixelTranslucency in interface Workaroundwindow - the window to testpublic boolean supportsPerpixelTransparency(Window window)
WorkaroundWorkaround has the ability to make window transparent.
Transparent means that some pixels of the window cannot be seen.supportsPerpixelTransparency in interface Workaroundwindow - the window to testpublic boolean setTranslucent(Window window)
Workaroundwindow translucent. See Workarounds.setTranslucent(Window) for a more
detailed description.setTranslucent in interface Workaroundwindow - the window that should be transparentwindowpublic boolean setTransparent(Window window, Shape shape)
Workaroundwindow transparent in all the regions that are not inside shape.setTransparent in interface Workaroundwindow - the window that should be transparentshape - the shape of the window, or null if the window should not be transparentwindowCopyright © 2017 Docking Frames. All rights reserved.