com.sas.graphics.components.barchart
Class BarChartDataModel

com.sas.graphics.components.barchart.BarChartDataModel
Direct Known Subclasses:
BarChartOLAPDataModel, BarChartTableDataModel

public abstract class BarChartDataModel

Common superclass for all BarChart DataModels to provide a "type" of data model that can be assigned to a BarChart.

Usage

A BarChartDataModel can be assigned to an instance of the BarChart class. Example:
 // Get the TableModel
 javax.swing.table.TableModel tableModel = <...>;

 // Set up the Data Model
 // BarChartTableDataModel is a subclass of BarChartDataModel
 BarChartTableDataModel dataModel = new BarChartTableDataModel();
 dataModel.setModel(tableModel);
 dataModel.setCategoryVariable(new ClassificationVariable("Product"));
 dataModel.setResponseVariable(new AnalysisVariable("Sales"));
 
 // Associate the Data Model with a BarChart
 BarChart barChart = new BarChart(dataModel);
 

Extending

This class provides a type for the BarChart's data models but is only intended for internal subclassing.

Since:
SAS 9.1
See Also:
BarChartTableDataModel, BarChartOLAPDataModel, BarChart

Constructor Summary
BarChartDataModel()
           
 
Method Summary
 
Methods inherited from class com.sas.graphics.components.DataModel
apply, equals, getLocale, getRulesContext, getSortStrategy, hashCode, setLocale, setRulesContext, setSortStrategy
 
Methods inherited from class com.sas.graphics.components.ModelBase
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel
 

Constructor Detail

BarChartDataModel

public BarChartDataModel()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.