public class Java6Workaround extends Object implements Workaround
Constructor and Description |
---|
Java6Workaround() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isPrintWarnings()
Tells whether all
Java6Workaround s 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 abbility to make window translucent. |
boolean |
supportsPerpixelTransparency(Window window)
Tells whether this
Workaround has the abbility 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()
Java6Workaround
s are allowed to print warnings.setPrintWarnings(boolean)
public void setup(DockController controller)
Workaround
DockController
is created, the Workaround
may modify the controller in
any way it likes (e.g. install specialied factories).setup
in interface Workaround
controller
- the DockController
which was just created and initializedpublic void markAsGlassPane(Component component)
Workaround
Component
which is used as glass pane (as invisible panel).markAsGlassPane
in interface Workaround
component
- the component that is invisiblepublic boolean supportsPerpixelTranslucency(Window window)
Workaround
Workaround
has the abbility to make window
translucent.
Translucent means that each pixel of the window
can have its own alpha value.supportsPerpixelTranslucency
in interface Workaround
window
- the window to testpublic boolean supportsPerpixelTransparency(Window window)
Workaround
Workaround
has the abbility to make window
transparent.
Transparent means that some pixels of the window
cannot be seen.supportsPerpixelTransparency
in interface Workaround
window
- the widnow to testpublic boolean setTranslucent(Window window)
Workaround
window
translucent. See Workarounds.setTranslucent(Window)
for a more
detailed description.setTranslucent
in interface Workaround
window
- the window that should be transparentwindow
public boolean setTransparent(Window window, Shape shape)
Workaround
window
transparent in all the regions that are not inside shape
.setTransparent
in interface Workaround
window
- the window that should be transparentshape
- the shape of the window, or null
if the window should not be transparentwindow