MCharts library is designed using a Model-View-Controller architecture. Model part is represented by data management components, View is represented by visual components and Controller is represented by plug-ins which determines the “control flow” of the system and process incoming events from the View.
Figure 5.1 Main Chart Elements Demonstration
MCharts structural elements are divided into several groups:
data management elements contains data, which is shown on chart, for example ChartDataModel
chart properties (style sheets) are responsible for visual formatting of chart elements - Axis, Grid and so on, for instance Styles
axes controls allow modifying axis properties
legend identifies colors and titles that are assigned to the data series in a chart
chart containers isolate the physical medium for chart output, for example JChartPanel
views are used for decorating chart with titles or footers and for displaying multiple charts on one page
plug-ins add features to chart, for example DrillDown, GIFEncoderPlugin plug-ins