Contents

Foreword

Preface

Acknowledgments

About the Authors

Chapter 1 Getting Started

Installing the JavaFX Platform

Setting Up NetBeans IDE for JavaFX 1.2

Distributing the Application

Command Line

Eclipse

Chapter Summary

Chapter 2 JavaFX for the Graphic Designer

Graphic Design and JavaFX

JavaFX Production Suite

Adobe Illustrator CS3

Adobe Photoshop CS3

Scalable Vector Graphics

Chapter Summary

Chapter 3 JavaFX Primer

JavaFX Script Basics

JavaFX Script Language

Class Declaration

Mixin Classes

Object Literals

Variables

Sequences

Declaring Sequences

Accessing Sequence Elements

Modifying Sequences

Native Array

Functions

Strings

String Literals

Formatting

Internationalization

Expressions and Operators

Block Expression

Exception Handling

Operators

Conditional Expressions

Looping Expressions

Accessing Command-Line Arguments

Built-in Functions and Variables

Chapter Summary

Chapter 4 Synchronize Data Models—Binding and Triggers

Binding

Binding to Variables

Binding to Instance Variables

When Can a Variable Be Bound?

A Simple Example Using Binding

Binding with Arithmetic and Logical Expressions

Binding and Conditional Expressions

Binding and Block Expressions

Binding to Function Calls

Binding and For Expressions

Bidirectional Binding

Advanced Binding Topics

Binding and Object Literals

Bound Functions

Triggers

Coming Features

Chapter Summary

Chapter 5 Create User Interfaces

User Interfaces

The Stage

The Scene

Style Sheets

Nodes

Custom Nodes

javafx.scene.Group

Layout

Layout Basics

Custom Layout

Input Events

Mouse Events

Key Events

Text Display

Text

TextBox

JavaFX 1.2 Controls

Custom Controls

Shapes

Paths

Java Swing Extension

Custom Swing Component

Chapter Summary

Chapter 6 Apply Special Effects

Effects

Shadowing

Lighting

Gradients

Blurs

Reflection

Blending

PerspectiveTransform

Glow and Bloom

DisplacementMap

Miscellaneous Color Adjustment Effects

Chapter Summary

Chapter 7 Add Motion with JavaFX Animation

Computer Animation

Timelines

Key Frames

Duration

Key Values

Key Frames

Interpolation

Tweening

Standard Interpolators

Writing a Custom Interpolator

Path-Based Animation

Total Solar Eclipse Examples

JavaFX Shapes

JavaFX Production Suite

Chapter Summary

Chapter 8 Include Multimedia

Multimedia

Images

Media—Audio and Video

Chapter Summary

Chapter 9 Add JavaFX to Web Pages with Applets

JavaFX and Applets

Deploying a JavaFX Application as an Applet

NetBeans IDE for JavaFX

Manual Generation to Support JavaFX Applets

Undocking from the Browser

JavaFX and JavaScript Interaction

Java Web Start

Chapter Summary

Chapter 10 Create RESTful Applications

What Is REST?

Representational State Transfer (REST)

Building a RESTful System

JavaScript Object Notation (JSON)

Yahoo! Web Services

GeoNames Web Services

JavaFX and REST

The JavaFX Weather Widget

A Mashup Application

JavaFX and XML

Chapter Summary

Chapter 11 JavaFX and Java Technology

Classes

Java Objects

Function Parameter and Return Mapping

Java Scripting

Basic Scripting Evaluation

Java Scripting API with Global Bindings

Java Scripting API with Compilation

Java Scripting API with Error Handling

JavaFX Reflection

Chapter Summary

Chapter 12 JavaFX Code Recipes

JavaFX and JavaBeans

Server Call Back

Node Effects—Fader and Magnifier

Fader

Magnify

Wizard Framework

Progress Bar

Slider

Matrix

Chapter Summary

Chapter 13 Sudoku Application

How to Access the JavaFX Sudoku Application

The Interface

Source for the Sudoku Application

Packages

JavaFX Source Files

The Overall Design

The Logic

The Interface

Interfacing with Java Components

Chapter Summary

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset