Game Development Reference
In-Depth Information
Worker.State
Constant
Significance
SUCCEEDED
Worker object (thread) has
executed
successfully, and a valid result is in
the value property.
FAILED
Worker object (thread) has
failed
to execute successfully because of some
unexpected condition.
CANCELLED
Worker object (thread) has been
cancelled
by invoking the
Work-
er.cancel()
method call.
As with everything else in this JavaFX 8 multimedia engine overview chapter, you
will be getting deep into the details of how to use these packages, classes, nested
classes, interfaces, methods, constants, and variables over the course of the topic, as
you apply these JavaFX programming constructs and concepts!
Summary
In this fourth chapter, you took a closer look at some of the more important packages,
concepts, components, classes, constructors, constants, and variables (attributes) that
can be found in the
JavaFX 8 API
, an impressive collection of
36
javafx.packagename.subpackagename packages, which I outlined in tables and
covered, one by one, as needed for multimedia 2D and 3D (and hybrid 2D-3D) game
development. When I say, “an overview,” I mean an overview!
Certainly, I cannot discuss every functional class in JavaFX in one chapter, so I
started with a broad overview of the JavaFX engine and how it integrates with the
JavaFX
Scene Builder
tool and the JavaFX
Scene Graph
API
above it, and with the
Java 8
API,
NetBeans 8.0
, and target OSs below it, which give JavaFX expansive OS
support across so many popular platforms and devices and the leading web browsers.
I presented a high-level technical view of JavaFX, detailing its structures, including
JavaFX Scene Graph
,
APIs
,
Quantum
,
Prism
,
Glass
,
WebKit
, and
Media
engine.
You looked at how these multithreading, rendering, windowing, media, and web en-
gines interface with the
Java 8 API
and
Java JDK
8
as well as with
NetBeans 8.0
and
the
JVM
bytecode that it generates, which is read by all the various OS platforms cur-
rently running across a dozen different consumer electronics device types.
You also explored JavaFX core concepts, such as the
JavaFX Scene Graph
and the JavaFX
pulse
events system, which you will be leveraging to create a Java 8