Top Inners Fields Constructors Methods
com.sun.javafx.tk.quantum

public final Class QuantumToolkit

extends Toolkit
Class Inheritance
Imports
javafx.application.ConditionalFeature, javafx.geometry.Dimension2D, javafx.scene.image.Image, .PixelBuffer, javafx.scene.input.Dragboard, .InputMethodRequests, .KeyCode, .KeyEvent, .TransferMode, javafx.scene.paint.Color, .CycleMethod, .ImagePattern, .LinearGradient, .RadialGradient, .Stop, javafx.scene.shape.ClosePath, .CubicCurveTo, .FillRule, .LineTo, .MoveTo, .PathElement, .QuadCurveTo, .SVGPath, .StrokeLineCap, .StrokeLineJoin, .StrokeType, javafx.stage.FileChooser, .Modality, .StageStyle, .Window, java.io.File, .InputStream, java.nio.Buffer, .ByteBuffer, .IntBuffer, java.util.ArrayList, .Arrays, .Collections, .HashMap, .List, .Map, .Set, .Optional, java.util.concurrent.CountDownLatch, .Future, .TimeUnit, java.util.concurrent.atomic.AtomicBoolean, java.util.function.Supplier, com.sun.glass.ui.Application, .Clipboard, .ClipboardAssistance, .CommonDialogs, .CommonDialogs.FileChooserResult, .EventLoop, .GlassRobot, .Screen, .Timer, .View, com.sun.javafx.PlatformUtil, com.sun.javafx.application.PlatformImpl, com.sun.javafx.embed.HostInterface, com.sun.javafx.geom.Path2D, .PathIterator, .Shape, com.sun.javafx.geom.transform.BaseTransform, com.sun.javafx.perf.PerformanceTracker, com.sun.javafx.runtime.async.AbstractRemoteResource, .AsyncOperationListener, com.sun.javafx.scene.text.TextLayoutFactory, com.sun.javafx.sg.prism.NGNode, com.sun.javafx.tk.CompletionListener, .FileChooserType, .FontLoader, .ImageLoader, .PlatformImage, .RenderJob, .ScreenConfigurationAccessor, .TKClipboard, .TKDragGestureListener, .TKDragSourceListener, .TKDropTargetListener, .TKScene, .TKScreenConfigurationListener, .TKStage, .TKSystemMenu, .Toolkit, com.sun.prism.BasicStroke, .Graphics, .GraphicsPipeline, .PixelFormat, .RTTexture, .ResourceFactory, .ResourceFactoryListener, .Texture.WrapMode, com.sun.prism.impl.Disposer, .PrismSettings, com.sun.scenario.DelayedRunnable, com.sun.scenario.animation.AbstractPrimaryTimer, com.sun.scenario.effect.FilterContext, .Filterable, com.sun.scenario.effect.impl.prism.PrFilterContext, .PrImage, com.sun.javafx.logging.PulseLogger, com.sun.javafx.scene.input.DragboardHelper

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private float
private DelayedRunnable
private QuantumToolkit.PulseTask
private ClassLoader
private QuantumClipboard
private PaintCollector
private Map<Object, Object>
private static boolean
pack-priv static final boolean
private HashMap<Object, EventLoop>
private long
pack-priv final int
private int
private CountDownLatch
pack-priv static final boolean
private static final boolean
pack-priv boolean
private QuantumToolkit.PulseTask
private static final boolean
private static final long
private boolean
private final PerformanceTracker
private GraphicsPipeline
pack-priv final int
public static final boolean
private static Integer
private Runnable
private AtomicBoolean
private Timer
private QuantumRenderer
private static ScreenConfigurationAccessor
private Thread
private static final boolean
private GlassSystemMenu
private Runnable
pack-priv static BasicStroke
private AtomicBoolean
private Runnable
public static final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
accumulateStrokeBounds(Shape shape, float[] bbox, StrokeType pgtype, double strokewidth, StrokeLineCap pgcap, StrokeLineJoin pgjoin, float miterLimit, BaseTransform tx)

Implements abstract com.sun.javafx.tk.Toolkit.accumulateStrokeBounds.

public Future<V>
private void
private static void
private WindowStage
blockOwnerStage(final TKStage stage)

public boolean
canStartNestedEventLoop()

Implements abstract com.sun.javafx.tk.Toolkit.canStartNestedEventLoop.

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

public void
pack-priv static TransferMode
private static List<CommonDialogs.ExtensionFilter>
public PathElement[]
private List<Stop>
convertStops(List<Stop> paintStops)

protected Object
protected Object
protected Object
public PerformanceTracker
public PlatformImage
protected Object
public GlassRobot
public Shape
createStrokedShape(Shape shape, StrokeType pgtype, double strokewidth, StrokeLineCap pgcap, StrokeLineJoin pgjoin, float miterLimit, float[] dashArray, float dashOffset)

Implements abstract com.sun.javafx.tk.Toolkit.createStrokedShape.

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

Implements abstract com.sun.javafx.tk.Toolkit.createTKStage.

