| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectjava.awt.Toolkitgnu.java.awt.ClasspathToolkitgnu.java.awt.peer.qt.QtToolkitpublic class QtToolkitextends ClasspathToolkitField Summary | |
static EventQueue | |
static QtGraphicsEnvironment | |
static MainQtThread | |
static QtRepaintThread | |
Fields inherited from class java.awt.Toolkit | |
Object>(), desktopProperties, desktopPropsSupport | |
Constructor Summary | |
| |
Method Summary | |
void |
|
@Override |
|
@Override |
|
int |
|
protected ButtonPeer |
|
protected CanvasPeer |
|
protected CheckboxPeer |
|
protected CheckboxMenuItemPeer |
|
protected ChoicePeer |
|
protected DialogPeer |
|
DragSourceContextPeer | |
EmbeddedWindowPeer |
|
protected FileDialogPeer |
|
Font |
|
protected FramePeer |
|
Image |
|
Image |
|
Image |
|
Image |
|
protected LabelPeer |
|
protected ListPeer |
|
protected MenuPeer |
|
protected MenuBarPeer |
|
protected MenuItemPeer |
|
protected PanelPeer |
|
protected PopupMenuPeer |
|
RobotPeer |
|
protected ScrollPanePeer |
|
protected ScrollbarPeer |
|
protected TextAreaPeer |
|
protected TextFieldPeer |
|
protected WindowPeer |
|
AWTEventListener[] | |
AWTEventListener[] |
|
ClasspathFontPeer |
|
ColorModel |
|
String[] |
|
FontMetrics |
|
protected FontPeer |
|
Image | |
Image | |
GraphicsEnvironment |
|
PrintJob |
|
int |
|
Dimension |
|
Clipboard |
|
protected EventQueue |
|
Map<K,V> |
|
boolean |
|
void |
|
Methods inherited from class gnu.java.awt.ClasspathToolkit | |
createDesktopPeer, createEmbeddedWindow, createFont, createRobot, getClasspathFontPeer, getFont, getLocalGraphicsEnvironment, getMouseNumberOfButtons, registerImageIOSpis | |
Methods inherited from class java.lang.Object | |
clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait | |
public @Override boolean isModalExclusionTypeSupported(Dialog.ModalExclusionType modalExclusionType)
public @Override boolean isModalityTypeSupported(Dialog.ModalityType modalityType)
public int checkImage(Image image, int w, int h, ImageObserver observer)
Checks the status of specified image as it is being readied for rendering.
- Overrides:
- checkImage in interface Toolkit
- Parameters:
image- The image to prepare for rendering.observer- The observer to receive events about the preparation process.
- Returns:
- A union of the bitmasks from
java.awt.image.ImageObserverthat indicates the current state of the imaging readying process.
protected ButtonPeer createButton(Button target)
Creates a peer object for the specifiedButton.
- Overrides:
- createButton in interface Toolkit
- Parameters:
target- TheButtonto create the peer for.
- Returns:
- The peer for the specified
Buttonobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected CanvasPeer createCanvas(Canvas target)
Creates a peer object for the specifiedCanvas.
- Overrides:
- createCanvas in interface Toolkit
- Parameters:
target- TheCanvasto create the peer for.
- Returns:
- The peer for the specified
Canvasobject.
protected CheckboxPeer createCheckbox(Checkbox target)
Creates a peer object for the specifiedCheckbox.
- Overrides:
- createCheckbox in interface Toolkit
- Parameters:
target- TheCheckboxto create the peer for.
- Returns:
- The peer for the specified
Checkboxobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target)
Creates a peer object for the specifiedCheckboxMenuItem.
- Overrides:
- createCheckboxMenuItem in interface Toolkit
- Parameters:
target- TheCheckboxMenuItemto create the peer for.
- Returns:
- The peer for the specified
CheckboxMenuItemobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected ChoicePeer createChoice(Choice target)
Creates a peer object for the specifiedChoice.
- Overrides:
- createChoice in interface Toolkit
- Parameters:
target- TheChoiceto create the peer for.
- Returns:
- The peer for the specified
Choiceobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected DialogPeer createDialog(Dialog target)
Creates a peer object for the specifiedDialog.
- Overrides:
- createDialog in interface Toolkit
- Parameters:
target- The dialog to create the peer for
- Returns:
- The peer for the specified font name.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge)
- Overrides:
- createDragSourceContextPeer in interface Toolkit
- Since:
- 1.3
public EmbeddedWindowPeer createEmbeddedWindow(EmbeddedWindow w)
Creates an embedded window peer, and associates it with an EmbeddedWindow object.
- Overrides:
- createEmbeddedWindow in interface ClasspathToolkit
- Parameters:
w- The embedded window with which to associate a peer.
protected FileDialogPeer createFileDialog(FileDialog target)
Creates a peer object for the specifiedFileDialog.
- Overrides:
- createFileDialog in interface Toolkit
- Parameters:
target- TheFileDialogto create the peer for.
- Returns:
- The peer for the specified
FileDialogobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
public Font createFont(int format, InputStream stream)
Creates a font, reading the glyph definitions from a stream. This method provides the platform-specific implementation for the static factory methodFont.createFont(int,InputStream).
- Overrides:
- createFont in interface ClasspathToolkit
- Parameters:
format- the format of the font data, such asFont.TRUETYPE_FONT. An implementation may ignore this argument if it is able to automatically recognize the font format from the provided data.stream- an input stream from where the font data is read in. The stream will be advanced to the position after the font data, but not closed.
- Throws:
IllegalArgumentException- ifformatis not supported.
protected FramePeer createFrame(Frame target)
Creates a peer object for the specifiedFrame.
- Overrides:
- createFrame in interface Toolkit
- Parameters:
target- TheFrameto create the peer for.
- Returns:
- The peer for the specified
Frameobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
public Image createImage(byte[] imageData, int imageOffset, int imageLength)
Creates an image from the specified portion of the byte array passed. The array must be in a recognized format. Supported formats vary from toolkit to toolkit.
- Overrides:
- createImage in interface Toolkit
- Parameters:
- Returns:
- The created image.
public Image createImage(ImageProducer producer)
Creates an image using the specifiedImageProducer
- Overrides:
- createImage in interface Toolkit
- Parameters:
producer- TheImageProducerto create the image from.
- Returns:
- The created image.
protected LabelPeer createLabel(Label target)
Creates a peer object for the specifiedLabel.
- Overrides:
- createLabel in interface Toolkit
- Parameters:
target- TheLabelto create the peer for.
- Returns:
- The peer for the specified
Labelobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected ListPeer createList(List target)
Creates a peer object for the specifiedList.
- Overrides:
- createList in interface Toolkit
- Parameters:
target- TheListto create the peer for.
- Returns:
- The peer for the specified
Listobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected MenuPeer createMenu(Menu target)
Creates a peer object for the specifiedMenu.
- Overrides:
- createMenu in interface Toolkit
- Parameters:
target- TheMenuto create the peer for.
- Returns:
- The peer for the specified
Menuobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected MenuBarPeer createMenuBar(MenuBar target)
Creates a peer object for the specifiedMenuBar.
- Overrides:
- createMenuBar in interface Toolkit
- Parameters:
target- TheMenuBarto create the peer for.
- Returns:
- The peer for the specified
MenuBarobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected MenuItemPeer createMenuItem(MenuItem target)
Creates a peer object for the specifiedMenuItem.
- Overrides:
- createMenuItem in interface Toolkit
- Parameters:
target- TheMenuItemto create the peer for.
- Returns:
- The peer for the specified
MenuItemobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected PanelPeer createPanel(Panel target)
Creates a peer object for the specifiedPanel.
- Overrides:
- createPanel in interface Toolkit
- Parameters:
target- ThePanelto create the peer for.
- Returns:
- The peer for the specified
Panelobject.
protected PopupMenuPeer createPopupMenu(PopupMenu target)
Creates a peer object for the specifiedPopupMenu.
- Overrides:
- createPopupMenu in interface Toolkit
- Parameters:
target- ThePopupMenuto create the peer for.
- Returns:
- The peer for the specified
PopupMenuobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
public RobotPeer createRobot(GraphicsDevice screen) throws AWTException
Creates a RobotPeer on a given GraphicsDevice.
- Overrides:
- createRobot in interface ClasspathToolkit
protected ScrollPanePeer createScrollPane(ScrollPane target)
Creates a peer object for the specifiedScrollPane.
- Overrides:
- createScrollPane in interface Toolkit
- Parameters:
target- TheScrollPaneto create the peer for.
- Returns:
- The peer for the specified
ScrollPaneobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected ScrollbarPeer createScrollbar(Scrollbar target)
Creates a peer object for the specifiedScrollbar.
- Overrides:
- createScrollbar in interface Toolkit
- Parameters:
target- TheScrollbarto create the peer for.
- Returns:
- The peer for the specified
Scrollbarobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected TextAreaPeer createTextArea(TextArea target)
Creates a peer object for the specifiedTextArea.
- Overrides:
- createTextArea in interface Toolkit
- Parameters:
target- TheTextAreato create the peer for.
- Returns:
- The peer for the specified
TextAreaobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected TextFieldPeer createTextField(TextField target)
Creates a peer object for the specifiedTextField.
- Overrides:
- createTextField in interface Toolkit
- Parameters:
target- TheTextFieldto create the peer for.
- Returns:
- The peer for the specified
TextFieldobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected WindowPeer createWindow(Window target)
Creates a peer object for the specifiedWindow.
- Overrides:
- createWindow in interface Toolkit
- Parameters:
target- TheWindowto create the peer for.
- Returns:
- The peer for the specified
Windowobject.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
public AWTEventListener[] getAWTEventListeners()
- Overrides:
- getAWTEventListeners in interface Toolkit
- Since:
- 1.4
public AWTEventListener[] getAWTEventListeners(long mask)
- Overrides:
- getAWTEventListeners in interface Toolkit
- Since:
- 1.4
public ColorModel getColorModel()
Returns the color model of the screen.
- Overrides:
- getColorModel in interface Toolkit
- Returns:
- The color model of the screen.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
public String[] getFontList()
Just return the defaults.
- Overrides:
- getFontList in interface Toolkit
public FontMetrics getFontMetrics(Font font)
Deprecated.
Return the font metrics for the specified font
- Overrides:
- getFontMetrics in interface Toolkit
- Parameters:
- Returns:
- The requested font metrics.
protected FontPeer getFontPeer(String name, int style)
Deprecated.
Creates a peer object for the specified font name.
- Overrides:
- getFontPeer in interface Toolkit
- Parameters:
name- The font to create the peer for.style- The font style to create the peer for.
- Returns:
- The peer for the specified font name.
public Image getImage(String filename)
Returns an image from the specified file, which must be in a recognized format. Supported formats vary from toolkit to toolkit.
- Returns:
- name The name of the file to read the image from.
public Image getImage(URL url)
Returns an image from the specified URL, which must be in a recognized format. Supported formats vary from toolkit to toolkit.
- Returns:
- url The URl to read the image from.
public GraphicsEnvironment getLocalGraphicsEnvironment()
Returns a shared instance of the local, platform-specific graphics environment. This method is specific to GNU Classpath. It gets called by the Classpath implementation ofGraphicsEnvironment.getLocalGraphcisEnvironment().
- Overrides:
- getLocalGraphicsEnvironment in interface ClasspathToolkit
public PrintJob getPrintJob(Frame frame, String jobtitle, Properties props)
Returns a instance ofPrintJobfor the specified arguments.
- Overrides:
- getPrintJob in interface Toolkit
- Parameters:
frame- The window initiating the print job.props- The print job properties.
- Returns:
- The requested print job, or
nullif the job was cancelled.
- Throws:
NullPointerException- If frame is null, or GraphicsEnvironment.isHeadless() returns true.SecurityException- If this thread is not allowed to initiate a print job request.
public int getScreenResolution()
Returns the screen resolution in dots per square inch.
- Overrides:
- getScreenResolution in interface Toolkit
- Returns:
- The screen resolution in dots per square inch.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
public Dimension getScreenSize()
Returns the dimensions of the screen in pixels.
- Overrides:
- getScreenSize in interface Toolkit
- Returns:
- The dimensions of the screen in pixels.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
public Clipboard getSystemClipboard()
Returns the system clipboard.
- Overrides:
- getSystemClipboard in interface Toolkit
- Returns:
- THe system clipboard.
- Throws:
HeadlessException- If GraphicsEnvironment.isHeadless() is true.
protected EventQueue getSystemEventQueueImpl()
Returns the event queue that is suitable for the calling context. Despite the word “System” in the name of this method, a toolkit may provide different event queues for each applet. There is no guarantee that the same queue is shared system-wide. No security checks are performed, which is why this method may only be called by Toolkits.
- Overrides:
- getSystemEventQueueImpl in interface Toolkit
- See Also:
Toolkit.getSystemEventQueue()
public Map<K,V> mapInputMethodHighlight(InputMethodHighlight highlight)
- Overrides:
- mapInputMethodHighlight in interface Toolkit
- Since:
- 1.3
public boolean prepareImage(Image image, int w, int h, ImageObserver observer)
Readies an image to be rendered on the screen. The width and height values can be set to the default sizes for the image by passing -1 in those parameters.
- Overrides:
- prepareImage in interface Toolkit
- Parameters:
image- The image to prepare for rendering.observer- The observer to receive events about the preparation process.
- Returns:
trueif the image is already prepared for rendering,falseotherwise.