|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.util.workarounds.Java6Workaround
public class Java6Workaround
Workarounds necessary for Java 1.6.
| Constructor Summary | |
|---|---|
Java6Workaround()
|
|
| Method Summary | |
|---|---|
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 abbility to make window translucent. |
boolean |
supportsPerpixelTransparency(Window window)
Tells whether this Workaround has the abbility to make window transparent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Java6Workaround()
| Method Detail |
|---|
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 specialied 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 abbility 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 test
public boolean supportsPerpixelTransparency(Window window)
WorkaroundWorkaround has the abbility to make window transparent.
Transparent means that some pixels of the window cannot be seen.
supportsPerpixelTransparency in interface Workaroundwindow - the widnow to test
public boolean setTranslucent(Window window)
Workaroundwindow translucent. See Workarounds.setTranslucent(Window) for a more
detailed description.
setTranslucent in interface Workaroundwindow - the window that should be transparent
window
public 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 transparent
window
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||