APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.javafx.tk

public abstract Class Toolkit

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.javafx.tk.quantum.QuantumToolkit, com.sun.javafx.tk.DummyToolkit
Imports
javafx.application.ConditionalFeature, javafx.beans.property.ReadOnlyObjectProperty, javafx.geometry.Dimension2D, javafx.scene.effect.BlurType, javafx.scene.image.Image, .PixelFormat, .WritableImage, javafx.scene.input.Dragboard, .InputMethodRequests, .KeyCode, .KeyEvent, .TransferMode, javafx.scene.paint.Color, .ImagePattern, .LinearGradient, .Paint, .RadialGradient, .Stop, javafx.scene.shape.PathElement, .SVGPath, .StrokeLineCap, .StrokeLineJoin, .StrokeType, javafx.stage.FileChooser.ExtensionFilter, .Modality, .StageStyle, .Window, java.io.File, .InputStream, java.nio.ByteBuffer, java.util.ArrayList, .Collections, .HashSet, .List, .Map, .Set, .WeakHashMap, .Optional, java.util.concurrent.CountDownLatch, .Future, com.sun.glass.ui.CommonDialogs.FileChooserResult, .GlassRobot, com.sun.glass.utils.NativeLibLoader, com.sun.javafx.PlatformUtil, com.sun.javafx.beans.event.AbstractNotifyListener, com.sun.javafx.embed.HostInterface, com.sun.javafx.geom.Path2D, com.sun.javafx.geom.transform.BaseTransform, com.sun.javafx.perf.PerformanceTracker, com.sun.javafx.runtime.VersionInfo, com.sun.javafx.runtime.async.AsyncOperation, .AsyncOperationListener, com.sun.javafx.scene.text.TextLayoutFactory, com.sun.javafx.sg.prism.NGCamera, .NGLightBase, .NGNode, com.sun.javafx.util.Utils, com.sun.scenario.DelayedRunnable, com.sun.scenario.animation.AbstractPrimaryTimer, com.sun.scenario.effect.AbstractShadow.ShadowMode, .Color4f, .FilterContext, .Filterable

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
public static class
public static interface
public static interface
public static interface

Field Summary

Modifier and TypeField and Description
private static final String
private static Thread
private static final Map<K, V>
private static Toolkit.ImageAccessor
private TKPulseListener
private static final String[]
private static Toolkit.PaintAccessor
private CountDownLatch
private final Set<TKPulseListener>
private static final String
private final Set<TKPulseListener>
private final Set<Runnable>
private final Set<TKPulseListener>
private static String
private static Toolkit
private final Set<TKListener>
private static final boolean
private static Toolkit.WritableImageAccessor

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public abstract void
accumulateStrokeBounds(Shape shape, float[] bbox, StrokeType type, double strokewidth, StrokeLineCap cap, StrokeLineJoin join, float miterLimit, BaseTransform tx)

public void
public abstract Future<V>
public void
public void
public void
public void
public abstract boolean

Returns:

true if a nested event loop can be started, and false otherwise.
canStartNestedEventLoop
()

Indicates whether a nested event loop can be started from the current thread in the current state.

public void
private Object
protected static final double
clampStopOffset(double offset)

public abstract PathElement[]
protected abstract Object
protected abstract Object
protected abstract Object
public TKClipboard
public abstract PerformanceTracker
public abstract PlatformImage
createPlatformImage(int w, int h)

protected abstract Object
public abstract GlassRobot
public abstract Shape
createStrokedShape(Shape shape, StrokeType type, double strokewidth, StrokeLineCap cap, StrokeLineJoin join, float miterLimit, float[] dashArray, float dashOffset)

public abstract Path2D
public abstract Object
public abstract TKStage
public abstract TKStage
createTKPopupStage(Window peerWindow, StageStyle popupStyle, TKStage owner)

public abstract TKStage
createTKStage(Window peerWindow, StageStyle stageStyle, boolean primary, Modality modality, TKStage owner, boolean rtl, boolean darkFrame)

public abstract void
defer(Runnable runnable)

