VNCj

gnu.vnc.awt
Class VNCRepaintManager

java.lang.Object
  |
  +--javax.swing.RepaintManager
        |
        +--gnu.vnc.awt.VNCRepaintManager

class VNCRepaintManager
extends RepaintManager

A JFC repaint manager that writes to VNC queues. Internally creates a VNCOwnerRepaintManager for each managed PixelsOwner..


Nested Class Summary
 
Nested classes inherited from class javax.swing.RepaintManager
 
Field Summary
private  Map managers
           
private static VNCRepaintManager repaintManager
           
 
Fields inherited from class javax.swing.RepaintManager
 
Constructor Summary
private VNCRepaintManager()
           
 
Method Summary
 void addDirtyRegion(JComponent component, int x, int y, int w, int h)
           
 void addInvalidComponent(JComponent component)
           
static VNCRepaintManager currentManager()
           
 void frameBufferUpdate(PixelsOwner pixelsOwner, RFBClient client, boolean incremental, int x, int y, int w, int h)
           
 Rectangle getDirtyRegion(JComponent component)
           
private static PixelsOwner getPixelsOwner(Component component)
           
 void manage(PixelsOwner pixelsOwner, RFBClients clients)
           
 void markCompletelyClean(JComponent component)
           
 void paintDirtyRegions()
           
 void removeInvalidComponent(JComponent component)
           
 void unmanage(PixelsOwner pixelsOwner)
           
 void validateInvalidComponents()
           
 
Methods inherited from class javax.swing.RepaintManager
currentManager, currentManager, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyDirty, setCurrentManager, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

repaintManager

private static VNCRepaintManager repaintManager

managers

private Map managers
Constructor Detail

VNCRepaintManager

private VNCRepaintManager()
Method Detail

currentManager

public static VNCRepaintManager currentManager()

manage

public void manage(PixelsOwner pixelsOwner,
                   RFBClients clients)

unmanage

public void unmanage(PixelsOwner pixelsOwner)

frameBufferUpdate

public void frameBufferUpdate(PixelsOwner pixelsOwner,
                              RFBClient client,
                              boolean incremental,
                              int x,
                              int y,
                              int w,
                              int h)
                       throws IOException
IOException

addInvalidComponent

public void addInvalidComponent(JComponent component)
Overrides:
addInvalidComponent in class RepaintManager

removeInvalidComponent

public void removeInvalidComponent(JComponent component)
Overrides:
removeInvalidComponent in class RepaintManager

addDirtyRegion

public void addDirtyRegion(JComponent component,
                           int x,
                           int y,
                           int w,
                           int h)
Overrides:
addDirtyRegion in class RepaintManager

getDirtyRegion

public Rectangle getDirtyRegion(JComponent component)
Overrides:
getDirtyRegion in class RepaintManager

markCompletelyClean

public void markCompletelyClean(JComponent component)
Overrides:
markCompletelyClean in class RepaintManager

paintDirtyRegions

public void paintDirtyRegions()
Overrides:
paintDirtyRegions in class RepaintManager

validateInvalidComponents

public void validateInvalidComponents()
Overrides:
validateInvalidComponents in class RepaintManager

getPixelsOwner

private static PixelsOwner getPixelsOwner(Component component)

VNCj