bibliothek.util.workarounds
Class Java7Workaround

java.lang.Object
  extended by bibliothek.util.workarounds.Java6Workaround
      extended by bibliothek.util.workarounds.Java7Workaround
All Implemented Interfaces:
Workaround

public class Java7Workaround
extends Java6Workaround

Workarounds necessary for Java 1.7.

Author:
Benjamin Sigg

Constructor Summary
Java7Workaround()
           
 
Method Summary
 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.
 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 bibliothek.util.workarounds.Java6Workaround
isPrintWarnings, markAsGlassPane, setPrintWarnings, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java7Workaround

public Java7Workaround()
Method Detail

supportsPerpixelTransparency

public boolean supportsPerpixelTransparency(Window window)
Description copied from interface: Workaround
Tells whether this Workaround has the abbility to make window transparent. Transparent means that some pixels of the window cannot be seen.

Specified by:
supportsPerpixelTransparency in interface Workaround
Overrides:
supportsPerpixelTransparency in class Java6Workaround
Parameters:
window - the widnow to test
Returns:
whether transparency is an option

supportsPerpixelTranslucency

public boolean supportsPerpixelTranslucency(Window window)
Description copied from interface: Workaround
Tells whether this Workaround has the abbility to make window translucent. Translucent means that each pixel of the window can have its own alpha value.

Specified by:
supportsPerpixelTranslucency in interface Workaround
Overrides:
supportsPerpixelTranslucency in class Java6Workaround
Parameters:
window - the window to test
Returns:
whether translucency is an option

setTransparent

public boolean setTransparent(Window window,
                              Shape shape)
Description copied from interface: Workaround
Makes the window window transparent in all the regions that are not inside shape.

Specified by:
setTransparent in interface Workaround
Overrides:
setTransparent in class Java6Workaround
Parameters:
window - the window that should be transparent
shape - the shape of the window, or null if the window should not be transparent
Returns:
whether transparency is supported for window

setTranslucent

public boolean setTranslucent(Window window)
Description copied from interface: Workaround
Makes the window window translucent. See Workarounds.setTranslucent(Window) for a more detailed description.

Specified by:
setTranslucent in interface Workaround
Overrides:
setTranslucent in class Java6Workaround
Parameters:
window - the window that should be transparent
Returns:
whether translucency is supported for window