org.xwt.plat
Class AWT.AWTSurface

java.lang.Object
  extended byorg.xwt.PixelBuffer
      extended byorg.xwt.Surface
          extended byorg.xwt.Surface.DoubleBufferedSurface
              extended byorg.xwt.plat.AWT.AWTSurface
All Implemented Interfaces:
java.awt.event.ComponentListener, java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.WindowListener
Direct Known Subclasses:
Java2.Java2Surface
Enclosing class:
AWT

protected static class AWT.AWTSurface
extends Surface.DoubleBufferedSurface
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.KeyListener, java.awt.event.ComponentListener, java.awt.event.WindowListener


Nested Class Summary
 
Nested classes inherited from class org.xwt.Surface
Surface.DoubleBufferedSurface, Surface.SimpleMessage
 
Field Summary
protected  java.awt.Insets insets
          our component's insets
protected  java.awt.Graphics ourGraphics
          a Graphics context on window
 
Fields inherited from class org.xwt.Surface
allSurfaces, alt, button1, button2, button3, control, cursor, maximized, minimized, mousex, mousey, root, shift
 
Method Summary
 void _dispose()
           
protected  void _setMaximized(boolean b)
           
protected  void _setMinimized(boolean b)
           
 void _setSize(int width, int height)
           
 void blit(PixelBuffer s, int sx, int sy, int dx, int dy, int dx2, int dy2)
          copies a region from the doublebuffer to this surface
 void componentHidden(java.awt.event.ComponentEvent e)
           
 void componentMoved(java.awt.event.ComponentEvent e)
           
 void componentResized(java.awt.event.ComponentEvent e)
           
 void componentResized(int newwidth, int newheight)
           
 void componentShown(java.awt.event.ComponentEvent e)
           
 void keyPressed(java.awt.event.KeyEvent k)
           
 void keyReleased(java.awt.event.KeyEvent k)
           
 void keyTyped(java.awt.event.KeyEvent k)
           
protected  void makeVisible()
           
 void mouseClicked(java.awt.event.MouseEvent m)
           
 void mouseDragged(java.awt.event.MouseEvent m)
           
 void mouseEntered(java.awt.event.MouseEvent m)
           
 void mouseExited(java.awt.event.MouseEvent m)
           
 void mouseMoved(java.awt.event.MouseEvent m)
           
 void mousePressed(java.awt.event.MouseEvent m)
           
 void mouseReleased(java.awt.event.MouseEvent m)
           
 void setIcon(Picture i)
           
 void setInvisible(boolean b)
           
 void setLocation()
           
 void setTitleBarText(java.lang.String s)
           
 void syncCursor()
           
 void toBack()
           
 void toFront()
           
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class org.xwt.Surface.DoubleBufferedSurface
Dirty, drawPicture, drawPictureAlphaOnly, fillTrapezoid, render_, render
 
Methods inherited from class org.xwt.Surface
Click, Close, dirty, dispose, DoubleClick, Focused, getHeight, getWidth, KeyPressed, KeyReleased, Maximized, Minimized, Move, PosChange, Press, Refresh, Release, setLimits, setMaximized, setMinimized, setSize, SizeChange
 
Methods inherited from class org.xwt.PixelBuffer
drawLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

insets

protected java.awt.Insets insets
our component's insets


ourGraphics

protected java.awt.Graphics ourGraphics
a Graphics context on window

Method Detail

blit

public void blit(PixelBuffer s,
                 int sx,
                 int sy,
                 int dx,
                 int dy,
                 int dx2,
                 int dy2)
Description copied from class: Surface.DoubleBufferedSurface
copies a region from the doublebuffer to this surface

Specified by:
blit in class Surface.DoubleBufferedSurface

toBack

public void toBack()
Specified by:
toBack in class Surface

toFront

public void toFront()
Specified by:
toFront in class Surface

setLocation

public void setLocation()
Specified by:
setLocation in class Surface

setTitleBarText

public void setTitleBarText(java.lang.String s)
Specified by:
setTitleBarText in class Surface

setIcon

public void setIcon(Picture i)
Specified by:
setIcon in class Surface

_setSize

public void _setSize(int width,
                     int height)
Specified by:
_setSize in class Surface

setInvisible

public void setInvisible(boolean b)
Specified by:
setInvisible in class Surface

_setMinimized

protected void _setMinimized(boolean b)
Specified by:
_setMinimized in class Surface

_setMaximized

protected void _setMaximized(boolean b)
Specified by:
_setMaximized in class Surface

makeVisible

protected void makeVisible()

_dispose

public void _dispose()
Specified by:
_dispose in class Surface

syncCursor

public void syncCursor()
Specified by:
syncCursor in class Surface

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
Specified by:
componentHidden in interface java.awt.event.ComponentListener

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
Specified by:
componentShown in interface java.awt.event.ComponentListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
Specified by:
componentMoved in interface java.awt.event.ComponentListener

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Specified by:
componentResized in interface java.awt.event.ComponentListener

componentResized

public void componentResized(int newwidth,
                             int newheight)

keyTyped

public void keyTyped(java.awt.event.KeyEvent k)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent k)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent k)
Specified by:
keyReleased in interface java.awt.event.KeyListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent m)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent m)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent m)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent m)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent m)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent m)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent m)
Specified by:
mouseClicked in interface java.awt.event.MouseListener