void
addAWTEventListener(AWTEventListener listener, long eventMask)
Adds an AWTEventListener to receive all AWTEvents dispatched system-wide that conform to the given eventMask
.
void
addPropertyChangeListener(String name, PropertyChangeListener pcl)
Adds the specified property change listener for the named desktop property.
boolean
areExtraMouseButtonsEnabled()
Reports whether events from extra mouse buttons are allowed to be processed and posted into EventQueue
.
abstract void
beep()
Emits an audio beep depending on native system settings and hardware capabilities.
abstract int
checkImage(Image image, int width, int height, ImageObserver observer)
Indicates the construction status of a specified image that is being prepared for display.
protected abstract java.awt.peer.ButtonPeer
createButton(Button target)
Creates this toolkit's implementation of Button
using the specified peer interface.
protected abstract java.awt.peer.CanvasPeer
createCanvas(Canvas target)
Creates this toolkit's implementation of Canvas
using the specified peer interface.
protected abstract java.awt.peer.CheckboxPeer
createCheckbox(Checkbox target)
Creates this toolkit's implementation of Checkbox
using the specified peer interface.
protected abstract java.awt.peer.CheckboxMenuItemPeer
createCheckboxMenuItem(CheckboxMenuItem target)
Creates this toolkit's implementation of CheckboxMenuItem
using the specified peer interface.
protected abstract java.awt.peer.ChoicePeer
createChoice(Choice target)
Creates this toolkit's implementation of Choice
using the specified peer interface.
protected java.awt.peer.LightweightPeer
createComponent(Component target)
Creates a peer for a component or container.
Cursor
createCustomCursor(Image cursor, Point hotSpot, String name)
Creates a new custom cursor object.
protected abstract java.awt.peer.DesktopPeer
createDesktopPeer(Desktop target)
Creates this toolkit's implementation of the Desktop
using the specified peer interface.
protected abstract java.awt.peer.DialogPeer
createDialog(Dialog target)
Creates this toolkit's implementation of Dialog
using the specified peer interface.
<T extends DragGestureRecognizer>
T
createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)
Creates a concrete, platform dependent, subclass of the abstract DragGestureRecognizer class requested, and associates it with the DragSource, Component and DragGestureListener specified.
abstract java.awt.dnd.peer.DragSourceContextPeer
createDragSourceContextPeer(DragGestureEvent dge)
Creates the peer for a DragSourceContext.
protected abstract java.awt.peer.FileDialogPeer
createFileDialog(FileDialog target)
Creates this toolkit's implementation of FileDialog
using the specified peer interface.
protected abstract java.awt.peer.FramePeer
createFrame(Frame target)
Creates this toolkit's implementation of Frame
using the specified peer interface.
Image
createImage(byte[] imagedata)
Creates an image which decodes the image stored in the specified byte array.
abstract Image
createImage(byte[] imagedata, int imageoffset, int imagelength)
Creates an image which decodes the image stored in the specified byte array, and at the specified offset and length.
abstract Image
createImage(ImageProducer producer)
Creates an image with the specified image producer.
abstract Image
createImage(String filename)
Returns an image which gets pixel data from the specified file.
abstract Image
createImage(URL url)
Returns an image which gets pixel data from the specified URL.
protected abstract java.awt.peer.LabelPeer
createLabel(Label target)
Creates this toolkit's implementation of Label
using the specified peer interface.
protected abstract java.awt.peer.ListPeer
createList(List target)
Creates this toolkit's implementation of List
using the specified peer interface.
protected abstract java.awt.peer.MenuPeer
createMenu(Menu target)
Creates this toolkit's implementation of Menu
using the specified peer interface.
protected abstract java.awt.peer.MenuBarPeer
createMenuBar(MenuBar target)
Creates this toolkit's implementation of MenuBar
using the specified peer interface.
protected abstract java.awt.peer.MenuItemPeer
createMenuItem(MenuItem target)
Creates this toolkit's implementation of MenuItem
using the specified peer interface.
protected abstract java.awt.peer.PanelPeer
createPanel(Panel target)
Creates this toolkit's implementation of Panel
using the specified peer interface.
protected abstract java.awt.peer.PopupMenuPeer
createPopupMenu(PopupMenu target)
Creates this toolkit's implementation of PopupMenu
using the specified peer interface.
protected abstract java.awt.peer.ScrollbarPeer
createScrollbar(Scrollbar target)
Creates this toolkit's implementation of Scrollbar
using the specified peer interface.
protected abstract java.awt.peer.ScrollPanePeer
createScrollPane(ScrollPane target)
Creates this toolkit's implementation of ScrollPane
using the specified peer interface.
protected abstract java.awt.peer.TextAreaPeer
createTextArea(TextArea target)
Creates this toolkit's implementation of TextArea
using the specified peer interface.
protected abstract java.awt.peer.TextFieldPeer
createTextField(TextField target)
Creates this toolkit's implementation of TextField
using the specified peer interface.
protected abstract java.awt.peer.WindowPeer
createWindow(Window target)
Creates this toolkit's implementation of Window
using the specified peer interface.
AWTEventListener[]
getAWTEventListeners()
Returns an array of all the AWTEventListener
s registered on this toolkit.
AWTEventListener[]
getAWTEventListeners(long eventMask)
Returns an array of all the AWTEventListener
s registered on this toolkit which listen to all of the event types specified in the eventMask
argument.
Dimension
getBestCursorSize(int preferredWidth, int preferredHeight)
Returns the supported cursor dimension which is closest to the desired sizes.
abstract ColorModel
getColorModel()
Determines the color model of this toolkit's screen.
static Toolkit
getDefaultToolkit()
Gets the default toolkit.
Object
getDesktopProperty(String propertyName)
Obtains a value for the specified desktop property.
abstract String[]
getFontList()
abstract FontMetrics
getFontMetrics(Font font)
protected abstract java.awt.peer.FontPeer
getFontPeer(String name, int style)
abstract Image
getImage(String filename)
Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG.
abstract Image
getImage(URL url)
Returns an image which gets pixel data from the specified URL.
boolean
getLockingKeyState(int keyCode)
Returns whether the given locking key on the keyboard is currently in its "on" state.
int
getMaximumCursorColors()
Returns the maximum number of colors the Toolkit supports in a custom cursor palette.
int
getMenuShortcutKeyMask()
Determines which modifier key is the appropriate accelerator key for menu shortcuts.
protected java.awt.peer.MouseInfoPeer
getMouseInfoPeer()
Obtains this toolkit's implementation of helper class for MouseInfo
operations.
protected static Container
getNativeContainer(Component c)
Give native peers the ability to query the native container given a native component (eg the direct parent may be lightweight).
PrintJob
getPrintJob(Frame frame, String jobtitle, JobAttributes jobAttributes, PageAttributes pageAttributes)
Gets a PrintJob
object which is the result of initiating a print operation on the toolkit's platform.
abstract PrintJob
getPrintJob(Frame frame, String jobtitle, Properties props)
Gets a PrintJob
object which is the result of initiating a print operation on the toolkit's platform.
static String
getProperty(String key, String defaultValue)
Gets a property with the specified key and default.
PropertyChangeListener[]
getPropertyChangeListeners()
Returns an array of all the property change listeners registered on this toolkit.
PropertyChangeListener[]
getPropertyChangeListeners(String propertyName)
Returns an array of all property change listeners associated with the specified name of a desktop property.
Insets
getScreenInsets(GraphicsConfiguration gc)
Gets the insets of the screen.
abstract int
getScreenResolution()
Returns the screen resolution in dots-per-inch.
abstract Dimension
getScreenSize()
Gets the size of the screen.
abstract Clipboard
getSystemClipboard()
Gets the singleton instance of the system Clipboard which interfaces with clipboard facilities provided by the native platform.
EventQueue
getSystemEventQueue()
Get the application's or applet's EventQueue instance.
protected abstract EventQueue
getSystemEventQueueImpl()
Gets the application's or applet's EventQueue
instance, without checking access.
Clipboard
getSystemSelection()
Gets the singleton instance of the system selection as a Clipboard
object.
protected void
initializeDesktopProperties()
initializeDesktopProperties
boolean
isAlwaysOnTopSupported()
Returns whether the always-on-top mode is supported by this toolkit.
boolean
isDynamicLayoutActive()
Returns whether dynamic layout of Containers on resize is currently active (both set in program ( isDynamicLayoutSet()
) , and supported by the underlying operating system and/or window manager).
protected boolean
isDynamicLayoutSet()
Returns whether the layout of Containers is validated dynamically during resizing, or statically, after resizing is complete.
boolean
isFrameStateSupported(int state)
Returns whether Toolkit supports this state for Frame
s.
abstract boolean
isModalExclusionTypeSupported(Dialog.ModalExclusionType modalExclusionType)
Returns whether the given modal exclusion type is supported by this toolkit.
abstract boolean
isModalityTypeSupported(Dialog.ModalityType modalityType)
Returns whether the given modality type is supported by this toolkit.
protected Object
lazilyLoadDesktopProperty(String name)
an opportunity to lazily evaluate desktop property values.
protected void
loadSystemColors(int[] systemColors)
Fills in the integer array that is supplied as an argument with the current system color values.
abstract Map<TextAttribute,?>
mapInputMethodHighlight(InputMethodHighlight highlight)
Returns a map of visual attributes for the abstract level description of the given input method highlight, or null if no mapping is found.
abstract boolean
prepareImage(Image image, int width, int height, ImageObserver observer)
Prepares an image for rendering.
void
removeAWTEventListener(AWTEventListener listener)
Removes an AWTEventListener from receiving dispatched AWTEvents.
void
removePropertyChangeListener(String name, PropertyChangeListener pcl)
Removes the specified property change listener for the named desktop property.
protected void
setDesktopProperty(String name, Object newValue)
Sets the named desktop property to the specified value and fires a property change event to notify any listeners that the value has changed.
void
setDynamicLayout(boolean dynamic)
Controls whether the layout of Containers is validated dynamically during resizing, or statically, after resizing is complete.
void
setLockingKeyState(int keyCode, boolean on)
Sets the state of the given locking key on the keyboard.
abstract void
sync()
Synchronizes this toolkit's graphics state.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4