Table of Contents
JavaFX Ensemble 8
Modena
3D Viewer
Home Database Mysql Tutorial JavaFX文档(2)什么是JavaFX

JavaFX文档(2)什么是JavaFX

Jun 07, 2016 pm 03:43 PM
api java javafx What Write document

Java API:JavaFX用Java写成,其API对基于JVM的语言也是友好的,例如JRuby和Scala。 FXML和Scene Builder:FXML基于XML,用于描述用户界面。Scene Builder可以用于所见即所得地创建FXML文件。 WebView:内置了使用WebKitHTML技术的web组件,可用于在JavaFX应

  • Java API:JavaFX用Java写成,其API对基于JVM的语言也是友好的,例如JRuby和Scala。
  • FXML和Scene Builder:FXML基于XML,用于描述用户界面。Scene Builder可以用于所见即所得地创建FXML文件。
  • WebView:内置了使用WebKitHTML技术的web组件,可用于在JavaFX应用程序中嵌入Web页面。在其中运行的页面可以方便地调用JavaAPI,并且JavaAPI可以调用JavaScript。支持附加的HTML5特性,包括Web Socket,Web Worker,Web Font,打印功能。
  • 与Swing互操作:现有的Swing程序可以通过JavaFX的新特性升级,例如在Web 内容中嵌入多媒体功能。SwingNode类可以将Swing组件嵌入到JavaFX中。
  • 内置的UI控件和CSS:提供了常用控件,包括DatePicker和TreeView,并且可以使用标准的Web技术如CSS来进行美化。
  • Modena主题:在JavaFX8中,提供了新的Modena主题来替换原来的Caspian主题。不过在Application的start()方法中,可以通过setUserAgentStylesheet(STYLESHEET_CASPIAN)来继续使用Caspian主题。在fxexperience.com的Modena blog中找到更多信息。
  • 3D图像处理能力:在JavaFX8中提供了3D图像处理API,包括Shape3D (Box, Cylinder, MeshView,  Sphere 子类),SubScene, Material, PickResult, LightBase (AmbientLightPointLight子类),SceneAntialiasing等。Camera类也得到了更新。从JavaDoc中可以找到更多信息。
  • Canvas API:允许直接在JavaFX场景中直接绘图。
  • Printing API:javafx.print包提供了打印功能。
  • Rich Text支持:提供了更为强大的文本支持能力,包括双向文字(例如阿拉伯语)、复杂文字脚本,例如Thai、Hindu文字,并且支持多行、多种风格的文本节点。
  • 多点触摸:提供了多点触摸API。
  • Hi-DPI支持:提供了Hi-DPI显示支持。
  • 图形渲染硬件加速:JavaFX图像基于图形渲染流水线(Prism)。JavaFX可通过显卡或GPU来提高图像渲染质量和速度。如果GPU不支持对应的图形处理功能,则Prism会使用软件渲染方式来替代。
  • 高性能多媒体引擎:媒体流水线支持对web媒体内容的播放。提供了基于GStreamer多媒体框架的稳定、低延迟多媒体处理框架。
  • 自包含的应用部署模型:自包含应用包总具有应用所需的所有资源、并具有Java和JavaFX运行时的一个私有副本。它们可作为操作系统原生安装包发布,并提供与原生应用相同的安装和运行体验。   

应用场景    

JavaFX用途广大。例如可用于构建跨平台、具有高性能现代UI、能展现音频、视频、动画的联网应用。

下面展示了JavaFX 8中的的一些样例程序:

JavaFX Ensemble 8

其中包括了一堆样例程序,充分展现了JavaFX的各种特征,包括动画、图表、控件等

JavaFX文档(2)什么是JavaFX

Modena

展现Modena主题的Look and feel。
JavaFX文档(2)什么是JavaFX

3D Viewer

用于展现、测试3D场景。提供了对OBJ和Maya文件的导入器。支持导入Maya的动画。(注意对于Maya文件,在保存时会删除所有的创建历史信息。也支持将场景内容导出为java和FXML。
JavaFX文档(2)什么是JavaFX

^_^后面的没啥可说的,配置Java环境放到IDE里跑起来。


返回目录

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Square Root in Java Square Root in Java Aug 30, 2024 pm 04:26 PM

Guide to Square Root in Java. Here we discuss how Square Root works in Java with example and its code implementation respectively.

Perfect Number in Java Perfect Number in Java Aug 30, 2024 pm 04:28 PM

Guide to Perfect Number in Java. Here we discuss the Definition, How to check Perfect number in Java?, examples with code implementation.

Random Number Generator in Java Random Number Generator in Java Aug 30, 2024 pm 04:27 PM

Guide to Random Number Generator in Java. Here we discuss Functions in Java with examples and two different Generators with ther examples.

Weka in Java Weka in Java Aug 30, 2024 pm 04:28 PM

Guide to Weka in Java. Here we discuss the Introduction, how to use weka java, the type of platform, and advantages with examples.

Armstrong Number in Java Armstrong Number in Java Aug 30, 2024 pm 04:26 PM

Guide to the Armstrong Number in Java. Here we discuss an introduction to Armstrong's number in java along with some of the code.

Smith Number in Java Smith Number in Java Aug 30, 2024 pm 04:28 PM

Guide to Smith Number in Java. Here we discuss the Definition, How to check smith number in Java? example with code implementation.

Java Spring Interview Questions Java Spring Interview Questions Aug 30, 2024 pm 04:29 PM

In this article, we have kept the most asked Java Spring Interview Questions with their detailed answers. So that you can crack the interview.

Break or return from Java 8 stream forEach? Break or return from Java 8 stream forEach? Feb 07, 2025 pm 12:09 PM

Java 8 introduces the Stream API, providing a powerful and expressive way to process data collections. However, a common question when using Stream is: How to break or return from a forEach operation? Traditional loops allow for early interruption or return, but Stream's forEach method does not directly support this method. This article will explain the reasons and explore alternative methods for implementing premature termination in Stream processing systems. Further reading: Java Stream API improvements Understand Stream forEach The forEach method is a terminal operation that performs one operation on each element in the Stream. Its design intention is

See all articles