public abstract void
public abstract Object

Returns:

the value passed into the corresponding call to exitEventLoop
enterNestedEventLoop
(Object
the Object that identifies the nested event loop, which must not be null
key
)

Enter a nested event loop and block until the corresponding exitNestedEventLoop call is made.

public void
exit()

public abstract void
public abstract void
exitNestedEventLoop(Object
the Object that identifies the nested event loop, which must not be null
key
,
Object
an Object that is returned to the caller of the corresponding enterNestedEventLoop. This may be null.
rval
)

Exit a nested event loop and unblock the caller of the corresponding enterNestedEventLoop.

public void
public abstract Dimension2D
getBestCursorSize(int preferredWidth, int preferredHeight)

public abstract Map<Object, Object>
public boolean
private static String
public abstract FilterContext
public abstract FontLoader
protected static Thread
public static Toolkit.ImageAccessor
public abstract int
getKeyCodeForChar(String character, int hint)

public abstract int
public abstract int
public abstract int
public abstract long
public abstract TKClipboard
private Object
private Object
public Object
getPaint(Paint paint)

public static Toolkit.PaintAccessor
public abstract PerformanceTracker
public KeyCode

Returns:

the key code for shortcut modifier key
getPlatformShortcutKey
()

Returns the key code for the key which is commonly used on the corresponding platform as a modifier key in shortcuts.

public abstract Object
public abstract AbstractPrimaryTimer
public abstract int
public abstract ScreenConfigurationAccessor
public abstract List<?>
public abstract TKClipboard
public abstract TKSystemMenu
public abstract TextLayoutFactory
public String
public static synchronized Toolkit
public static Toolkit.WritableImageAccessor
public abstract boolean
imageContains(Object image, float x, float y)

Tests whether the pixel on the given coordinates in the given image is non-empty (not fully transparent).

public abstract boolean
init()

public abstract void
public abstract boolean
public abstract boolean
public boolean
public abstract Optional<Boolean>

Returns:

the lock state for the given keyCode.
isKeyLocked
(KeyCode
the keyCode to check
keyCode
)

Returns the lock state for the given keyCode.

public boolean
public abstract boolean
public boolean
public abstract ImageLoader
loadImage(String url, double width, double height, boolean preserveRatio, boolean smooth)

public abstract ImageLoader
loadImage(InputStream stream, double width, double height, boolean preserveRatio, boolean smooth)

public abstract AsyncOperation
loadImageAsync(AsyncOperationListener<ImageLoader> listener, String url, double width, double height, boolean preserveRatio, boolean smooth)

public abstract AsyncOperation
loadImageAsync(AsyncOperationListener<ImageLoader> listener, InputStream stream, double width, double height, boolean preserveRatio, boolean smooth)

public static synchronized void
public abstract ImageLoader
loadPlatformImage(Object platformImage)

private static String
public void
protected void
public void
public abstract void
public void
public void
public void
public void
public void
public abstract Object
public abstract void
private void
runPulse(final TKPulseListener listener)

public abstract void
protected static void
public static void
public void
public static void
public abstract ScreenConfigurationAccessor
public static void
public abstract File
showDirectoryChooser(TKStage ownerWindow, String title, File initialDirectory)

public abstract CommonDialogs.FileChooserResult
showFileChooser(TKStage ownerWindow, String title, File initialDirectory, String initialFileName, FileChooserType fileChooserType, List<FileChooser.ExtensionFilter> extensionFilters, FileChooser.ExtensionFilter selectedFilter)

public abstract void
startDrag(TKScene scene, Set<TransferMode> tm, TKDragSourceListener l, Dragboard dragboard)

This function is called when a drag originates within a JavaFX application.

public abstract void
startup(Runnable runnable)

public void
stopDrag(Dragboard dragboard)

public abstract boolean
strokeContains(Shape shape, double x, double y, StrokeType type, double strokewidth, StrokeLineCap cap, StrokeLineJoin join, float miterLimit)

public Color4f
public abstract Filterable
public AbstractShadow.ShadowMode
public abstract void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait