VNCj

gnu.rfb
Class RRE

java.lang.Object
  |
  +--gnu.rfb.Rect
        |
        +--gnu.rfb.RRE
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CoRRE

public class RRE
extends Rect

RRE - Rise-and-Run-length 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][rfbRectangle]).


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

Field Detail

pixelFormat

public PixelFormat pixelFormat

bgpixel

public int bgpixel

subrects

public RRE.SubRect[] subrects
Constructor Detail

RRE

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

RRE

public RRE(int x,
           int y,
           int w,
           int h,
           PixelFormat pixelFormat,
           int bgpixel,
           RRE.SubRect[] subrects)
Method Detail

writeData

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

clone

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

VNCj