Class CTCToolkit
- java.lang.Object
-
- java.awt.Toolkit
-
- sun.awt.SunToolkit
-
- com.github.caciocavallosilano.cacio.peer.CacioToolkit
-
- com.github.caciocavallosilano.cacio.ctc.CTCToolkit
-
- All Implemented Interfaces:
sun.awt.ComponentFactory,sun.awt.InputMethodSupport,sun.awt.KeyboardFocusManagerPeerProvider
public class CTCToolkit extends CacioToolkit
-
-
Field Summary
-
Fields inherited from class sun.awt.SunToolkit
DEFAULT_WAIT_TIME, DESKTOPFONTHINTS, GRAB_EVENT_MASK, MAX_BUTTONS_SUPPORTED, numberOfButtons
-
Fields inherited from class java.awt.Toolkit
desktopProperties, desktopPropsSupport
-
-
Constructor Summary
Constructors Constructor Description CTCToolkit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeep()java.awt.peer.DesktopPeercreateDesktopPeer(Desktop target)java.awt.dnd.peer.DragSourceContextPeercreateDragSourceContextPeer(DragGestureEvent dge)java.awt.peer.FramePeercreateLightweightFrame(sun.awt.LightweightFrame lightweightFrame)java.awt.peer.RobotPeercreateRobot(Robot target, GraphicsDevice screen)java.awt.peer.SystemTrayPeercreateSystemTray(SystemTray target)java.awt.peer.TrayIconPeercreateTrayIcon(TrayIcon target)ColorModelgetColorModel()sun.awt.datatransfer.DataTransferergetDataTransferer()java.awt.peer.FontPeergetFontPeer(String name, int style)InputMethodDescriptorgetInputMethodAdapterDescriptor()PlatformWindowFactorygetPlatformWindowFactory()PrintJobgetPrintJob(Frame frame, String jobtitle, Properties props)protected intgetScreenHeight()protected intgetScreenWidth()voidgrab(Window w)booleanisDesktopSupported()booleanisTaskbarSupported()booleanisTraySupported()Map<TextAttribute,?>mapInputMethodHighlight(InputMethodHighlight highlight)voidsync()protected booleansyncNativeQueue(long timeout)voidungrab(Window w)-
Methods inherited from class com.github.caciocavallosilano.cacio.peer.CacioToolkit
areExtraMouseButtonsEnabled, createButton, createCanvas, createCheckbox, createCheckboxMenuItem, createChoice, createDialog, createFileDialog, createFrame, createKeyboardFocusManagerPeer, createLabel, createList, createMenu, createMenuBar, createMenuItem, createOffScreenImage, createPanel, createPopupMenu, createScrollbar, createScrollPane, createTextArea, createTextField, createWindow, getKeyboardFocusManagerPeer, getMouseInfoPeer, getScreenResolution, getSystemClipboard, lazilyLoadDesktopProperty, setDecorateDialogs, setDecorateWindows, useManagedWindows
-
Methods inherited from class sun.awt.SunToolkit
addModalityListener, awtLock, awtLockNotify, awtLockNotifyAll, awtLockWait, awtLockWait, awtTryLock, awtUnlock, canPopupOverlapTaskBar, checkAndSetPolicy, checkImage, closeSplashScreen, consumeNextKeyTyped, createImage, createImage, createImage, createImage, createImageWithResolutionVariant, createInputMethodWindow, createNewAppContext, disableBackgroundErase, disableBackgroundErase, dumpPeers, enableInputMethodsForTextComponent, executeOnEDTAndWait, executeOnEventHandlerThread, executeOnEventHandlerThread, executeOnEventHandlerThread, flushPendingEvents, flushPendingEvents, getContainingWindow, getDefaultKeyboardLocale, getDesktopAAHints, getDesktopFontHints, getFocusAcceleratorKeyMask, getFontList, getFontMetrics, getHeavyweightComponent, getImage, getImage, getImageWithResolutionVariant, getImageWithResolutionVariant, getLightweightFrame, getNativeContainer, getNumberOfButtons, getScaledIconData, getScaledIconImage, getScreenSize, getStartupLocale, getSunAwtDisableMixing, getSunAwtErasebackgroundonresize, getSunAwtNoerasebackground, getSystemEventQueueImpl, getSystemEventQueueImplPP, getWindowDeactivationTime, imageCached, imageCached, imageExists, imageExists, insertTargetMapping, invokeLaterOnAppContext, isAWTLockHeldByCurrentThread, isContainingTopLevelOpaque, isContainingTopLevelTranslucent, isDispatchThreadForAppContext, isInstanceOf, isLightweightOrUnknown, isModalExcluded, isModalExcludedSupported, isModalExcludedSupportedImpl, isModalExclusionTypeSupported, isModalityTypeSupported, isNativeGTKAvailable, isPrintableCharacterModifiersMask, isSwingBackbufferTranslucencySupported, isSystemGenerated, isTouchKeyboardAutoShowEnabled, isTranslucencyCapable, isWindowOpacitySupported, isWindowShapingSupported, isWindowTranslucencySupported, isXEmbedServerRequested, needsXEmbed, needsXEmbedImpl, needUpdateWindow, notifyModalityPopped, notifyModalityPushed, postEvent, postPriorityEvent, prepareImage, realSync, realSync, removeModalityListener, setAAFontSettingsCondition, setLWRequestStatus, setModalExcluded, setSystemGenerated, setWindowDeactivationTime, showOrHideTouchKeyboard, targetCreatedPeer, targetDisposedPeer, targetToAppContext, targetToPeer, updateScreenMenuBarUI, useBufferPerWindow, waitForIdle
-
Methods inherited from class java.awt.Toolkit
addAWTEventListener, addPropertyChangeListener, createCustomCursor, createDragGestureRecognizer, createImage, getAWTEventListeners, getAWTEventListeners, getBestCursorSize, getDefaultToolkit, getDesktopProperty, getLockingKeyState, getMaximumCursorColors, getMenuShortcutKeyMask, getMenuShortcutKeyMaskEx, getPrintJob, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getScreenInsets, getSystemEventQueue, getSystemSelection, initializeDesktopProperties, isAlwaysOnTopSupported, isDynamicLayoutActive, isDynamicLayoutSet, isFrameStateSupported, loadSystemColors, removeAWTEventListener, removePropertyChangeListener, setDesktopProperty, setDynamicLayout, setLockingKeyState
-
-
-
-
Method Detail
-
getPlatformWindowFactory
public PlatformWindowFactory getPlatformWindowFactory()
- Specified by:
getPlatformWindowFactoryin classCacioToolkit
-
getInputMethodAdapterDescriptor
public InputMethodDescriptor getInputMethodAdapterDescriptor() throws AWTException
- Throws:
AWTException
-
createDragSourceContextPeer
public java.awt.dnd.peer.DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge) throws InvalidDnDOperationException
- Throws:
InvalidDnDOperationException
-
createTrayIcon
public java.awt.peer.TrayIconPeer createTrayIcon(TrayIcon target) throws HeadlessException, AWTException
- Specified by:
createTrayIconin classsun.awt.SunToolkit- Throws:
HeadlessExceptionAWTException
-
createSystemTray
public java.awt.peer.SystemTrayPeer createSystemTray(SystemTray target)
- Specified by:
createSystemTrayin classsun.awt.SunToolkit
-
isTraySupported
public boolean isTraySupported()
- Specified by:
isTraySupportedin classsun.awt.SunToolkit
-
getFontPeer
public java.awt.peer.FontPeer getFontPeer(String name, int style)
-
createRobot
public java.awt.peer.RobotPeer createRobot(Robot target, GraphicsDevice screen) throws AWTException
- Throws:
AWTException
-
getScreenWidth
protected int getScreenWidth()
-
getScreenHeight
protected int getScreenHeight()
-
syncNativeQueue
protected boolean syncNativeQueue(long timeout)
- Specified by:
syncNativeQueuein classsun.awt.SunToolkit
-
grab
public void grab(Window w)
- Specified by:
grabin classsun.awt.SunToolkit
-
ungrab
public void ungrab(Window w)
- Specified by:
ungrabin classsun.awt.SunToolkit
-
isDesktopSupported
public boolean isDesktopSupported()
- Specified by:
isDesktopSupportedin classsun.awt.SunToolkit
-
createDesktopPeer
public java.awt.peer.DesktopPeer createDesktopPeer(Desktop target) throws HeadlessException
- Throws:
HeadlessException
-
getColorModel
public ColorModel getColorModel() throws HeadlessException
- Overrides:
getColorModelin classsun.awt.SunToolkit- Throws:
HeadlessException
-
getPrintJob
public PrintJob getPrintJob(Frame frame, String jobtitle, Properties props)
- Specified by:
getPrintJobin classToolkit
-
mapInputMethodHighlight
public Map<TextAttribute,?> mapInputMethodHighlight(InputMethodHighlight highlight) throws HeadlessException
- Specified by:
mapInputMethodHighlightin classToolkit- Throws:
HeadlessException
-
createLightweightFrame
public java.awt.peer.FramePeer createLightweightFrame(sun.awt.LightweightFrame lightweightFrame) throws HeadlessException- Specified by:
createLightweightFramein classsun.awt.SunToolkit- Throws:
HeadlessException
-
getDataTransferer
public sun.awt.datatransfer.DataTransferer getDataTransferer()
-
isTaskbarSupported
public boolean isTaskbarSupported()
- Specified by:
isTaskbarSupportedin classsun.awt.SunToolkit
-
-