英文链接源链接 [17867]
contenteditable="true"

JavaFX - Overview 介绍

丰富的Internet应用程序是提供与桌面应用程序相似的功能和体验的Web应用程序。与普通Web应用程序相比,它们为用户提供了更好的视觉体验。这些应用程序以浏览器插件或虚拟机的形式提供,用于将传统的静态应用程序转换为更增强,更流畅,更生动和更具吸引力的应用程序。

与传统的桌面应用程序不同,RIA不需要运行任何其他软件。或者,您应根据应用程序安装ActiveX,Java,Flash等软件。

在RIA中,图形表示是在客户端处理的,因为它具有可支持丰富图形的插件。简而言之,RIA中的数据操作是在服务器端执行的,而相关的对象操作是在客户端执行的。

我们使用三种主要技术来开发RIA。这些包括以下内容-

  • Adobe Flash
  • 微软Silverlight
  • JavaFX的

Adobe Flash

该软件平台由Adobe Systems开发,并用于创建Rich Internet Applications。除了这些,您还可以构建其他应用程序,例如矢量,动画,浏览器游戏,桌面应用程序,移动应用程序和游戏等。

这是开发和执行RIA的最常用平台,桌面浏览器的普及率为96%。

微软Silverlight

Just like Adobe flash, 微软Silverlight is also a software application framework for developing as well as executing Rich Internet Applications. Initially this framework was used for streaming media. The present versions support multimedia, graphics, and animation as well.

很少使用该平台,桌面浏览器的普及率为66%。

JavaFX的

JavaFX的 is a Java library using which you can develop Rich Internet Applications. By using Java technology, these applications have a browser penetration rate of 76%.

什么是JavaFX的?

JavaFX的 is a Java library used to build Rich Internet Applications. The applications written using this library can run consistently across multiple platforms. The applications developed using JavaFX的 can run on various devices such as Desktop Computers, Mobile Phones, TVs, Tablets, etc.

To develop GUI Applications using Java programming language, the programmers rely on libraries such as Advanced Windowing Toolkit and Swing. After the advent of JavaFX的, these Java programmers can now develop GUI applications effectively with rich content.

需要JavaFX的

To develop Client Side Applications with rich features, the programmers used to depend on various libraries to add features such as Media, UI controls, Web, 2D and 3D, etc. JavaFX的 includes all these features in a single library. In addition to these, the developers can also access the existing features of a Java library such as Swing.

JavaFX的 provides a rich set of graphics and media API’s and it leverages the modern Graphical Processing Unit through hardware accelerated graphics. JavaFX的 also provides interfaces using which developers can combine graphics animation and UI control.

One can use JavaFX的 with JVM based technologies such as Java, Groovy and JRuby. If developers opt for JavaFX的, there is no need to learn additional technologies, as prior knowledge of any of the above-mentioned technologies will be good enough to develop RIA’s using JavaFX的.

JavaFX的的功能

Following are some of the important features of JavaFX的 −

  • Written in Java − The JavaFX的 library is written in Java and is available for the languages that can be executed on a JVM, which include − Java, Groovy and JRuby. These JavaFX的 applications are also platform independent.

  • FXML − JavaFX的 features a language known as FXML, which is a HTML like declarative markup language. The sole purpose of this language is to define a user Interface.

  • Scene Builder − JavaFX的 provides an application named Scene Builder. On integrating this application in IDE’s such as Eclipse and NetBeans, the users can access a drag and drop design interface, which is used to develop FXML applications (just like Swing Drag & Drop and DreamWeaver Applications).

  • Swing Interoperability − In a JavaFX的 application, you can embed Swing content using the Swing Node class. Similarly, you can update the existing Swing applications with JavaFX的 features like embedded web content and rich graphics media.

  • Built-in UI controls − JavaFX的 library caters UI controls using which we can develop a full-featured application.

  • CSS like Styling − JavaFX的 provides a CSS like styling. By using this, you can improve the design of your application with a simple knowledge of CSS.

  • Canvas and Printing API − JavaFX的 provides Canvas, an immediate mode style of rendering API. Within the package javafx.scene.canvas it holds a set of classes for canvas, using which we can draw directly within an area of the JavaFX的 scene. JavaFX的 also provides classes for Printing purposes in the package javafx.print.

  • Rich set of API’s − JavaFX的 library provides a rich set of API’s to develop GUI applications, 2D and 3D graphics, etc. This set of API’s also includes capabilities of Java platform. Therefore, using this API, you can access the features of Java languages such as Generics, Annotations, Multithreading, and Lambda Expressions. The traditional Java Collections library was enhanced and concepts like observable lists and maps were included in it. Using these, the users can observe the changes in the data models.

  • Integrated Graphics library − JavaFX的 provides classes for 2d and 3d graphics.

  • Graphics pipeline − JavaFX的 supports graphics based on the Hardware-accelerated graphics pipeline known as Prism. When used with a supported Graphic Card or GPU it offers smooth graphics. In case the system does not support graphic card then prism defaults to the software rendering stack.

JavaFX的的历史

JavaFX的 was originally developed by Chris Oliver, when he was working for a company named See Beyond Technology Corporation, which was later acquired by Sun Microsystems in the year 2005.

以下几点为我们提供了有关该项目的更多信息-

  • 最初,该项目被命名为F3 (表单遵循函数),其开发目的是为开发GUI应用程序提供更丰富的界面。

  • Sun Microsystems acquired the See Beyond company in June 2005, it adapted the F3 project as JavaFX的.

  • In the year 2007, JavaFX的 was announced officially at Java One, a world wide web conference which is held yearly.

  • In the year 2008, Net Beans integrated with JavaFX的 was available. In the same year, the Java Standard Development Kit for JavaFX的 1.0 was released.

  • In the year 2009, Oracle Corporation acquired Sun Microsystems and in the same year the next version of JavaFX的 (1.2) was released as well.

  • In the year 2010, JavaFX的 1.3 came out and in the year 2011 JavaFX的 2.0 was released.

  • The latest version, JavaFX的8, was released as an integral part of Java on 18th of March 2014.

点我分享笔记