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, numberOfButtons
desktopProperties, 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, windowClosingNotify
areExtraMouseButtonsEnabled, createComponent, getDefaultToolkit, getDesktopProperty, getProperty, getSystemEventQueue, getSystemSelection, initializeDesktopProperties, isAlwaysOnTopSupported, isDynamicLayoutSet, lazilyLoadDesktopProperty, loadSystemColors, setDesktopProperty
protected static Toolkit underlyingToolkit
public int getMaximumCursorColors() throws HeadlessException
getMaximumCursorColors
in class Toolkit
HeadlessException
public int getMenuShortcutKeyMask() throws HeadlessException
getMenuShortcutKeyMask
in class Toolkit
HeadlessException
public int getScreenResolution() throws HeadlessException
getScreenResolution
in class Toolkit
HeadlessException
public boolean isDynamicLayoutActive() throws HeadlessException
isDynamicLayoutActive
in class Toolkit
HeadlessException
public boolean getLockingKeyState(int keyCode) throws UnsupportedOperationException
getLockingKeyState
in class Toolkit
UnsupportedOperationException
public boolean isFrameStateSupported(int state) throws HeadlessException
isFrameStateSupported
in class Toolkit
HeadlessException
public void setLockingKeyState(int keyCode, boolean on) throws UnsupportedOperationException
setLockingKeyState
in class Toolkit
UnsupportedOperationException
public void setDynamicLayout(boolean dynamic) throws HeadlessException
setDynamicLayout
in class Toolkit
HeadlessException
public Dimension getScreenSize() throws HeadlessException
getScreenSize
in class sun.awt.SunToolkit
HeadlessException
public Dimension getBestCursorSize(int preferredWidth, int preferredHeight) throws HeadlessException
getBestCursorSize
in class Toolkit
HeadlessException
public EventQueue getSystemEventQueueImpl()
getSystemEventQueueImpl
in class sun.awt.SunToolkit
public Image createImage(byte[] imagedata)
createImage
in class Toolkit
public Image createImage(byte[] imagedata, int imageoffset, int imagelength)
createImage
in class sun.awt.SunToolkit
public Clipboard getSystemClipboard() throws HeadlessException
getSystemClipboard
in class Toolkit
HeadlessException
public AWTEventListener[] getAWTEventListeners()
getAWTEventListeners
in class Toolkit
public AWTEventListener[] getAWTEventListeners(long eventMask)
getAWTEventListeners
in class Toolkit
public void removeAWTEventListener(AWTEventListener listener)
removeAWTEventListener
in class Toolkit
public void addAWTEventListener(AWTEventListener listener, long eventMask)
addAWTEventListener
in class Toolkit
public ColorModel getColorModel() throws HeadlessException
getColorModel
in class Toolkit
HeadlessException
public PropertyChangeListener[] getPropertyChangeListeners()
getPropertyChangeListeners
in class Toolkit
public String[] getFontList()
getFontList
in class sun.awt.SunToolkit
public sun.awt.datatransfer.DataTransferer getDataTransferer()
getDataTransferer
in interface sun.awt.ComponentFactory
public FontMetrics getFontMetrics(Font font)
getFontMetrics
in class sun.awt.SunToolkit
public Image createImage(ImageProducer producer)
createImage
in class sun.awt.SunToolkit
public Image createImage(String filename)
createImage
in class sun.awt.SunToolkit
public Insets getScreenInsets(GraphicsConfiguration gc) throws HeadlessException
getScreenInsets
in class Toolkit
HeadlessException
public java.awt.dnd.peer.DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge) throws InvalidDnDOperationException
createDragSourceContextPeer
in interface sun.awt.ComponentFactory
createDragSourceContextPeer
in class sun.awt.SunToolkit
InvalidDnDOperationException
public int checkImage(Image image, int width, int height, ImageObserver observer)
checkImage
in class sun.awt.SunToolkit
public boolean prepareImage(Image image, int width, int height, ImageObserver observer)
prepareImage
in class sun.awt.SunToolkit
public java.awt.peer.ButtonPeer createButton(Button target) throws HeadlessException
createButton
in interface sun.awt.ComponentFactory
createButton
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.CanvasPeer createCanvas(Canvas target)
createCanvas
in interface sun.awt.ComponentFactory
createCanvas
in class sun.awt.SunToolkit
public java.awt.peer.CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target) throws HeadlessException
createCheckboxMenuItem
in interface sun.awt.ComponentFactory
createCheckboxMenuItem
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.CheckboxPeer createCheckbox(Checkbox target) throws HeadlessException
createCheckbox
in interface sun.awt.ComponentFactory
createCheckbox
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.ChoicePeer createChoice(Choice target) throws HeadlessException
createChoice
in interface sun.awt.ComponentFactory
createChoice
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.DialogPeer createDialog(Dialog target) throws HeadlessException
createDialog
in interface sun.awt.ComponentFactory
createDialog
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.FileDialogPeer createFileDialog(FileDialog target) throws HeadlessException
createFileDialog
in interface sun.awt.ComponentFactory
createFileDialog
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.FontPeer getFontPeer(String name, int style)
getFontPeer
in interface sun.awt.ComponentFactory
getFontPeer
in class sun.awt.SunToolkit
public java.awt.peer.FramePeer createFrame(Frame target) throws HeadlessException
createFrame
in interface sun.awt.ComponentFactory
createFrame
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.LabelPeer createLabel(Label target) throws HeadlessException
createLabel
in interface sun.awt.ComponentFactory
createLabel
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.ListPeer createList(List target) throws HeadlessException
createList
in interface sun.awt.ComponentFactory
createList
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.MenuBarPeer createMenuBar(MenuBar target) throws HeadlessException
createMenuBar
in interface sun.awt.ComponentFactory
createMenuBar
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.MenuItemPeer createMenuItem(MenuItem target) throws HeadlessException
createMenuItem
in interface sun.awt.ComponentFactory
createMenuItem
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.MenuPeer createMenu(Menu target) throws HeadlessException
createMenu
in interface sun.awt.ComponentFactory
createMenu
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.PanelPeer createPanel(Panel target)
createPanel
in interface sun.awt.ComponentFactory
createPanel
in class sun.awt.SunToolkit
public java.awt.peer.PopupMenuPeer createPopupMenu(PopupMenu target) throws HeadlessException
createPopupMenu
in interface sun.awt.ComponentFactory
createPopupMenu
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.ScrollPanePeer createScrollPane(ScrollPane target) throws HeadlessException
createScrollPane
in interface sun.awt.ComponentFactory
createScrollPane
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.ScrollbarPeer createScrollbar(Scrollbar target) throws HeadlessException
createScrollbar
in interface sun.awt.ComponentFactory
createScrollbar
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.TextAreaPeer createTextArea(TextArea target) throws HeadlessException
createTextArea
in interface sun.awt.ComponentFactory
createTextArea
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.TextFieldPeer createTextField(TextField target) throws HeadlessException
createTextField
in interface sun.awt.ComponentFactory
createTextField
in class sun.awt.SunToolkit
HeadlessException
public java.awt.peer.FramePeer createLightweightFrame(sun.awt.LightweightFrame target)
createLightweightFrame
in class sun.awt.SunToolkit
public java.awt.peer.WindowPeer createWindow(Window target) throws HeadlessException
createWindow
in interface sun.awt.ComponentFactory
createWindow
in class sun.awt.SunToolkit
HeadlessException
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
getPropertyChangeListeners
in class Toolkit
public void addPropertyChangeListener(String name, PropertyChangeListener pcl)
addPropertyChangeListener
in class Toolkit
public void removePropertyChangeListener(String name, PropertyChangeListener pcl)
removePropertyChangeListener
in class Toolkit
public Map<TextAttribute,?> mapInputMethodHighlight(InputMethodHighlight highlight) throws HeadlessException
mapInputMethodHighlight
in class Toolkit
HeadlessException
public Cursor createCustomCursor(Image cursor, Point hotSpot, String name) throws IndexOutOfBoundsException, HeadlessException
createCustomCursor
in class Toolkit
IndexOutOfBoundsException
HeadlessException
public PrintJob getPrintJob(Frame frame, String jobtitle, Properties props)
getPrintJob
in class Toolkit
public PrintJob getPrintJob(Frame frame, String jobtitle, JobAttributes jobAttributes, PageAttributes pageAttributes)
getPrintJob
in class Toolkit
protected java.awt.peer.DesktopPeer createDesktopPeer(Desktop desktop) throws HeadlessException
createDesktopPeer
in class Toolkit
HeadlessException
public java.awt.peer.RobotPeer createRobot(Robot robot, GraphicsDevice graphicsDevice) throws AWTException, HeadlessException
createRobot
in interface sun.awt.ComponentFactory
createRobot
in class sun.awt.SunToolkit
AWTException
HeadlessException
public java.awt.peer.KeyboardFocusManagerPeer getKeyboardFocusManagerPeer() throws HeadlessException
getKeyboardFocusManagerPeer
in interface sun.awt.KeyboardFocusManagerPeerProvider
getKeyboardFocusManagerPeer
in class sun.awt.SunToolkit
HeadlessException
protected boolean syncNativeQueue(long l)
syncNativeQueue
in class sun.awt.SunToolkit
public boolean isModalExclusionTypeSupported(Dialog.ModalExclusionType modalExclusionType)
isModalExclusionTypeSupported
in class sun.awt.SunToolkit
public boolean isModalityTypeSupported(Dialog.ModalityType modalityType)
isModalityTypeSupported
in class sun.awt.SunToolkit
public <T extends DragGestureRecognizer> T createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component cp, int srcActions, DragGestureListener dgl)
createDragGestureRecognizer
in class Toolkit
public Toolkit getUnderlyingToolkit()
public java.awt.peer.SystemTrayPeer createSystemTray(SystemTray systemTray)
createSystemTray
in class sun.awt.SunToolkit
public java.awt.peer.TrayIconPeer createTrayIcon(TrayIcon trayIcon) throws HeadlessException, AWTException
createTrayIcon
in class sun.awt.SunToolkit
HeadlessException
AWTException
public InputMethodDescriptor getInputMethodAdapterDescriptor() throws AWTException
getInputMethodAdapterDescriptor
in interface sun.awt.InputMethodSupport
AWTException
protected int getScreenHeight()
getScreenHeight
in class sun.awt.SunToolkit
protected int getScreenWidth()
getScreenWidth
in class sun.awt.SunToolkit
public void grab(Window window)
grab
in class sun.awt.SunToolkit
public boolean isDesktopSupported()
isDesktopSupported
in class sun.awt.SunToolkit
public boolean isTraySupported()
isTraySupported
in class sun.awt.SunToolkit
public void ungrab(Window window)
ungrab
in class sun.awt.SunToolkit
public boolean isWindowShapingSupported()
isWindowShapingSupported
in class sun.awt.SunToolkit
public boolean isWindowTranslucencySupported()
isWindowTranslucencySupported
in class sun.awt.SunToolkit
Copyright © 2004–2016. All rights reserved.