Reserved. Insert Information Protection Policy Classification From Slide 8
Reserved. Insert Information Protection Policy Classification From Slide 8
Tm hiu JavaFX
V Minh Nht
Dng Quc Thnh
Nguyn Th Minh Thi
2
12520665
12520725
12520717
Presenting with
LOGO
Program Agenda
Background
Technical Details
Roadmap
JavaFX in Action (Demos)
JavaFX Glossary
Glass Windowing Toolkit: Provides native operating services, such as
managing the windows, timers, and surfaces
Prism: Graphics pipeline that can run on hardware and software renderers
Quantum Toolkit: Ties Prism and Glass together and makes them
available to the JavaFX APIs
7
FXML
Media
11
Embed JavaFX
content into existing
Swing applications
Extend existing Swing
applications with new
JavaFX features such
as WebView and
high-performance
graphics
Applies to SWT
applications as well
Insert Information Protection Policy Classification from Slide 8
Browser Plugin
Faster loading of
JavaFX Web
applications based on
Prism
Pre-loader for
improved user
experience with
JavaFX Web
applications
12
13
root.getChildren().add(c1);
stage.setVisible(true);
Scene Graph
Directed Acyclic Graph
Parents and children
Representation of the GUI components
17
Media
JavaFX supports both visual and audio media
Cross-platform JavaFX media file format (fxm, mp3)
Platform specific formats supported via native players
18
WebEngine
Provides basic web page browsing functionality
Supports user interaction: navigating links, submitting forms
WebView
Web page as a Node in scenegraph
Effects can be applied
19
Charts
20
Effects...
GaussianBlur
InnerShadow
Reflection
SepiaTone
21
Transforms
Rectangle rect=new Rectangle(0,0,60,60);
rect.setFill(Color.DODGERBLUE);
rect.setArcWidth(10);
rect.setArcHeight(10);
rect.setRotate(45);
rect.setScaleX(2);
rect.setScaleY(0.5);
Shear shear = new Shear(0.7, 0);
rect.getTransforms().add(shear);
rect.setTranslateX(40);
rect.setTranslateY(10);
22
Binding
Creates a dependency between a property and a
changeable value
High level API
Easy to use
Covers most common situations
23
Properties
Basis for high level binding API
Concrete types for all primitives, String and Object
DoubleProperty, StringProperty, etc
Simple API
bind / unbind
bindBidirectional / unbindBidirectional
isBound
24
26
Animated Transitions
Pre-defined, single-purpose animations
Fade, Path, Pause, Rotate, Scale, Translate
Can specify to, from and by values
Container transitions
Parallel, sequential
Can be nested arbitarily
27
28
30
JavaFX is
31
JavaFX Roadmap
JavaFX 2.0
JavaFX 2.1
Windows GA
Mac OS X Dev. Preview
Mac OS X GA
Linux Dev. Preview
2011
2011
2012
2012
Included in JDK 8
Concurrent OS support
(Windows, Mac OS, Linux)
2014
2014
2013
2013
JavaFX 2.0.2
JavaFX 2.2
JDK 7 co-install
Linux GA
JavaFX
Scene Builder EA
32
JavaFX 3.0
JavaFX
Scene Builder GA
NetBeans 7.1
NetBeans
Resources
JavaFX website: http://javafx.com
Open source project
http://openjdk.java.net/projects/openjfx/
Blogs
http://fxexperience.com
http://blogs.oracle.com/javafx
Twitter: @javafx4you
33
Q&A
35
36