|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Toolkit
An AWT toolkit. It is used to bind the abstract AWT classes to a particular native toolkit implementation.
Constructor Summary | |
Toolkit()
|
Method Summary | |
abstract int |
checkImage(Image image,
int width,
int height,
java.awt.image.ImageObserver observer)
Returns the status of the construction of the indicated method at the indicated width and height for the default screen. |
protected abstract java.awt.peer.ButtonPeer |
createButton(Button target)
Uses the specified Peer interface to create a new Button. |
protected abstract java.awt.peer.CanvasPeer |
createCanvas(Canvas target)
Uses the specified Peer interface to create a new Canvas. |
protected abstract java.awt.peer.CheckboxPeer |
createCheckbox(Checkbox target)
Uses the specified Peer interface to create a new Checkbox. |
protected abstract java.awt.peer.CheckboxMenuItemPeer |
createCheckboxMenuItem(CheckboxMenuItem target)
Uses the specified Peer interface to create a new CheckboxMenuItem. |
protected abstract java.awt.peer.ChoicePeer |
createChoice(Choice target)
Uses the specified Peer interface to create a new Choice. |
protected abstract java.awt.peer.DialogPeer |
createDialog(Dialog target)
Uses the specified Peer interface to create a new Dialog. |
protected abstract java.awt.peer.FileDialogPeer |
createFileDialog(FileDialog target)
Uses the specified Peer interface to create a new FileDialog. |
protected abstract java.awt.peer.FramePeer |
createFrame(Frame target)
Uses the specified Peer interface to create a new Frame. |
abstract Image |
createImage(java.awt.image.ImageProducer producer)
Creates an image with the specified image producer. |
protected abstract java.awt.peer.LabelPeer |
createLabel(Label target)
Uses the specified Peer interface to create a new Label. |
protected abstract java.awt.peer.ListPeer |
createList(List target)
Uses the specified Peer interface to create a new List. |
protected abstract java.awt.peer.MenuPeer |
createMenu(Menu target)
Uses the specified Peer interface to create a new Menu. |
protected abstract java.awt.peer.MenuBarPeer |
createMenuBar(MenuBar target)
Uses the specified Peer interface to create a new MenuBar. |
protected abstract java.awt.peer.MenuItemPeer |
createMenuItem(MenuItem target)
Uses the specified Peer interface to create a new MenuItem. |
protected abstract java.awt.peer.PanelPeer |
createPanel(Panel target)
Uses the specified Peer interface to create a new Panel. |
protected abstract java.awt.peer.ScrollbarPeer |
createScrollbar(Scrollbar target)
Uses the specified Peer interface to create a new Scrollbar. |
protected abstract java.awt.peer.TextAreaPeer |
createTextArea(TextArea target)
Uses the specified Peer interface to create a new TextArea. |
protected abstract java.awt.peer.TextFieldPeer |
createTextField(TextField target)
Uses the specified Peer interface to create a new TextField. |
protected abstract java.awt.peer.WindowPeer |
createWindow(Window target)
Uses the specified Peer interface to create a new Window. |
abstract java.awt.image.ColorModel |
getColorModel()
Returns the ColorModel of the screen. |
static Toolkit |
getDefaultToolkit()
Returns the default toolkit. |
abstract String[] |
getFontList()
Returns the names of the available fonts. |
abstract FontMetrics |
getFontMetrics(Font font)
Returns the screen metrics of the font. |
abstract Image |
getImage(String filename)
Returns an image which gets pixel data from the specified file. |
abstract Image |
getImage(URL url)
Returns an image which gets pixel data from the specified URL. |
abstract int |
getScreenResolution()
Returns the screen resolution in dots-per-inch. |
abstract Dimension |
getScreenSize()
Gets the size of the screen. |
abstract boolean |
prepareImage(Image image,
int width,
int height,
java.awt.image.ImageObserver observer)
Prepares an image for rendering on the default screen at the specified width and height. |
abstract void |
sync()
Syncs the graphics state; useful when doing animation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Toolkit()
Method Detail |
protected abstract java.awt.peer.ButtonPeer createButton(Button target)
target
- the Button to be createdprotected abstract java.awt.peer.TextFieldPeer createTextField(TextField target)
target
- the TextField to be createdprotected abstract java.awt.peer.LabelPeer createLabel(Label target)
target
- the Label to be createdprotected abstract java.awt.peer.ListPeer createList(List target)
target
- the List to be createdprotected abstract java.awt.peer.CheckboxPeer createCheckbox(Checkbox target)
target
- the Checkbox to be createdprotected abstract java.awt.peer.ScrollbarPeer createScrollbar(Scrollbar target)
target
- the Scrollbar to be createdprotected abstract java.awt.peer.TextAreaPeer createTextArea(TextArea target)
target
- the TextArea to be createdprotected abstract java.awt.peer.ChoicePeer createChoice(Choice target)
target
- the Choice to be createdprotected abstract java.awt.peer.FramePeer createFrame(Frame target)
target
- the Frame to be createdprotected abstract java.awt.peer.CanvasPeer createCanvas(Canvas target)
target
- the Canvas to be createdprotected abstract java.awt.peer.PanelPeer createPanel(Panel target)
target
- the Panel to be createdprotected abstract java.awt.peer.WindowPeer createWindow(Window target)
target
- the Window to be createdprotected abstract java.awt.peer.DialogPeer createDialog(Dialog target)
target
- the Dialog to be createdprotected abstract java.awt.peer.MenuBarPeer createMenuBar(MenuBar target)
target
- the MenuBar to be createdprotected abstract java.awt.peer.MenuPeer createMenu(Menu target)
target
- the Menu to be createdprotected abstract java.awt.peer.MenuItemPeer createMenuItem(MenuItem target)
target
- the MenuItem to be createdprotected abstract java.awt.peer.FileDialogPeer createFileDialog(FileDialog target)
target
- the FileDialog to be createdprotected abstract java.awt.peer.CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target)
target
- the CheckboxMenuItem to be createdpublic abstract Dimension getScreenSize()
public abstract int getScreenResolution()
public abstract java.awt.image.ColorModel getColorModel()
public abstract String[] getFontList()
public abstract FontMetrics getFontMetrics(Font font)
public abstract void sync()
public static Toolkit getDefaultToolkit()
AWTError
- Toolkit not found or could not be instantiated.public abstract Image getImage(String filename)
filename
- the file containing the pixel data in one of
the recognized file formatspublic abstract Image getImage(URL url)
url
- the URL to use in fetching the pixel datapublic abstract boolean prepareImage(Image image, int width, int height, java.awt.image.ImageObserver observer)
public abstract int checkImage(Image image, int width, int height, java.awt.image.ImageObserver observer)
public abstract Image createImage(java.awt.image.ImageProducer producer)
producer
- the image producer to be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |