Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.ui.util
Class DebugRepaintManager  view DebugRepaintManager download DebugRepaintManager.java

java.lang.Object
  extended byjavax.swing.RepaintManager
      extended byjpicedt.ui.util.DebugRepaintManager

public class DebugRepaintManager
extends javax.swing.RepaintManager

A RepaintManager that may used for debugging purpose

Print out information about adding and/or painting dirty regions
How to use it :
- Set DEBUG_PAINTING to TRUE in JPicEdt.java
- launch jpicedt with "-redir=standard"


Nested Class Summary
 
Nested classes inherited from class javax.swing.RepaintManager
 
Field Summary
private static boolean ONLY_JPICEDT_COMPONENTS
           
 
Fields inherited from class javax.swing.RepaintManager
 
Constructor Summary
DebugRepaintManager()
          creates a new DebugRepaintManager with double-buffering turned off
 
Method Summary
 void addDirtyRegion(javax.swing.JComponent c, int x, int y, int w, int h)
          Add a component in the list of components that should be refreshed.
 void paintDirtyRegions()
          Paint all of the components that have been marked dirty.
 
Methods inherited from class javax.swing.RepaintManager
addInvalidComponent, currentManager, currentManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, removeInvalidComponent, setCurrentManager, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ONLY_JPICEDT_COMPONENTS

private static final boolean ONLY_JPICEDT_COMPONENTS
See Also:
Constant Field Values
Constructor Detail

DebugRepaintManager

public DebugRepaintManager()
creates a new DebugRepaintManager with double-buffering turned off

Method Detail

addDirtyRegion

public void addDirtyRegion(javax.swing.JComponent c,
                           int x,
                           int y,
                           int w,
                           int h)
Add a component in the list of components that should be refreshed. If c already has a dirty region, the rectangle (x,y,w,h) will be unioned with the region that should be redrawn.


paintDirtyRegions

public void paintDirtyRegions()
Paint all of the components that have been marked dirty.