Method Summary |
|
native public void | beep() Emits an audio beep. |
public int | checkImage(Image img, int w, int h, ImageObserver o) Indicates the construction status of a specified image that is
being prepared for display.
If the values of the width and height arguments are both
-1 , this method returns the construction status of
a screen representation of the specified image in this toolkit.
Otherwise, this method returns the construction status of a
scaled representation of the image at the specified width
and height.
This method does not cause the image to begin loading.
An application must call prepareImage to force
the loading of an image.
This method is called by the component's checkImage
methods.
Information on the flags returned by this method can be found
with the definition of the ImageObserver interface.
Parameters: image - the image whose status is being checked. Parameters: width - the width of the scaled version whose status isbeing checked, or -1 . Parameters: height - the height of the scaled version whose statusis being checked, or -1 . Parameters: observer - the ImageObserver object to benotified as the image is being prepared. |
static int | checkScrImage(Image img, int w, int h, ImageObserver o) |
native static BufferedImage | createBufferedImage(BufferedImagePeer peer) |
public ButtonPeer | createButton(Button target) Creates this toolkit's implementation of Button using
the specified peer interface.
Parameters: target - the button to be implemented. |
public CanvasPeer | createCanvas(Canvas target) Creates this toolkit's implementation of Canvas using
the specified peer interface.
Parameters: target - the canvas to be implemented. |
public CheckboxPeer | createCheckbox(Checkbox target) Creates this toolkit's implementation of Checkbox using
the specified peer interface.
Parameters: target - the check box to be implemented. |
public CheckboxMenuItemPeer | createCheckboxMenuItem(CheckboxMenuItem target) Creates this toolkit's implementation of CheckboxMenuItem using
the specified peer interface.
Parameters: target - the checkbox menu item to be implemented. |
public ChoicePeer | createChoice(Choice target) Creates this toolkit's implementation of Choice using
the specified peer interface.
Parameters: target - the choice to be implemented. |
public DialogPeer | createDialog(Dialog target) Creates this toolkit's implementation of Dialog using
the specified peer interface.
Parameters: target - the dialog to be implemented. |
public FileDialogPeer | createFileDialog(FileDialog target) Creates this toolkit's implementation of FileDialog using
the specified peer interface.
Parameters: target - the file dialog to be implemented. |
public FramePeer | createFrame(Frame target) Creates this toolkit's implementation of Frame using
the specified peer interface.
Parameters: target - the frame to be implemented. |
public Image | createImage(ImageProducer producer) Creates an image with the specified image producer.
Parameters: producer - the image producer to be used. |
public LabelPeer | createLabel(Label target) Creates this toolkit's implementation of Label using
the specified peer interface.
Parameters: target - the label to be implemented. |
public ListPeer | createList(List target) Creates this toolkit's implementation of List using
the specified peer interface.
Parameters: target - the list to be implemented. |
public MenuPeer | createMenu(Menu target) Creates this toolkit's implementation of Menu using
the specified peer interface.
Parameters: target - the menu to be implemented. |
public MenuBarPeer | createMenuBar(MenuBar target) Creates this toolkit's implementation of MenuBar using
the specified peer interface.
Parameters: target - the menu bar to be implemented. |
public MenuItemPeer | createMenuItem(MenuItem target) Creates this toolkit's implementation of MenuItem using
the specified peer interface.
Parameters: target - the menu item to be implemented. |
public PanelPeer | createPanel(Panel target) Creates this toolkit's implementation of Panel using
the specified peer interface.
Parameters: target - the panel to be implemented. |
public PopupMenuPeer | createPopupMenu(PopupMenu target) Creates this toolkit's implementation of PopupMenu using
the specified peer interface.
Parameters: target - the popup menu to be implemented. |
public ScrollPanePeer | createScrollPane(ScrollPane target) Creates this toolkit's implementation of ScrollPane using
the specified peer interface.
Parameters: target - the scroll pane to be implemented. |
public ScrollbarPeer | createScrollbar(Scrollbar target) Creates this toolkit's implementation of Scrollbar using
the specified peer interface.
Parameters: target - the scroll bar to be implemented. |
public TextAreaPeer | createTextArea(TextArea target) Creates this toolkit's implementation of TextArea using
the specified peer interface.
Parameters: target - the text area to be implemented. |
public TextFieldPeer | createTextField(TextField target) Creates this toolkit's implementation of TextField using
the specified peer interface.
Parameters: target - the text field to be implemented. |
public WindowPeer | createWindow(Window target) Creates this toolkit's implementation of Window using
the specified peer interface.
Parameters: target - the window to be implemented. |
native static BufferedImagePeer | getBufferedImagePeer(BufferedImage image) |
native public ColorModel | getColorModel() Determines the color model of this toolkit's screen. |
public String | getDefaultCharacterEncoding() |
public FontMetrics | getFontMetrics(Font font) Gets the screen metrics of the font.
Parameters: font - a font. |
public FontPeer | getFontPeer(Font target) Creates this toolkit's implementation of Font using
the specified peer interface.
Parameters: target - the font to be implemented. |
public InputMethod | getInputMethodAdapter() Returns a new input method adapter for native input methods. |
native public int | getScreenHeight() |
public int | getScreenResolution() Returns the screen resolution in dots-per-inch. |
native public int | getScreenWidth() |
public Clipboard | getSystemClipboard() Gets an instance of the system clipboard which interfaces
with clipboard facilities provided by the native platform. |
protected void | loadSystemColors(int[] systemColors) Fills in the integer array that is supplied as an argument
with the current system color values. |
public static void | postEvent(AWTEvent event) |
public static void | postEvent(AppContext appContext, AWTEvent event) |
public boolean | prepareImage(Image img, int w, int h, ImageObserver o) |
static boolean | prepareScrImage(Image img, int w, int h, ImageObserver o) Prepares an image for rendering.
If the values of the width and height arguments are both
-1 , this method prepares the image for rendering
on the default screen; otherwise, this method prepares an image
for rendering on the default screen at the specified width and height.
The image data is downloaded asynchronously in another thread,
and an appropriately scaled screen representation of the image is
generated.
This method is called by components prepareImage
methods.
Information on the flags returned by this method can be found
with the definition of the ImageObserver interface.
Parameters: image - the image for which to prepare ascreen representation. Parameters: width - the width of the desired screenrepresentation, or -1 . Parameters: height - the height of the desired screenrepresentation, or -1 . Parameters: observer - the ImageObserver object to be notified as theimage is being prepared. |
native public void | run() Runs the gtk_main function for event processing. |
native public void | sync() Synchronizes this toolkit's graphics state. |