net.vncviewer
Class DesktopCanvas

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Canvas
          extended by net.vncviewer.DesktopCanvas
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable, javax.accessibility.Accessible

public class DesktopCanvas
extends java.awt.Canvas
implements java.lang.Runnable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DesktopCanvas(CConn cc_)
           
 
Method Summary
 void beginRect(int x, int y, int w, int h, int encoding)
           
 void checkClipboard()
           
 void copyRect(int x, int y, int w, int h, int srcX, int srcY)
           
 void endRect(int x, int y, int w, int h, int encoding)
           
 void fillRect(int x, int y, int w, int h, int pix)
           
 java.awt.Dimension getMinimumSize()
           
 PixelFormat getPF()
           
 java.awt.Dimension getPreferredSize()
           
 boolean handleEvent(java.awt.Event event)
           
 void imageRect(int x, int y, int w, int h, byte[] pix, int offset)
           
 void initGraphics()
           
 void initPantograph()
           
 boolean keyDown(java.awt.Event e, int key)
           
 boolean keyUp(java.awt.Event e, int key)
           
 void paint(java.awt.Graphics g)
           
 void resize()
           
 void run()
           
 void setColourMapEntries(int firstColour, int nColours, int[] rgbs)
           
 void setCursor(int hotspotX, int hotspotY, int w, int h, byte[] data, byte[] mask)
           
 void setVideoLocation(java.awt.Point p)
           
 void update(java.awt.Graphics g)
           
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DesktopCanvas

public DesktopCanvas(CConn cc_)
Method Detail

initGraphics

public void initGraphics()

getPF

public final PixelFormat getPF()

setCursor

public void setCursor(int hotspotX,
                      int hotspotY,
                      int w,
                      int h,
                      byte[] data,
                      byte[] mask)

setColourMapEntries

public void setColourMapEntries(int firstColour,
                                int nColours,
                                int[] rgbs)

resize

public void resize()

beginRect

public void beginRect(int x,
                      int y,
                      int w,
                      int h,
                      int encoding)

endRect

public void endRect(int x,
                    int y,
                    int w,
                    int h,
                    int encoding)

fillRect

public final void fillRect(int x,
                           int y,
                           int w,
                           int h,
                           int pix)

imageRect

public final void imageRect(int x,
                            int y,
                            int w,
                            int h,
                            byte[] pix,
                            int offset)

copyRect

public final void copyRect(int x,
                           int y,
                           int w,
                           int h,
                           int srcX,
                           int srcY)

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class java.awt.Component

getMinimumSize

public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class java.awt.Component

update

public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Canvas

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Canvas

checkClipboard

public void checkClipboard()

initPantograph

public void initPantograph()

setVideoLocation

public void setVideoLocation(java.awt.Point p)

keyDown

public boolean keyDown(java.awt.Event e,
                       int key)
Overrides:
keyDown in class java.awt.Component

keyUp

public boolean keyUp(java.awt.Event e,
                     int key)
Overrides:
keyUp in class java.awt.Component

handleEvent

public boolean handleEvent(java.awt.Event event)
Overrides:
handleEvent in class java.awt.Component

run

public void run()
Specified by:
run in interface java.lang.Runnable