Difference between revisions of "Calc/Implementation/Chart2 Framework"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Created page with "== '''1. Basic Concepts of Chart Kernel Objects''' == A chart model contains three major parts, titles(main title and sub-title), legend, and diagram which contains concrete char…" ([[Apache OpenOffice.org Wiki:Checkpoint|checkpoint s)
 
Line 17: Line 17:
 
           - Data sequence
 
           - Data sequence
 
           - Data points
 
           - Data points
 +
 +
http://wiki.services.openoffice.org/w/images/8/8b/ChartElements.jpg
 +
 +
== '''2. Characters of chart2 Module''' ==
 +
'''2.1. Well implemented uno interfaces'''
 +
Chart2 module well implemented uno interfaces. These interfaces are located in offapi\com\sun\star\chart which is the old interfaces and offapi\com\sun\star\chart2 which is the new. Each kernel chart objects must implement the corresponding interface defined in the offapi module. In order to keep the consistency with the old interface, some kernel objects implemented the new interface and also aggregated the old interface in the other hand.
 +
Below chart is an illustration of ChartModel, which implemented the new interface chart2::XChartDocument and aggregated the old interface chart::XChartDocument.
 +
 +
http://wiki.services.openoffice.org/w/images/8/8a/ChartModelInterface.jpg
 +
 +
Below chart is another example to illustrate the interface implementations of some other kernel  objects.

Revision as of 02:32, 28 April 2012

1. Basic Concepts of Chart Kernel Objects

A chart model contains three major parts, titles(main title and sub-title), legend, and diagram which contains concrete chart data. The chart data is organized by chart type in a coordinate system. The chart type consist of data series, which represents as a series of individual data points with the same color. The data series is generally organized by column which is the default in the chart data table, but it can be organized by row as well. For some chart types, a data point needs several data units. For example, a bubble chart needs three data units: a X coordinate point, a Y coordinate point, and the bubble size. So it needs three columns(or rows according to the direction of the data series) to represent a completed data series. Each column or row is called data sequence. A diagram has a wall as the background of the coordinate system. For 3D charts, it also needs a floor. The hierarchical model of the chart kernel objects is like below chart.

  • Chart Model
 Titles
   - Main title
   - Sub-title
 Legend
 Diagram
   - Chart wall
   - Chart floor
   - Coordinate system
     - Chart type
       - Data series
         - Data sequence
         - Data points

ChartElements.jpg

2. Characters of chart2 Module

2.1. Well implemented uno interfaces Chart2 module well implemented uno interfaces. These interfaces are located in offapi\com\sun\star\chart which is the old interfaces and offapi\com\sun\star\chart2 which is the new. Each kernel chart objects must implement the corresponding interface defined in the offapi module. In order to keep the consistency with the old interface, some kernel objects implemented the new interface and also aggregated the old interface in the other hand. Below chart is an illustration of ChartModel, which implemented the new interface chart2::XChartDocument and aggregated the old interface chart::XChartDocument.

ChartModelInterface.jpg

Below chart is another example to illustrate the interface implementations of some other kernel objects.

Personal tools