org.xwt.plat
Class AWT

java.lang.Object
  extended byorg.xwt.Platform
      extended byorg.xwt.plat.JVM
          extended byorg.xwt.plat.AWT
Direct Known Subclasses:
Java2

public class AWT
extends JVM

Platform subclass for all VM's providing AWT 1.1 functionality


Nested Class Summary
protected static class AWT.AWTPicture
           
protected static class AWT.AWTPixelBuffer
           
protected static class AWT.AWTSurface
           
 
Field Summary
 
Fields inherited from class org.xwt.Platform
build
 
Constructor Summary
AWT()
           
 
Method Summary
protected  Picture _createPicture(int[] b, int w, int h)
           
protected  PixelBuffer _createPixelBuffer(int w, int h, Surface owner)
           
protected  Surface _createSurface(Box b, boolean framed)
          this method invokes the platform _createSurface() method and then enforces a few post-call invariants
protected  void _criticalAbort(java.lang.String message)
          used to notify the user of very serious failures; usually used when logging is not working or unavailable
protected  Picture _decodeJPEG(java.io.InputStream is, java.lang.String name)
           
protected  java.lang.String _fileDialog(java.lang.String suggestedFileName, boolean write)
          displays a platform-specific "open file" dialog and returns the chosen filename, or null if the user hit cancel
protected  java.lang.String _getClipBoard()
           
protected  int _getScreenHeight()
           
protected  int _getScreenWidth()
           
protected  void _setClipBoard(java.lang.String s)
           
protected  java.lang.String getDescriptiveName()
          a string describing the VM
protected static int modifiersToButtonNumber(int modifiers)
          some platforms (cough, cough, NetscapeVM) have totally broken modifier masks; they will need to override this
protected  void postInit()
           
 
Methods inherited from class org.xwt.Platform
_altKeyName, _createAlphaOnlyPicture, _detectProxy, _getBuiltinInputStream, _getEnv, _getScheduler, _getSocket, _inputStreamToByteArray, _isCaseSensitive, _maxThreads, _needsAutoClick, _needsAutoDoubleClick, _newBrowserWindow, _running, _supressDirtyOnResize, altKeyName, createAlphaOnlyPicture, createPicture, createPixelBuffer, createSurface, criticalAbort, decodeJPEG, detectProxy, fileDialog, forceLoad, getBuiltinInputStream, getClipBoard, getEnv, getScheduler, getScreenHeight, getScreenWidth, getSocket, init, inputStreamToByteArray, isCaseSensitive, maxThreads, needsAutoClick, needsAutoDoubleClick, newBrowserWindow, running, setClipBoard, supressDirtyOnResize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWT

public AWT()
Method Detail

getDescriptiveName

protected java.lang.String getDescriptiveName()
Description copied from class: Platform
a string describing the VM

Overrides:
getDescriptiveName in class Platform

_createPixelBuffer

protected PixelBuffer _createPixelBuffer(int w,
                                         int h,
                                         Surface owner)
Overrides:
_createPixelBuffer in class Platform

_createPicture

protected Picture _createPicture(int[] b,
                                 int w,
                                 int h)
Overrides:
_createPicture in class Platform

_getScreenWidth

protected int _getScreenWidth()
Overrides:
_getScreenWidth in class Platform

_getScreenHeight

protected int _getScreenHeight()
Overrides:
_getScreenHeight in class Platform

_createSurface

protected Surface _createSurface(Box b,
                                 boolean framed)
Description copied from class: Platform
this method invokes the platform _createSurface() method and then enforces a few post-call invariants

Overrides:
_createSurface in class Platform

postInit

protected void postInit()
Overrides:
postInit in class Platform

_criticalAbort

protected void _criticalAbort(java.lang.String message)
Description copied from class: Platform
used to notify the user of very serious failures; usually used when logging is not working or unavailable

Overrides:
_criticalAbort in class Platform

_getClipBoard

protected java.lang.String _getClipBoard()
Overrides:
_getClipBoard in class Platform

_setClipBoard

protected void _setClipBoard(java.lang.String s)
Overrides:
_setClipBoard in class Platform

modifiersToButtonNumber

protected static int modifiersToButtonNumber(int modifiers)
some platforms (cough, cough, NetscapeVM) have totally broken modifier masks; they will need to override this


_fileDialog

protected java.lang.String _fileDialog(java.lang.String suggestedFileName,
                                       boolean write)
Description copied from class: Platform
displays a platform-specific "open file" dialog and returns the chosen filename, or null if the user hit cancel

Overrides:
_fileDialog in class Platform

_decodeJPEG

protected Picture _decodeJPEG(java.io.InputStream is,
                              java.lang.String name)
Overrides:
_decodeJPEG in class Platform