售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
JavaFX 1.2 Application Development Cookbook
Table of Contents
JavaFX 1.2 Application Development Cookbook
Credits
About the Author
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Getting Started with JavaFX
Introduction
The Java proposition
Enter JavaFX
Installing the JavaFX SDK
Getting ready
Minimum system requirements
How to do it...
Installation on Windows
Installation on Mac OS
Installation on Ubuntu Linux and OpenSolaris
How it works...
Setting up JavaFX for the NetBeans IDE
Getting ready
How to do it...
NetBeans installation on Windows
Installation on Mac OS
Installation on Ubuntu Linux and OpenSolaris
How it works...
There's more...
Download JavaFX NetBeans plugin
See also
Setting up JavaFX for the Eclipse IDE
Getting ready
How to do it...
How it works...
See also
Using javafxc to compile JavaFX code
Getting ready
How to do it...
How it works...
See also
Creating and using JavaFX classes
Getting ready
How to do it...
How it works...
Object literal initialization
There's more...
Initialization block
See also
Creating and using variables in JavaFX
Getting ready
How to do it...
How it works…
There's more...
Explicit type declaration
Implicit coercion
JavaFX types
Variable scope
Script level
Instance level
Local level
See also
Using binding and triggers to update variables
Getting ready
How to do it...
How it works...
Binding to variables
Binding to a conditional
Binding to a code block
Binding to a function
Bind to an object literal
There's more...
Using triggers
See also
Creating and using JavaFX functions
Getting ready
How to do it...
How it works...
There's more...
Bound functions
The run() function
See also
Integrating your JavaFX code with Java
Getting ready
How to do it...
How it works...
There is more...
Implementing a Java interface in JavaFX
See also
Creating and using JavaFX sequences
Getting ready
How to do it...
How it works...
There is more...
Sequence operators
Sequence operations
Sequence slices
Sequence loop query
Working with JavaFX String
Getting ready
How to do it...
How it works...
There is more...
Using JavaFX localization
2. Creating JavaFX Applications
Introduction
Building a JavaFX application
Getting ready
How to do it...
How it works...
Decomposing the application
See also
Drawing simple shapes
Getting ready
How to do it...
How it works...
There's more...
Polyline and Polygon
Arc
Bézier curves
See also
Creating complex shapes using Path
Getting ready
How to do it...
How it works...
See also
Creating shapes with constructive area geometry
Getting ready
How to do it...
How it works...
There's more...
See also
Drawing letter shapes using the Text class
Getting ready
How to do it...
How it works...
There's more...
Text origin
Text wrapping
Text alignment
Embolden your font
Locating fonts
See also
Handling user input
Getting ready
How to do it...
How it works...
There's more...
See also
Arranging your nodes on stage
Getting ready
How to do it...
How it works...
There's more...
See also
Making your scripts modular
Getting ready
How to do it...
How it works...
There's more...
Script versus module
Organize your code into packages
Access modifiers
See also
Creating your own custom node
Getting ready
How to do it...
How it works...
There's more...
See also
Controlling your application's window style
Getting ready
How to do it...
How it works...
There's more...
Controlling opacity
See also
Going full-screen
Getting ready
How to do it...
How it works...
There's more...
See also
3. Transformations, Animations, and Effects
Introduction
The JavaFX animation framework
Modifying shapes with the Transformation API
Getting started
How to do it...
How it works...
There's more...
See also
Creating simple animation with the Transition API
Getting ready
How to do it...
How it works...
There's more...
The Timeline
See also
Composing animation with the Transition API
Getting ready
How to do it...
How it works...
There's more...
See also
Building animation with the KeyFrame API
Getting ready
How to do it...
How it works...
There's more...
Interpolation
Using the Timeline class as a timer
See also
Creating custom interpolators for animation
Getting ready
How to do it...
How it works...
See also
Morphing shapes with the DelegateShape class
Getting ready
How to do it...
How it works...
See also
Using data binding to drive animation sequences
Getting ready
How to do it...
How it works...
See also
Applying cool paint effects with gradients
Getting ready
How to do it...
How it works...
There's more...
See also
Creating your own customized Paint
Getting ready
How to do it…
How it works...
See also
Adding depth with lighting and shadow effects
Getting ready
How to do it...
How it works...
There's more...
See also
Creating your own Text effect
Getting ready
How to do it...
How it works...
See also
Adding visual appeal with the Reflection effect
Getting ready
How to do it...
How it works...
See also
4. Components and Skinning
Introduction
Creating a form with JavaFX controls
Getting ready
How to do it...
How it works...
There's more...
See also
Displaying data with the ListView control
Getting ready
How to do it...
How it works...
There's more...
Using a custom data model with ListView
See also
Using the Slider control to input numeric values
Getting ready
How to do it...
How it works...
See also
Showing progress with the progress controls
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a custom JavaFX control
Getting ready
How to do it...
How it works...
See also
Embedding Swing components in JavaFX
Getting ready
How to do it...
How it works...
There's more...
Wrapping custom Swing controls into JavaFX node
Creating a Swing control façade from JavaFX
See also
Styling your applications with CSS
Getting ready
How to do it...
How it works...
There's more...
JavaFX CSS
Styling Text nodes with CSS
Styling Paint properties with CSS
See also
Using CSS files to apply styles
Getting ready
How to do it...
How it works...
There's more...
Pseudo-classes
Cascading styles
See also
Skinning applications with multiple CSS files
Getting ready
How to do it...
How it works...
See also
5. JavaFX Media
Introduction
Accessing media assets
Getting ready
How to do it...
How it works...
There's more...
Loading and displaying images with ImageView
Getting ready
How to do it...
How it works...
There's more...
Format support
Asynchronous loading issues
Image resize and aspect ratio
See also
Applying effects and transformations to images
Getting ready
How to do it...
How it works...
See also
Creating image effects with blending
Getting ready
How to do it...
How it works...
There's more...
See also
Playing audio with MediaPlayer
Getting ready
How to do it...
How it works...
There's more...
See also
Playing video with MediaView
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a media playback component
Getting ready
How to do it...
How it works...
See also
6. Working with Data
Introduction
Storage API
REST-style development
Data visualization
Saving data locally with the Storage API
Getting ready
How to do it...
How it works...
There's more...
Storage organization
Local storage configuration
Accessing remote data with HttpRequest
Getting ready
How to do it...
How it works...
There's more...
HTTP methods
See also
Downloading images with HttpRequest
Getting ready
How to do it...
How it works...
There's more...
See also
Posting data to remote servers with HttpRequest
Getting ready
How to do it...
How it works...
There's more...
See also
Uploading files to servers with HttpRequest
Getting ready
How to do it...
How it works...
There's more...
See also
Building RESTful clients with the PullParser API
Getting ready
How to do it...
How it works...
There's more...
Custom parsing
See also
Using the Feed API to create RSS/Atom clients
Getting ready
How to do it...
How it works...
There's more...
Handling RSS
Handling Atom
Override default parsing behavior
See also
Visualizing data with the JavaFX chart API
Getting ready
How to do it...
How it works...
There's more...
Chart customization
7. Deployment and Integration
Introduction
The unified programming model
Building and packaging your app with an IDE
Getting ready
How to do it...
How it works...
There's more...
See also
Building and packaging your app with javafxpackager
Getting ready
How to do it...
How it works...
There's more...
Automating your JavaFX build with Ant
See also
Packaging your app to be Web Start(ed)
Getting ready
How to do it...
How it works...
There's more...
See also
Packaging your app as an applet
Getting ready
How to do it...
How it works...
There's more...
Overriding the JNLP file name
See also
Passing arguments to JavaFX applications
Getting ready
How to do it...
How it works...
There's more...
Accessing all arguments
Command-line arguments
JVM arguments
See also
Making your applets drag-to-install
Getting ready
How to do it...
How it works...
There's more...
AppletStageExtension Hooks
Preventing unintentional dragging
Control post-installation behavior
See also
Controlling JavaFX applets from JavaScript
Getting ready
How to do it...
How it works...
There's more...
Type crossing JavaScript to JavaFX
Accessing the Scene graph
Accessing JavaScript from JavaFX
See also
8. The JavaFX Production Suite
Introduction
Loading multiple images dynamically
Getting ready
How to do it...
How it works...
There's more...
See also
Exporting Adobe Photoshop graphics to JavaFX
Getting ready
How to do it...
How it works...
There's more...
The FXD data file
What gets exported
Exporting Adobe Illustrator graphics to JavaFX
Getting ready
How to do it...
How it works...
There's more...
What gets exported
See also
Exporting Scalable Vector Graphics (SVG) to JavaFX
Getting ready
How to do it...
How it works...
There's more...
What gets exported
Features not supported
Inkscape and JavaFX
See also
Using objects loaded from FXZ files
Getting ready
How to do it...
How it works...
There's more...
Using FXDNode to load objects
Accessing Group nodes directly
Accessing objects directly
Placing non-orphaned nodes
Using FXDNode to load object asynchronously
Event notifications through FXDLoader
See also
A. Mobile JavaFX
B. JavaFX Composer
C. JavaFX Products and Frameworks
D. Best Practices for Development
E. Best Practices for Deployment
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