All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.JPM.StubToolkit

java.lang.Object
   |
   +----java.awt.Toolkit
           |
           +----Acme.JPM.StubToolkit

public class StubToolkit
extends Toolkit
Bare-bones Toolkit for non-GUI applications.

This Toolkit is for doing image manipulation in a non-GUI application.

You could do a Toolkit.getDefaultToolkit() and use that from your non-GUI applications. The two problems with that are it takes way too long to initialize, and it starts a couple of daemon Threads that keep your application from exiting. Instead, do a new Acme.JPM.StubToolkit().

The only public method of interest is the constructor.

Adapted by Jef Poskanzer from:

 TinyToolkit.java   1.10 95/12/14 Arthur van Hoff
 TinyImage.java     1.4 95/12/09 Arthur van Hoff
 TinyGraphics.java  1.10 95/12/04 Arthur van Hoff
 

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o StubToolkit()

Method Index

 o beep()
 o checkImage(Image, int, int, ImageObserver)
 o createButton(Button)
 o createCanvas(Canvas)
 o createCheckbox(Checkbox)
 o createCheckboxMenuItem(CheckboxMenuItem)
 o createChoice(Choice)
 o createDialog(Dialog)
 o createDragSourceContextPeer(DragSource, Component)
 o createFileDialog(FileDialog)
 o createFrame(Frame)
 o createImage(byte[], int, int)
 o createImage(ImageProducer)
 o createLabel(Label)
 o createList(List)
 o createMenu(Menu)
 o createMenuBar(MenuBar)
 o createMenuItem(MenuItem)
 o createPanel(Panel)
 o createPopupMenu(PopupMenu)
 o createScrollbar(Scrollbar)
 o createScrollPane(ScrollPane)
 o createTextArea(TextArea)
 o createTextField(TextField)
 o createWindow(Window)
 o getColorModel()
 o getDefaultToolkit()
 o getFontList()
 o getFontMetrics(Font)
 o getFontPeer(String, int)
 o getImage(String)
 o getImage(URL)
 o getPrintJob(Frame, String, Properties)
 o getScreenResolution()
 o getScreenSize()
 o getSystemClipboard()
 o getSystemEventQueueImpl()
 o prepareImage(Image, int, int, ImageObserver)
 o sync()

Constructors

 o StubToolkit
 public StubToolkit()

Methods

 o createWindow
 public WindowPeer createWindow(Window target)
Overrides:
createWindow in class Toolkit
 o createFrame
 public FramePeer createFrame(Frame target)
Overrides:
createFrame in class Toolkit
 o createCanvas
 public CanvasPeer createCanvas(Canvas target)
Overrides:
createCanvas in class Toolkit
 o createPanel
 public PanelPeer createPanel(Panel target)
Overrides:
createPanel in class Toolkit
 o createButton
 public ButtonPeer createButton(Button target)
Overrides:
createButton in class Toolkit
 o createTextField
 public TextFieldPeer createTextField(TextField target)
Overrides:
createTextField in class Toolkit
 o createChoice
 public ChoicePeer createChoice(Choice target)
Overrides:
createChoice in class Toolkit
 o createLabel
 public LabelPeer createLabel(Label target)
Overrides:
createLabel in class Toolkit
 o createList
 public ListPeer createList(List target)
Overrides:
createList in class Toolkit
 o createCheckbox
 public CheckboxPeer createCheckbox(Checkbox target)
Overrides:
createCheckbox in class Toolkit
 o createScrollbar
 public ScrollbarPeer createScrollbar(Scrollbar target)
Overrides:
createScrollbar in class Toolkit
 o createScrollPane
 public ScrollPanePeer createScrollPane(ScrollPane target)
Overrides:
createScrollPane in class Toolkit
 o createTextArea
 public TextAreaPeer createTextArea(TextArea target)
Overrides:
createTextArea in class Toolkit
 o createDialog
 public DialogPeer createDialog(Dialog target)
Overrides:
createDialog in class Toolkit
 o createFileDialog
 public FileDialogPeer createFileDialog(FileDialog target)
Overrides:
createFileDialog in class Toolkit
 o createMenuBar
 public MenuBarPeer createMenuBar(MenuBar target)
Overrides:
createMenuBar in class Toolkit
 o createMenu
 public MenuPeer createMenu(Menu target)
Overrides:
createMenu in class Toolkit
 o createPopupMenu
 public PopupMenuPeer createPopupMenu(PopupMenu target)
Overrides:
createPopupMenu in class Toolkit
 o createMenuItem
 public MenuItemPeer createMenuItem(MenuItem target)
Overrides:
createMenuItem in class Toolkit
 o createCheckboxMenuItem
 public CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target)
Overrides:
createCheckboxMenuItem in class Toolkit
 o getFontPeer
 public FontPeer getFontPeer(String name,
                             int style)
Overrides:
getFontPeer in class Toolkit
 o getScreenSize
 public Dimension getScreenSize()
Overrides:
getScreenSize in class Toolkit
 o getColorModel
 public synchronized ColorModel getColorModel()
Overrides:
getColorModel in class Toolkit
 o getDefaultToolkit
 public static synchronized Toolkit getDefaultToolkit()
 o getScreenResolution
 public int getScreenResolution()
Overrides:
getScreenResolution in class Toolkit
 o getFontList
 public String[] getFontList()
Overrides:
getFontList in class Toolkit
 o getFontMetrics
 public FontMetrics getFontMetrics(Font font)
Overrides:
getFontMetrics in class Toolkit
 o sync
 public void sync()
Overrides:
sync in class Toolkit
 o getImage
 public Image getImage(String filename)
Overrides:
getImage in class Toolkit
 o getImage
 public Image getImage(URL url)
Overrides:
getImage in class Toolkit
 o checkImage
 public int checkImage(Image img,
                       int w,
                       int h,
                       ImageObserver o)
Overrides:
checkImage in class Toolkit
 o prepareImage
 public boolean prepareImage(Image img,
                             int w,
                             int h,
                             ImageObserver o)
Overrides:
prepareImage in class Toolkit
 o createImage
 public Image createImage(ImageProducer producer)
Overrides:
createImage in class Toolkit
 o createImage
 public Image createImage(byte imagedata[],
                          int imageoffset,
                          int imagelength)
Overrides:
createImage in class Toolkit
 o getPrintJob
 public PrintJob getPrintJob(Frame frame,
                             String jobtitle,
                             Properties props)
Overrides:
getPrintJob in class Toolkit
 o beep
 public void beep()
Overrides:
beep in class Toolkit
 o getSystemClipboard
 public Clipboard getSystemClipboard()
Overrides:
getSystemClipboard in class Toolkit
 o getSystemEventQueueImpl
 public EventQueue getSystemEventQueueImpl()
Overrides:
getSystemEventQueueImpl in class Toolkit
 o createDragSourceContextPeer
 public DragSourceContextPeer createDragSourceContextPeer(DragSource ds,
                                                          Component c)

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs