|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
ChartDataTransform | Interface for classes which can transform a data source into a List of objects that can be fed into
a MetaDatasetProducer . |
ChartFocusHandler | Interface for objects that perform various drawing operations to indicate where the focus of a chart is. |
EnhancedItemRenderer | Renderer improvement that allows getting/setting of attributes for individual items. |
Class Summary | |
---|---|
CategoryDatasetProducer | DatasetProducer which can be used to generate a DefaultCategoryDataset for use in
vertical or horizontal bar charts. |
ChartContext | Context which allows rendering of a List of data objects in a chart using the JFreeChart package. |
ChartContextPanel | Swing panel that contains a jfreechart ChartPanel and configures it using
a ChartContext . |
ChartUtils | Some useful static routines. |
DefaultChartDataTransform | |
DefaultFocusHandler | Base class that contains common handling routines for focusing but does not actually do any drawing. |
EnhancedStackedXYBarRenderer | Handles some additional drawing for StackedXYBarCharts. |
EnhancedStackedXYBarRenderer.TableIndexTuple | Class for representing a cell coordinate for a sparsely populated and/or dynamically sized table of objects. |
ItemFocusHandler | This focus handler Most useful with bar charts Requires that the charts renderer implement EnhancedItemRenderer. |
LinkedTsDataItem | Data item that can store a reference to the item that provided the data to create it. |
MetaDatasetProducer | Abstract class for creating jfreechart Datasets from different types of input data without having to create new DatasetProducers for each class of input data that you want to render. |
SeriesFocusHandler | Hilights the whole series of the focus object. |
TimeSeriesCrosshairsFocusHandler | FocusHandler which more accurately draws the crosshairs for TimeSeriesDataItems. |
TimeSeriesDatasetProducer | A MetaDatasetProducer for TimeSeries collections. |
TimeSeriesTable | TimeSeriesCollection which also implements the TableXYDataset interface. |
XYCrosshairsFocusHandler | Draws the crosshairs at the data point representing the passed in focus object. |
XYDatasetProducer | Baseclass for other DSPs. |
This package provides useful extensions for the JFreeChart charting package.
TimeSeriesDatasetProducer
specified via XML. This functionality was originally designed for the cewolf tablib extension to JFreeChart. It
implements the de.laures.cewolf.DatasetProducer
interface for this purpose.
This is why the cewolf.jar file is required for the package. Currently, the main cewolf
project has not been updated to the jfreechart-1.0.0 APIs, so a mini-jar with just the
required classes has been included with the example project.
StandardXYItemRenderer
)
StandardXYItemRenderer
)
StackedXYBarRenderer
(using a
custom subclass).
ChartDataTransforms
, MetaDatasetProducers
, ChartFocusHandlers
, and chart configs (along with Plot configs and optional ChartPanel
configs).
These, in turn, are bound together into a ChartContext
. You do not have to use a
fullChartContext
(and corresponding ChartContextPanel
) if you don't
want to. You can use any subset of the individual parts that you like. All of the above
pieces designed to be configured via XML using the XML object reading and parsing
capabilities of Meta-JB. You don't have to master how the XML loading works if you don't want
to. The ChartDemo application provides a simple look at this that you can copy from.
MetaClass
) into a new ChartDataTransform because
transforms can also watch their data Object for changes and send those updates to its enclosing
ChartContext to automatically update the chart.
You can configure a ChartContext to have more than one DatasetProducer if you want to have different displays of your data or map it against different axes or with different renderers.
JFreeChart
object must be passed its Plot object as part of its
constructor. So the configuration for the Plot is first read in and the Plot created, and then the
configuration for the chart itself is read in and passed the Plot.
If you study the sample config file provided with ChartDemo, you will see some tags that don't
correspond to true objects. These are normally of the format <chart.XXXX>. These are custom
tags that the ChartObjectHandler
in the org.progeeks.jfreechart.xml
package
knows how to read and turn into the proper object for the field to be set by them.
MetaObjects
as your data source. You could just as easily use regular Java objects that
have bean-like getters and setters. The provided MetaDatasetProducers
can handle both
MetaObjects and regular objects.
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |