Packages This Package Prev Next Index
public abstract class java.awt.Toolkit extends java.lang.Object (I-§1.12) { // Constructors public Toolkit(); §1.41.1 // Methods public abstract int §1.41.2 checkImage(Image image, int width, int height, ImageObserver observer); protected abstract ButtonPeer §1.41.3 createButton(Button target); protected abstract CanvasPeer §1.41.4 createCanvas(Canvas target); protected abstract CheckboxPeer §1.41.5 createCheckbox(Checkbox target); protected abstract CheckboxMenuItemPeer §1.41.6 createCheckboxMenuItem(CheckboxMenuItem target); protected abstract ChoicePeer §1.41.7 createChoice(Choice target); protected abstract DialogPeer §1.41.8 createDialog(Dialog target); protected abstract FileDialogPeer §1.41.9 createFileDialog(FileDialog target); protected abstract FramePeer createFrame(Frame target); §1.41.10 public abstract Image §1.41.11 createImage(ImageProducer producer); protected abstract LabelPeer createLabel(Label target); §1.41.12 protected abstract ListPeer createList(List target); §1.41.13 protected abstract MenuPeer createMenu(Menu target); §1.41.14 protected abstract MenuBarPeer §1.41.15 createMenuBar(MenuBar target); protected abstract MenuItemPeer §1.41.16 createMenuItem(MenuItem target); protected abstract PanelPeer createPanel(Panel target); §1.41.17 protected abstract ScrollbarPeer §1.41.18 createScrollbar(Scrollbar target); protected abstract TextAreaPeer §1.41.19 createTextArea(TextArea target); protected abstract TextFieldPeer §1.41.20 createTextField(TextField target); protected abstract WindowPeer §1.41.21 createWindow(Window target); public abstract ColorModel getColorModel(); §1.41.22 public static Toolkit getDefaultToolkit(); §1.41.23 public abstract String[] getFontList(); §1.41.24 public abstract FontMetrics §1.41.25 getFontMetrics(Font font); public abstract Image getImage(String filename); §1.41.26 public abstract Image getImage(URL url); §1.41.27 public abstract int getScreenResolution(); §1.41.28 public abstract Dimension getScreenSize(); §1.41.29 public abstract boolean §1.41.30 prepareImage(Image image, int width, int height, ImageObserver observer); public abstract void sync(); §1.41.31 }This class is the abstract superclass of all actual implementations of the Abstract Window Toolkit. Subclasses of the class are used to bind the various components to particular native toolkit implementations.
public Toolkit()
public abstract int
checkImage(Image image, int width, int height,
ImageObserver observer)
image
-
the image whose status is being checked
width
-
the width of the scaled version to check the status of
height
-
the height of the scaled version to check the status of
observer
-
the ImageObserver object to be notified as the image is being
prepared
protected abstract ButtonPeer createButton(Button target)
target
-
the button to be implemented
protected abstract CanvasPeer createCanvas(Canvas target)
target
-
the canvas to be implemented
protected abstract CheckboxPeer
createCheckbox(Checkbox target)
target
-
the check box to be implemented
protected abstract CheckboxMenuItemPeer
createCheckboxMenuItem(CheckboxMenuItem target)
target
-
the check box menu item to be implemented
protected abstract ChoicePeer createChoice(Choice target)
target
-
the choice list to be implemented
protected abstract DialogPeer createDialog(Dialog target)
target
-
the dialog window to be implemented
protected abstract FileDialogPeer
createFileDialog(FileDialog target)
target
-
the filie dialog window to be implemented
protected abstract FramePeer createFrame(Frame target)
target
-
the frame to be implemented
public abstract Image createImage(ImageProducer producer)
target
-
the image to be implemented
protected abstract LabelPeer createLabel(Label target)
target
-
the label to be implemented
protected abstract ListPeer createList(List target)
target
-
the scrolling list to be implemented
protected abstract MenuPeer createMenu(Menu target)
target
-
the menu to be implemented
protected abstract MenuBarPeer
createMenuBar(MenuBar target)
target
-
the menu bar to be implemented
protected abstract MenuItemPeer
createMenuItem(MenuItem target)
target
-
the menu item to be implemented
protected abstract PanelPeer createPanel(Panel target)
target
-
the panel to be implemented
protected abstract ScrollbarPeer
createScrollbar(Scrollbar target)
target
-
the scroll bar to be implemented
protected abstract TextAreaPeer
createTextArea(TextArea target)
target
-
the text area to be implemented
protected abstract TextFieldPeer
createTextField(TextField target)
target
-
the text field to be implemented
protected abstract WindowPeer createWindow(Window target)
target
-
the window to be implemented
public abstract ColorModel getColorModel()
public static Toolkit getDefaultToolkit()
public abstract String[] getFontList()
public abstract FontMetrics getFontMetrics(Font font)
font
-
a font
public abstract Image getImage(String filename)
filename
-
a file containing pixel data in a recognized file format
public abstract Image getImage(URL url)
url
-
a URL which specifies an image.
public abstract int getScreenResolution()
public abstract Dimension getScreenSize()
public abstract boolean
prepareImage(Image image, int width, int height,
ImageObserver observer)
image
-
the image to prepare a screen representation for
width
-
the width of the desired screen representation
height
-
the height of the desired screen representation
observer
-
the ImageObserver object to be notified as the image is being
prepared
public abstract void sync()
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)