public abstract class ToolkitDelegate
extends sun.awt.SunToolkit
implements sun.awt.ComponentFactory
Note: this does not work if the underlying toolkit is not a Sun one.
| Modifier and Type | Field and Description |
|---|---|
protected static Toolkit |
underlyingToolkit |
DEFAULT_WAIT_TIME, DESKTOPFONTHINTS, GRAB_EVENT_MASK, MAX_BUTTONS_SUPPORTED, numberOfButtonsdesktopProperties, desktopPropsSupport| Constructor and Description |
|---|
ToolkitDelegate() |
addModalityListener, awtLock, awtLockNotify, awtLockNotifyAll, awtLockWait, awtLockWait, awtTryLock, awtUnlock, canPopupOverlapTaskBar, checkAndSetPolicy, closeSplashScreen, consumeNextKeyTyped, createImageWithResolutionVariant, createInputMethodWindow, createNewAppContext, disableBackgroundErase, disableBackgroundErase, dumpPeers, enableInputMethodsForTextComponent, executeOnEDTAndWait, executeOnEventHandlerThread, executeOnEventHandlerThread, executeOnEventHandlerThread, flushPendingEvents, flushPendingEvents, getContainingWindow, getDefaultKeyboardLocale, getDesktopAAHints, getDesktopFontHints, getFocusAcceleratorKeyMask, getHeavyweightComponent, getImageWithResolutionVariant, getImageWithResolutionVariant, getLightweightFrame, getMouseInfoPeer, getNativeContainer, getNumberOfButtons, getScaledIconData, getScaledIconImage, getStartupLocale, getSunAwtDisableMixing, getSunAwtErasebackgroundonresize, getSunAwtNoerasebackground, getSystemEventQueueImplPP, getWindowClosingListener, getWindowDeactivationTime, imageCached, imageCached, imageExists, imageExists, insertTargetMapping, invokeLaterOnAppContext, isAWTLockHeldByCurrentThread, isContainingTopLevelOpaque, isContainingTopLevelTranslucent, isDispatchThreadForAppContext, isInstanceOf, isLightweightOrUnknown, isModalExcluded, isModalExcludedSupported, isModalExcludedSupportedImpl, isNativeGTKAvailable, isPrintableCharacterModifiersMask, isSwingBackbufferTranslucencySupported, isSystemGenerated, isTranslucencyCapable, isWindowOpacitySupported, isXEmbedServerRequested, needsXEmbed, needsXEmbedImpl, needUpdateWindow, notifyModalityPopped, notifyModalityPushed, postEvent, postPriorityEvent, realSync, realSync, removeModalityListener, setAAFontSettingsCondition, setLWRequestStatus, setModalExcluded, setSystemGenerated, setWindowClosingListener, setWindowDeactivationTime, targetCreatedPeer, targetDisposedPeer, targetToAppContext, targetToPeer, useBufferPerWindow, waitForIdle, windowClosingDelivered, windowClosingNotifyareExtraMouseButtonsEnabled, createComponent, getDefaultToolkit, getDesktopProperty, getProperty, getSystemEventQueue, getSystemSelection, initializeDesktopProperties, isAlwaysOnTopSupported, isDynamicLayoutSet, lazilyLoadDesktopProperty, loadSystemColors, setDesktopPropertyprotected static Toolkit underlyingToolkit
public int getMaximumCursorColors()
throws HeadlessException
getMaximumCursorColors in class ToolkitHeadlessExceptionpublic int getMenuShortcutKeyMask()
throws HeadlessException
getMenuShortcutKeyMask in class ToolkitHeadlessExceptionpublic int getScreenResolution()
throws HeadlessException
getScreenResolution in class ToolkitHeadlessExceptionpublic boolean isDynamicLayoutActive()
throws HeadlessException
isDynamicLayoutActive in class ToolkitHeadlessExceptionpublic boolean getLockingKeyState(int keyCode)
throws UnsupportedOperationException
getLockingKeyState in class ToolkitUnsupportedOperationExceptionpublic boolean isFrameStateSupported(int state)
throws HeadlessException
isFrameStateSupported in class ToolkitHeadlessExceptionpublic void setLockingKeyState(int keyCode,
boolean on)
throws UnsupportedOperationException
setLockingKeyState in class ToolkitUnsupportedOperationExceptionpublic void setDynamicLayout(boolean dynamic)
throws HeadlessException
setDynamicLayout in class ToolkitHeadlessExceptionpublic Dimension getScreenSize() throws HeadlessException
getScreenSize in class sun.awt.SunToolkitHeadlessExceptionpublic Dimension getBestCursorSize(int preferredWidth, int preferredHeight) throws HeadlessException
getBestCursorSize in class ToolkitHeadlessExceptionpublic EventQueue getSystemEventQueueImpl()
getSystemEventQueueImpl in class sun.awt.SunToolkitpublic Image createImage(byte[] imagedata)
createImage in class Toolkitpublic Image createImage(byte[] imagedata, int imageoffset, int imagelength)
createImage in class sun.awt.SunToolkitpublic Clipboard getSystemClipboard() throws HeadlessException
getSystemClipboard in class ToolkitHeadlessExceptionpublic AWTEventListener[] getAWTEventListeners()
getAWTEventListeners in class Toolkitpublic AWTEventListener[] getAWTEventListeners(long eventMask)
getAWTEventListeners in class Toolkitpublic void removeAWTEventListener(AWTEventListener listener)
removeAWTEventListener in class Toolkitpublic void addAWTEventListener(AWTEventListener listener, long eventMask)
addAWTEventListener in class Toolkitpublic ColorModel getColorModel() throws HeadlessException
getColorModel in class ToolkitHeadlessExceptionpublic PropertyChangeListener[] getPropertyChangeListeners()
getPropertyChangeListeners in class Toolkitpublic String[] getFontList()
getFontList in class sun.awt.SunToolkitpublic sun.awt.datatransfer.DataTransferer getDataTransferer()
getDataTransferer in interface sun.awt.ComponentFactorypublic FontMetrics getFontMetrics(Font font)
getFontMetrics in class sun.awt.SunToolkitpublic Image createImage(ImageProducer producer)
createImage in class sun.awt.SunToolkitpublic Image createImage(String filename)
createImage in class sun.awt.SunToolkitpublic Insets getScreenInsets(GraphicsConfiguration gc) throws HeadlessException
getScreenInsets in class ToolkitHeadlessExceptionpublic java.awt.dnd.peer.DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge) throws InvalidDnDOperationException
createDragSourceContextPeer in interface sun.awt.ComponentFactorycreateDragSourceContextPeer in class sun.awt.SunToolkitInvalidDnDOperationExceptionpublic int checkImage(Image image, int width, int height, ImageObserver observer)
checkImage in class sun.awt.SunToolkitpublic boolean prepareImage(Image image, int width, int height, ImageObserver observer)
prepareImage in class sun.awt.SunToolkitpublic java.awt.peer.ButtonPeer createButton(Button target) throws HeadlessException
createButton in interface sun.awt.ComponentFactorycreateButton in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.CanvasPeer createCanvas(Canvas target)
createCanvas in interface sun.awt.ComponentFactorycreateCanvas in class sun.awt.SunToolkitpublic java.awt.peer.CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target) throws HeadlessException
createCheckboxMenuItem in interface sun.awt.ComponentFactorycreateCheckboxMenuItem in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.CheckboxPeer createCheckbox(Checkbox target) throws HeadlessException
createCheckbox in interface sun.awt.ComponentFactorycreateCheckbox in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.ChoicePeer createChoice(Choice target) throws HeadlessException
createChoice in interface sun.awt.ComponentFactorycreateChoice in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.DialogPeer createDialog(Dialog target) throws HeadlessException
createDialog in interface sun.awt.ComponentFactorycreateDialog in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.FileDialogPeer createFileDialog(FileDialog target) throws HeadlessException
createFileDialog in interface sun.awt.ComponentFactorycreateFileDialog in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.FontPeer getFontPeer(String name, int style)
getFontPeer in interface sun.awt.ComponentFactorygetFontPeer in class sun.awt.SunToolkitpublic java.awt.peer.FramePeer createFrame(Frame target) throws HeadlessException
createFrame in interface sun.awt.ComponentFactorycreateFrame in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.LabelPeer createLabel(Label target) throws HeadlessException
createLabel in interface sun.awt.ComponentFactorycreateLabel in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.ListPeer createList(List target) throws HeadlessException
createList in interface sun.awt.ComponentFactorycreateList in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.MenuBarPeer createMenuBar(MenuBar target) throws HeadlessException
createMenuBar in interface sun.awt.ComponentFactorycreateMenuBar in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.MenuItemPeer createMenuItem(MenuItem target) throws HeadlessException
createMenuItem in interface sun.awt.ComponentFactorycreateMenuItem in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.MenuPeer createMenu(Menu target) throws HeadlessException
createMenu in interface sun.awt.ComponentFactorycreateMenu in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.PanelPeer createPanel(Panel target)
createPanel in interface sun.awt.ComponentFactorycreatePanel in class sun.awt.SunToolkitpublic java.awt.peer.PopupMenuPeer createPopupMenu(PopupMenu target) throws HeadlessException
createPopupMenu in interface sun.awt.ComponentFactorycreatePopupMenu in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.ScrollPanePeer createScrollPane(ScrollPane target) throws HeadlessException
createScrollPane in interface sun.awt.ComponentFactorycreateScrollPane in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.ScrollbarPeer createScrollbar(Scrollbar target) throws HeadlessException
createScrollbar in interface sun.awt.ComponentFactorycreateScrollbar in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.TextAreaPeer createTextArea(TextArea target) throws HeadlessException
createTextArea in interface sun.awt.ComponentFactorycreateTextArea in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.TextFieldPeer createTextField(TextField target) throws HeadlessException
createTextField in interface sun.awt.ComponentFactorycreateTextField in class sun.awt.SunToolkitHeadlessExceptionpublic java.awt.peer.FramePeer createLightweightFrame(sun.awt.LightweightFrame target)
createLightweightFrame in class sun.awt.SunToolkitpublic java.awt.peer.WindowPeer createWindow(Window target) throws HeadlessException
createWindow in interface sun.awt.ComponentFactorycreateWindow in class sun.awt.SunToolkitHeadlessExceptionpublic PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
getPropertyChangeListeners in class Toolkitpublic void addPropertyChangeListener(String name, PropertyChangeListener pcl)
addPropertyChangeListener in class Toolkitpublic void removePropertyChangeListener(String name, PropertyChangeListener pcl)
removePropertyChangeListener in class Toolkitpublic Map<TextAttribute,?> mapInputMethodHighlight(InputMethodHighlight highlight) throws HeadlessException
mapInputMethodHighlight in class ToolkitHeadlessExceptionpublic Cursor createCustomCursor(Image cursor, Point hotSpot, String name) throws IndexOutOfBoundsException, HeadlessException
createCustomCursor in class ToolkitIndexOutOfBoundsExceptionHeadlessExceptionpublic PrintJob getPrintJob(Frame frame, String jobtitle, Properties props)
getPrintJob in class Toolkitpublic PrintJob getPrintJob(Frame frame, String jobtitle, JobAttributes jobAttributes, PageAttributes pageAttributes)
getPrintJob in class Toolkitprotected java.awt.peer.DesktopPeer createDesktopPeer(Desktop desktop) throws HeadlessException
createDesktopPeer in class ToolkitHeadlessExceptionpublic java.awt.peer.RobotPeer createRobot(Robot robot, GraphicsDevice graphicsDevice) throws AWTException, HeadlessException
createRobot in interface sun.awt.ComponentFactorycreateRobot in class sun.awt.SunToolkitAWTExceptionHeadlessExceptionpublic java.awt.peer.KeyboardFocusManagerPeer getKeyboardFocusManagerPeer() throws HeadlessException
getKeyboardFocusManagerPeer in interface sun.awt.KeyboardFocusManagerPeerProvidergetKeyboardFocusManagerPeer in class sun.awt.SunToolkitHeadlessExceptionprotected boolean syncNativeQueue(long l)
syncNativeQueue in class sun.awt.SunToolkitpublic boolean isModalExclusionTypeSupported(Dialog.ModalExclusionType modalExclusionType)
isModalExclusionTypeSupported in class sun.awt.SunToolkitpublic boolean isModalityTypeSupported(Dialog.ModalityType modalityType)
isModalityTypeSupported in class sun.awt.SunToolkitpublic <T extends DragGestureRecognizer> T createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component cp, int srcActions, DragGestureListener dgl)
createDragGestureRecognizer in class Toolkitpublic Toolkit getUnderlyingToolkit()
public java.awt.peer.SystemTrayPeer createSystemTray(SystemTray systemTray)
createSystemTray in class sun.awt.SunToolkitpublic java.awt.peer.TrayIconPeer createTrayIcon(TrayIcon trayIcon) throws HeadlessException, AWTException
createTrayIcon in class sun.awt.SunToolkitHeadlessExceptionAWTExceptionpublic InputMethodDescriptor getInputMethodAdapterDescriptor() throws AWTException
getInputMethodAdapterDescriptor in interface sun.awt.InputMethodSupportAWTExceptionprotected int getScreenHeight()
getScreenHeight in class sun.awt.SunToolkitprotected int getScreenWidth()
getScreenWidth in class sun.awt.SunToolkitpublic void grab(Window window)
grab in class sun.awt.SunToolkitpublic boolean isDesktopSupported()
isDesktopSupported in class sun.awt.SunToolkitpublic boolean isTraySupported()
isTraySupported in class sun.awt.SunToolkitpublic void ungrab(Window window)
ungrab in class sun.awt.SunToolkitpublic boolean isWindowShapingSupported()
isWindowShapingSupported in class sun.awt.SunToolkitpublic boolean isWindowTranslucencySupported()
isWindowTranslucencySupported in class sun.awt.SunToolkitCopyright © 2004–2016. All rights reserved.