|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Toolkit
sun.awt.SunToolkit
sun.awt.PeerBasedToolkit
sun.awt.qt.QtToolkit
public class QtToolkit
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class sun.awt.SunToolkit |
|---|
sun.awt.SunToolkit.InfiniteLoop, sun.awt.SunToolkit.OperationTimedOut |
| Field Summary |
|---|
| Fields inherited from class sun.awt.PeerBasedToolkit |
|---|
peerMap |
| Fields inherited from class sun.awt.SunToolkit |
|---|
DESKTOPFONTHINTS, GRAB_EVENT_MASK, WAIT_TIME |
| Constructor Summary | |
|---|---|
QtToolkit()
|
|
| Method Summary | |
|---|---|
void |
activate(Window window)
Show the specified window in a multi-vm environment |
void |
beep()
Emits an audio beep. |
int |
checkImage(java.awt.Image img,
int w,
int h,
java.awt.image.ImageObserver o)
Indicates the construction status of a specified image that is being prepared for display. |
ButtonPeer |
createButton(Button target)
Creates this toolkit's implementation of Button using
the specified peer interface. |
CanvasPeer |
createCanvas(Canvas target)
Creates this toolkit's implementation of Canvas using
the specified peer interface. |
CheckboxPeer |
createCheckbox(Checkbox target)
Creates this toolkit's implementation of Checkbox using
the specified peer interface. |
CheckboxMenuItemPeer |
createCheckboxMenuItem(CheckboxMenuItem target)
Creates this toolkit's implementation of CheckboxMenuItem using
the specified peer interface. |
ChoicePeer |
createChoice(Choice target)
Creates this toolkit's implementation of Choice using
the specified peer interface. |
DialogPeer |
createDialog(Dialog target)
Creates this toolkit's implementation of Dialog using
the specified peer interface. |
FileDialogPeer |
createFileDialog(FileDialog target)
Creates this toolkit's implementation of FileDialog using
the specified peer interface. |
FramePeer |
createFrame(Frame target)
Creates this toolkit's implementation of Frame using
the specified peer interface. |
java.awt.Image |
createImage(java.awt.image.ImageProducer producer)
Creates an image with the specified image producer. |
LabelPeer |
createLabel(Label target)
Creates this toolkit's implementation of Label using
the specified peer interface. |
ListPeer |
createList(List target)
Creates this toolkit's implementation of List using
the specified peer interface. |
MenuPeer |
createMenu(Menu target)
Creates this toolkit's implementation of Menu using
the specified peer interface. |
MenuBarPeer |
createMenuBar(MenuBar target)
Creates this toolkit's implementation of MenuBar using
the specified peer interface. |
MenuItemPeer |
createMenuItem(MenuItem target)
Creates this toolkit's implementation of MenuItem using
the specified peer interface. |
PanelPeer |
createPanel(Panel target)
Creates this toolkit's implementation of Panel using
the specified peer interface. |
PopupMenuPeer |
createPopupMenu(PopupMenu target)
Creates this toolkit's implementation of PopupMenu using
the specified peer interface. |
ScrollbarPeer |
createScrollbar(Scrollbar target)
Creates this toolkit's implementation of Scrollbar using
the specified peer interface. |
ScrollPanePeer |
createScrollPane(ScrollPane target)
Creates this toolkit's implementation of ScrollPane using
the specified peer interface. |
TextAreaPeer |
createTextArea(TextArea target)
Creates this toolkit's implementation of TextArea using
the specified peer interface. |
TextFieldPeer |
createTextField(TextField target)
Creates this toolkit's implementation of TextField using
the specified peer interface. |
WindowPeer |
createWindow(Window target)
Creates this toolkit's implementation of Window using
the specified peer interface. |
void |
deactivate(Window window)
Hide the specified window in a multi-vm environment |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
static String |
getAppName()
|
java.awt.image.ColorModel |
getColorModel()
Determines the color model of this toolkit's screen. |
String |
getDefaultCharacterEncoding()
|
FontMetrics |
getFontMetrics(Font font)
Gets the screen metrics of the font. |
FontPeer |
getFontPeer(Font target)
Creates this toolkit's implementation of Font using
the specified peer interface. |
sun.awt.im.InputMethod |
getInputMethodAdapter()
Returns a new input method adapter for native input methods. |
int |
getScreenHeight()
|
java.awt.Insets |
getScreenInsets(java.awt.GraphicsConfiguration gc)
Gets the insets of the screen. |
int |
getScreenResolution()
Returns the screen resolution in dots-per-inch. |
protected int |
getScreenResolutionNative()
|
int |
getScreenWidth()
|
Clipboard |
getSystemClipboard()
Gets an instance of the system clipboard which interfaces with clipboard facilities provided by the native platform. |
boolean |
isFrameStateSupported(int state)
Returns whether Toolkit supports this state for Frames. |
protected void |
loadSystemColors(int[] systemColors)
Fills in the integer array that is supplied as an argument with the current system color values. |
static void |
postEvent(sun.awt.AppContext appContext,
AWTEvent event)
|
static void |
postEvent(AWTEvent event)
|
boolean |
prepareImage(java.awt.Image img,
int w,
int h,
java.awt.image.ImageObserver o)
Prepares an image for rendering. |
void |
run()
Runs the qt_main function for event processing. |
void |
sync()
Synchronizes this toolkit's graphics state. |
| Methods inherited from class sun.awt.PeerBasedToolkit |
|---|
createComponent, getComponentPeer, getFontList, getMenuComponentPeer, getNativeContainer, targetDisposedPeer, targetToPeer |
| Methods inherited from class sun.awt.SunToolkit |
|---|
addModalityListener, awtLock, awtLockNotify, awtLockNotifyAll, awtLockWait, awtLockWait, awtTryLock, awtUnlock, checkAndSetPolicy, closeSplashScreen, consumeNextKeyTyped, createDragSourceContextPeer, createImage, createImage, createImage, createInputMethodWindow, createKeyboardFocusManagerPeer, createNewAppContext, createRobot, createSystemTray, createTrayIcon, disableBackgroundErase, disableBackgroundErase, enableInputMethodsForTextComponent, executeOnEDTAndWait, executeOnEventHandlerThread, executeOnEventHandlerThread, executeOnEventHandlerThread, flushPendingEvents, getDataTransfererClassName, getDefaultKeyboardLocale, getDesktopAAHints, getDesktopFontHints, getFontPeer, getImage, getImage, getMouseInfoPeer, getScaledIconData, getScaledIconImage, getScreenSize, getStartupLocale, getSunAwtErasebackgroundonresize, getSunAwtNoerasebackground, getSunAwtUntrustedTopLevelTranslucency, getSystemEventQueueImpl, getSystemEventQueueImplPP, getWindowClosingListener, grab, insertTargetMapping, invokeLaterOnAppContext, isAWTLockHeldByCurrentThread, isContainingTopLevelOpaque, isContainingTopLevelTranslucent, isDesktopSupported, isDispatchThreadForAppContext, isLightweightOrUnknown, isModalExcluded, isModalExcludedSupported, isModalExcludedSupportedImpl, isModalExclusionTypeSupported, isModalityTypeSupported, isPostEventQueueEmpty, isSystemGenerated, isTranslucencyCapable, isTraySupported, isWindowOpacityControlSupported, isWindowShapingSupported, isWindowTranslucencySupported, isXEmbedServerRequested, needsXEmbed, needsXEmbedImpl, needUpdateWindow, notifyModalityPopped, notifyModalityPushed, postPriorityEvent, realSync, removeModalityListener, setAAFontSettingsCondition, setDataTransfererClassName, setLWRequestStatus, setModalExcluded, setMostRecentFocusOwner, setSystemGenerated, setWindowClosingListener, syncNativeQueue, targetCreatedPeer, targetToAppContext, ungrab, useBufferPerWindow, waitForIdle, windowClosingDelivered, windowClosingNotify |
| Methods inherited from class java.awt.Toolkit |
|---|
addAWTEventListener, createImage, getAWTEventListeners, getAWTEventListeners, getDefaultToolkit, getMenuShortcutKeyMask, getProperty, getSystemEventQueue, removeAWTEventListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface sun.awt.InputMethodSupport |
|---|
getInputMethodAdapterDescriptor |
| Constructor Detail |
|---|
public QtToolkit()
| Method Detail |
|---|
public void activate(Window window)
public void deactivate(Window window)
public static String getAppName()
protected void finalize()
throws Throwable
Objectfinalize method to dispose of
system resources or to perform other cleanup.
The general contract of finalize is that it is invoked if and when the JavaTM virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.
The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.
The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.
After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.
The finalize method is never invoked more than once by a Java virtual machine for any given object.
Any exception thrown by the finalize method causes
the finalization of this object to be halted, but is otherwise
ignored.
finalize in class ObjectThrowable - the Exception raised by this methodpublic void run()
run in interface RunnableThread.run()public String getDefaultCharacterEncoding()
public ButtonPeer createButton(Button target)
Button using
the specified peer interface.
createButton in interface sun.awt.ComponentFactorycreateButton in class PeerBasedToolkittarget - the button to be implemented.
Button.Button,
ButtonPeerpublic TextFieldPeer createTextField(TextField target)
TextField using
the specified peer interface.
createTextField in interface sun.awt.ComponentFactorycreateTextField in class PeerBasedToolkittarget - the text field to be implemented.
TextField.TextField,
TextFieldPeerpublic LabelPeer createLabel(Label target)
Label using
the specified peer interface.
createLabel in interface sun.awt.ComponentFactorycreateLabel in class PeerBasedToolkittarget - the label to be implemented.
Label.Label,
LabelPeerpublic ListPeer createList(List target)
List using
the specified peer interface.
createList in interface sun.awt.ComponentFactorycreateList in class PeerBasedToolkittarget - the list to be implemented.
List.List,
ListPeerpublic CheckboxPeer createCheckbox(Checkbox target)
Checkbox using
the specified peer interface.
createCheckbox in interface sun.awt.ComponentFactorycreateCheckbox in class PeerBasedToolkittarget - the check box to be implemented.
Checkbox.Checkbox,
CheckboxPeerpublic ScrollbarPeer createScrollbar(Scrollbar target)
Scrollbar using
the specified peer interface.
createScrollbar in interface sun.awt.ComponentFactorycreateScrollbar in class PeerBasedToolkittarget - the scroll bar to be implemented.
Scrollbar.Scrollbar,
ScrollbarPeerpublic ScrollPanePeer createScrollPane(ScrollPane target)
ScrollPane using
the specified peer interface.
createScrollPane in interface sun.awt.ComponentFactorycreateScrollPane in class PeerBasedToolkittarget - the scroll pane to be implemented.
ScrollPane.ScrollPane,
ScrollPanePeerpublic TextAreaPeer createTextArea(TextArea target)
TextArea using
the specified peer interface.
createTextArea in interface sun.awt.ComponentFactorycreateTextArea in class PeerBasedToolkittarget - the text area to be implemented.
TextArea.TextArea,
TextAreaPeerpublic ChoicePeer createChoice(Choice target)
Choice using
the specified peer interface.
createChoice in interface sun.awt.ComponentFactorycreateChoice in class PeerBasedToolkittarget - the choice to be implemented.
Choice.Choice,
ChoicePeerpublic FramePeer createFrame(Frame target)
Frame using
the specified peer interface.
createFrame in interface sun.awt.ComponentFactorycreateFrame in class PeerBasedToolkittarget - the frame to be implemented.
Frame.Frame,
FramePeerpublic CanvasPeer createCanvas(Canvas target)
Canvas using
the specified peer interface.
createCanvas in interface sun.awt.ComponentFactorycreateCanvas in class PeerBasedToolkittarget - the canvas to be implemented.
Canvas.Canvas,
CanvasPeerpublic PanelPeer createPanel(Panel target)
Panel using
the specified peer interface.
createPanel in interface sun.awt.ComponentFactorycreatePanel in class PeerBasedToolkittarget - the panel to be implemented.
Panel.Panel,
PanelPeerpublic WindowPeer createWindow(Window target)
Window using
the specified peer interface.
createWindow in interface sun.awt.ComponentFactorycreateWindow in class PeerBasedToolkittarget - the window to be implemented.
Window.Window,
WindowPeerpublic DialogPeer createDialog(Dialog target)
Dialog using
the specified peer interface.
createDialog in interface sun.awt.ComponentFactorycreateDialog in class PeerBasedToolkittarget - the dialog to be implemented.
Dialog.Dialog,
DialogPeerpublic MenuBarPeer createMenuBar(MenuBar target)
MenuBar using
the specified peer interface.
createMenuBar in interface sun.awt.ComponentFactorycreateMenuBar in class PeerBasedToolkittarget - the menu bar to be implemented.
MenuBar.MenuBar,
MenuBarPeerpublic MenuPeer createMenu(Menu target)
Menu using
the specified peer interface.
createMenu in interface sun.awt.ComponentFactorycreateMenu in class PeerBasedToolkittarget - the menu to be implemented.
Menu.Menu,
MenuPeerpublic PopupMenuPeer createPopupMenu(PopupMenu target)
PopupMenu using
the specified peer interface.
createPopupMenu in interface sun.awt.ComponentFactorycreatePopupMenu in class PeerBasedToolkittarget - the popup menu to be implemented.
PopupMenu.PopupMenu,
PopupMenuPeerpublic MenuItemPeer createMenuItem(MenuItem target)
MenuItem using
the specified peer interface.
createMenuItem in interface sun.awt.ComponentFactorycreateMenuItem in class PeerBasedToolkittarget - the menu item to be implemented.
MenuItem.MenuItem,
MenuItemPeerpublic FileDialogPeer createFileDialog(FileDialog target)
FileDialog using
the specified peer interface.
createFileDialog in interface sun.awt.ComponentFactorycreateFileDialog in class PeerBasedToolkittarget - the file dialog to be implemented.
FileDialog.FileDialog,
FileDialogPeerpublic CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target)
CheckboxMenuItem using
the specified peer interface.
createCheckboxMenuItem in interface sun.awt.ComponentFactorycreateCheckboxMenuItem in class PeerBasedToolkittarget - the checkbox menu item to be implemented.
CheckboxMenuItem.CheckboxMenuItem,
CheckboxMenuItemPeerpublic FontPeer getFontPeer(Font target)
Font using
the specified peer interface.
getFontPeer in class PeerBasedToolkittarget - the font to be implemented.
Font.Font,
FontPeerpublic java.awt.Insets getScreenInsets(java.awt.GraphicsConfiguration gc)
Toolkit
getScreenInsets in class Toolkitgc - a GraphicsConfiguration
GraphicsEnvironment.isHeadless()protected void loadSystemColors(int[] systemColors)
This method is called by the method updateSystemColors
in the SystemColor class.
loadSystemColors in class Toolkitan - integer array.SystemColor.updateSystemColors()public int getScreenWidth()
getScreenWidth in class sun.awt.SunToolkitpublic int getScreenHeight()
getScreenHeight in class sun.awt.SunToolkitpublic int getScreenResolution()
getScreenResolution in class Toolkitprotected int getScreenResolutionNative()
public java.awt.image.ColorModel getColorModel()
ColorModel is an abstract class that
encapsulates the ability to translate between the
pixel values of an image and its red, green, blue,
and alpha components.
This toolkit method is called by the
getColorModel method
of the Component class.
getColorModel in class ToolkitColorModel,
Component.getColorModel()public FontMetrics getFontMetrics(Font font)
getFontMetrics in class sun.awt.SunToolkitfont - a font.
public void sync()
This method ensures that the display is up-to-date. It is useful for animation.
sync in class Toolkit
public boolean prepareImage(java.awt.Image img,
int w,
int h,
java.awt.image.ImageObserver o)
Toolkit
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.
prepareImage in class sun.awt.SunToolkitimg - the image for which to prepare a
screen representation.w - the width of the desired screen
representation, or -1.h - the height of the desired screen
representation, or -1.o - the ImageObserver
object to be notified as the
image is being prepared.
true if the image has already been
fully prepared; false otherwise.Component.prepareImage(java.awt.Image,
java.awt.image.ImageObserver),
Component.prepareImage(java.awt.Image,
int, int, java.awt.image.ImageObserver),
ImageObserver
public int checkImage(java.awt.Image img,
int w,
int h,
java.awt.image.ImageObserver o)
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.
checkImage in class sun.awt.SunToolkitimage - the image whose status is being checked.width - the width of the scaled version whose status is
being checked, or -1.height - the height of the scaled version whose status
is being checked, or -1.observer - the ImageObserver object to be
notified as the image is being prepared.
ImageObserver flags for the
image data that is currently available.Toolkit.prepareImage(java.awt.Image,
int, int, java.awt.image.ImageObserver),
Component.checkImage(java.awt.Image,
java.awt.image.ImageObserver),
Component.checkImage(java.awt.Image,
int, int, java.awt.image.ImageObserver),
ImageObserverpublic java.awt.Image createImage(java.awt.image.ImageProducer producer)
createImage in class sun.awt.SunToolkitproducer - the image producer to be used.
Image,
ImageProducer,
Component.createImage(java.awt.image.ImageProducer)public void beep()
beep in class Toolkitpublic static void postEvent(AWTEvent event)
public static void postEvent(sun.awt.AppContext appContext,
AWTEvent event)
public Clipboard getSystemClipboard()
This clipboard enables data transfer between Java programs and native applications which use native clipboard facilities.
getSystemClipboard in class ToolkitClipboard
public sun.awt.im.InputMethod getInputMethodAdapter()
throws java.awt.AWTException
java.awt.AWTException
public boolean isFrameStateSupported(int state)
throws java.awt.HeadlessException
ToolkitFrames. This method tells whether the UI
concept of iconification is
supported. It will always return false for any state other than
like Frame.NORMAL or Frame.ICONIFIED.
isFrameStateSupported in class Toolkitstate - one of named frame state constants.
true is this frame state is supported by
this Toolkit implementation, false otherwise.
HeadlessException - if GraphicsEnvironment.isHeadless()
returns true.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||