|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.util.Workarounds
public class Workarounds
Utility class providing help for bugs or specialities present in some versions of the JRE or
in some libraries. Workarounds
is implemented as singleton, as there is only one JRE and
usually libraries are not loaded multiple times as well.
Constructor Summary | |
---|---|
Workarounds()
|
Method Summary | |
---|---|
void |
addWorkaround(Workaround workaround)
Adds a new workaround to this Workarounds . |
static Workarounds |
getDefault()
Gets access to the currently used Workarounds s. |
Workaround[] |
getWorkarounds()
Gets all the Workaround s that are currently active. |
boolean |
makeTransparent(Window window)
Makes window transparent, meaning that the opacity of each pixel is defined by the
alpha value or the Color that was used to paint over that pixel. |
void |
markAsGlassPane(Component component)
This method is necessary since 1.6.14, it marks a component as transparent. |
void |
removeWorkaround(Workaround workaround)
Removes a workaround from this Workarounds . |
static void |
setDefault(Workarounds workarounds)
Seets the Workarounds that should be used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Workarounds()
Method Detail |
---|
public static Workarounds getDefault()
Workarounds
s.
@ClientOnly public static void setDefault(Workarounds workarounds)
Workarounds
that should be used. This method will never be called from
the framework itself. Calling this method has no effect on workarounds that are already
applied.
workarounds
- the new workarounds, not null
public void addWorkaround(Workaround workaround)
Workarounds
.
workaround
- the new workaround, not null
public void removeWorkaround(Workaround workaround)
Workarounds
.
workaround
- the workaround to removepublic Workaround[] getWorkarounds()
Workaround
s that are currently active.
public void markAsGlassPane(Component component)
component
are not visible.
component
- the component to mark completely transparentpublic boolean makeTransparent(Window window)
window
transparent, meaning that the opacity of each pixel is defined by the
alpha value or the Color
that was used to paint over that pixel.
window
- the window that should be transparent
true
if the winodw is now transparent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |