|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pbjar.jxlayer.plaf.ext.transform.TransformRPMImpl
public class TransformRPMImpl
To avoid duplicate code, this class implements the actual logic for
TransformRPMSwingX and TransformRPMFallBack.
| Field Summary | |
|---|---|
static boolean |
hack
A flag, indicating whether or not a very dirty initialization on created RepaintManagers must be performed. |
| Method Summary | |
|---|---|
static boolean |
addDirtyRegion(JComponent aComponent,
int x,
int y,
int w,
int h,
RepaintManager manager)
Searches upwards in the component hierarchy for a JXLayer
ancestor with an enabled TransformUI. |
static void |
hackInitialization(RepaintManager sourceManager,
RepaintManager destinationManager)
If hack is true, the private fields paintManager
and bufferStrategyType are copied via reflection from the source
manager into the destination manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean hack
RepaintManagers must be performed.
hackInitialization(RepaintManager, RepaintManager)| Method Detail |
|---|
public static boolean addDirtyRegion(JComponent aComponent,
int x,
int y,
int w,
int h,
RepaintManager manager)
JXLayer
ancestor with an enabled TransformUI.
If found, the dirty rectangle is transformed to a rectangle targeted at
that JXLayer and the argument manager's
RepaintManager.addDirtyRegion(JComponent, int, int, int, int) is
invoked. true is returned.
Else, (@code false} is returned.
aComponent - a componentx - the X of the dirty regiony - the Y of the dirty regionw - the width of the dirty regionh - the height of the dirty regionmanager - the current RepaintManager
true if the call is delegated to the manager with a
transformed rectangle, false otherwise
public static void hackInitialization(RepaintManager sourceManager,
RepaintManager destinationManager)
hack is true, the private fields paintManager
and bufferStrategyType are copied via reflection from the source
manager into the destination manager.
sourceManager - destinationManager -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||