public void
defer(Runnable runnable)

Implements abstract com.sun.javafx.tk.Toolkit.defer.

public void
public void
private void
public Object
enterNestedEventLoop(Object key)

Implements abstract com.sun.javafx.tk.Toolkit.enterNestedEventLoop.

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

public void
public void
public void
exitNestedEventLoop(Object key, Object rval)

Implements abstract com.sun.javafx.tk.Toolkit.exitNestedEventLoop.

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

public Dimension2D
getBestCursorSize(int preferredWidth, int preferredHeight)

Implements abstract com.sun.javafx.tk.Toolkit.getBestCursorSize.

public Map<Object, Object>
public FilterContext
public FontLoader
protected static Thread
public int
getKeyCodeForChar(String character, int hint)

Implements abstract com.sun.javafx.tk.Toolkit.getKeyCodeForChar.

public int
private float
public int
public int
public long
public TKClipboard
public PerformanceTracker
public Object
public AbstractPrimaryTimer
public int
public ScreenConfigurationAccessor
public List<?>
public TKClipboard
public TKSystemMenu
public TextLayoutFactory
pack-priv boolean
public boolean
imageContains(Object image, float x, float y)

Implements abstract com.sun.javafx.tk.Toolkit.imageContains.

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

public boolean
init()

Implements abstract com.sun.javafx.tk.Toolkit.init.

private static void
initSceneGraph()

Method to initialize the Scene Graph on the JavaFX application thread.

private void
initStroke(StrokeType pgtype, double strokewidth, StrokeLineCap pgcap, StrokeLineJoin pgjoin, float miterLimit, float[] dashArray, float dashOffset)

public void
public boolean
public boolean
public Optional<Boolean>
isKeyLocked(KeyCode keyCode)

Implements abstract com.sun.javafx.tk.Toolkit.isKeyLocked.

Returns the lock state for the given keyCode.

public boolean
public boolean
public boolean
pack-priv boolean
public ImageLoader
loadImage(String url, double width, double height, boolean preserveRatio, boolean smooth)

Implements abstract com.sun.javafx.tk.Toolkit.loadImage.

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

Implements abstract com.sun.javafx.tk.Toolkit.loadImage.

public AbstractRemoteResource<? extends ImageLoader>
loadImageAsync(AsyncOperationListener<V> listener, String url, double width, double height, boolean preserveRatio, boolean smooth)

Implements abstract com.sun.javafx.tk.Toolkit.loadImageAsync.

public ImageLoader
private boolean
private static void
private synchronized void
pack-priv void
protected void
pack-priv void
pulse(boolean collect)

pack-priv void
private String
public void
public Object
public void
private synchronized void
public static void
pack-priv void
public static <
the type of the return value
T
>
T

Returns:

the return value from calling supplier.get()
runWithoutRenderLock
(Supplier<T>
the supplier to be run
supplier
)

Runs the specified supplier, releasing the renderLock if needed.

public static <
the type of the return value
T
>
T

Returns:

the return value from calling supplier.get()
runWithRenderLock
(Supplier<T>
the supplier to be run
supplier
)

Runs the specified supplier, first acquiring the renderLock.

public void
private boolean
public ScreenConfigurationAccessor
pack-priv boolean
public File
showDirectoryChooser(final TKStage ownerWindow, final String title, final File initialDirectory)

Implements abstract com.sun.javafx.tk.Toolkit.showDirectoryChooser.

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

Implements abstract com.sun.javafx.tk.Toolkit.showFileChooser.

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

Implements abstract com.sun.javafx.tk.Toolkit.startDrag.

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

public void
startup(final Runnable
A runnable invoked on the JavaFX Application Thread that allows the system to perform some startup functionality after the toolkit has been initialized.
userStartupRunnable
)

Implements abstract com.sun.javafx.tk.Toolkit.startup.

This method is invoked by PlatformImpl.

public boolean
strokeContains(Shape shape, double x, double y, StrokeType pgtype, double strokewidth, StrokeLineCap pgcap, StrokeLineJoin pgjoin, float miterLimit)

Implements abstract com.sun.javafx.tk.Toolkit.strokeContains.

public Filterable
private int
private Color
pack-priv void
public void
Inherited from com.sun.javafx.tk.Toolkit:
addPostSceneTkPulseListeneraddSceneTkPulseListeneraddShutdownHookaddStageTkPulseListeneraddTkListenerclampStopOffsetcreateLocalClipboardfirePulsegetDefaultImageSmoothgetImageAccessorgetPaintgetPaintAccessorgetPlatformShortcutKeygetThemeNamegetToolkitgetWritableImageAccessorisFxUserThreadloadMSWindowsLibrariesnotifyLastNestedLoopExitednotifyShutdownHooksnotifyWindowListenersremovePostSceneTkPulseListenerremoveSceneTkPulseListenerremoveShutdownHookremoveStageTkPulseListenerremoveTkListenersetFxUserThreadsetImageAccessorsetLastTkPulseListenersetPaintAccessorsetWritableImageAccessorstopDragtoColor4ftoShadowMode