📜  JFreeChart-体系结构

📅  最后修改于: 2020-11-30 05:08:15             🧑  作者: Mango


本章介绍了JFreeChart的基本类级别和应用程序级别的体系结构,以使您了解JFreeChart如何与不同的类进行交互以及如何将其适用于基于Java的应用程序。

类级架构

类级别的体系结构说明了库中的各种类如何相互交互以创建各种类型的图表。

JFreeChart类级别的体系结构

以下是上述框图中使用的单元的详细信息-

S.No Units & Description
1

File

The source having user input to be used for creating a dataset in the file.

2

Database

The source having user input to be used for creating a dataset in the database.

3

Create Dataset

Accepts the dataset and stores the dataset into dataset object.

4

General Dataset

This type of dataset is mainly used for pie charts.

5

Category Dataset

This type of dataset is used for bar chart, line chart,etc.

6

Series Dataset

This type of dataset is used for storing series of data and construct line charts.

7

Series Collection Dataset

The different categories of series datasets are added to series collection dataset. This type of dataset is used for XYLine Charts.

8

Create Chart

This is the method which is executed to create final chart.

9

Frame/Image

The chart is displayed on a Swing Frame or an image is created.

应用层架构

应用程序级体系结构说明了JFreeChart库在Java应用程序中的位置。

JFreeChart应用程序级架构

客户端程序接收用户数据,然后根据要求使用标准Java和JFreeChart API生成帧形式的输出,该帧可以直接在应用程序内部显示,也可以以JPEG或PNG等图像格式独立显示。