VNCj

gnu.rfb
Class CoRREStub

java.lang.Object
  |
  +--gnu.rfb.Rect
        |
        +--gnu.rfb.CoRREStub
All Implemented Interfaces:
Cloneable

public class CoRREStub
extends Rect

CoRRE - Compact RRE Encoding.

We have an RRE header structure giving the number of subrectangles following. Finally the data follows in the form [bgpixel][subrect][subrect]... where each [subrect] is [pixel][rfbCoRRERectangle]. This means that the whole rectangle must be at most 255x255 pixels.


Field Summary
 CoRRE[] rects
           
 
Fields inherited from class gnu.rfb.Rect
count, h, w, x, y
 
Constructor Summary
CoRREStub(int[] pixels, PixelFormat pixelFormat, int offsetX, int offsetY, int scanline, int x, int y, int w, int h)
           
CoRREStub(int x, int y, int w, int h, CoRRE[] rects)
           
 
Method Summary
 Object clone()
           
 void transform(int transformX, int transformY)
           
 void writeData(DataOutput output)
           
 
Methods inherited from class gnu.rfb.Rect
bestEncoding, copyPixels, encode, encode, encode, getBackground, toString, writePixel
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rects

public CoRRE[] rects
Constructor Detail

CoRREStub

public CoRREStub(int[] pixels,
                 PixelFormat pixelFormat,
                 int offsetX,
                 int offsetY,
                 int scanline,
                 int x,
                 int y,
                 int w,
                 int h)

CoRREStub

public CoRREStub(int x,
                 int y,
                 int w,
                 int h,
                 CoRRE[] rects)
Method Detail

writeData

public void writeData(DataOutput output)
               throws IOException
Overrides:
writeData in class Rect
IOException

transform

public void transform(int transformX,
                      int transformY)
Overrides:
transform in class Rect

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Rect
CloneNotSupportedException

VNCj