public class DataAnalysisView
extends java.lang.Object
Provides a customized view of different datafields for sorting, filtering, grouping and pivoting.
Multiple DataAnalysisView can be created in code and then selected or loaded by the end user in the UI.
DataAnalysisView can be exported and imported as a way to share views by different users.
Constructor and Description |
---|
DataAnalysisView()
Constructs a newly allocated DataAnalysisView object
|
Modifier and Type | Method and Description |
---|---|
void |
addLoadedListener(EventListener value)
Adds a LoadedListener to the listener list.
|
void |
export(FileFormat format,
java.io.OutputStream stream)
Allows you to export a DataAnalysisView to a file or stream.
|
com.softwarefx.server.data.DataFieldCollection |
getDataFields()
Gets or sets the Datafields Collection to be used within the DataAnalysisView
|
com.softwarefx.server.data.IDataSourceProvider |
getDataSource()
Gets or sets the source containing the values used to populate the DataAnalysisView.
|
DataAnalysisView |
getDrillDownView()
Gets or Set a child DataAnalysisView to DrilDown data
|
java.lang.String |
getID()
|
java.lang.String |
getName()
Sets or Gets the name associated with the selected view
|
java.util.List<DataAnalysisViewParameter> |
getParameters()
Gets or sets the Parameters within the DataAnalysisView
|
DataAnalysisView |
getParent()
Gets or sets the parent field for the DataAnalysisView. |
com.softwarefx.server.data.IDataAnalysisTransformer |
getTransformer()
Gets the Data Transformer for the selected view
|
void |
Import(FileFormat format,
java.io.InputStream stream)
Allows you to import a DataAnalysisView from a data file or stream.
|
void |
removeLoadedListener(EventListener value)
Removes a LoadedListener from the listener list.
|
void |
resetID()
Set the property ID to its default value.
|
void |
resetIsLoaded()
Set the property IsLoaded to its default value.
|
void |
resetName()
Set the property Name to its default value.
|
void |
setDataSource(com.softwarefx.server.data.IDataSourceProvider value)
Gets or sets the source containing the values used to populate the DataAnalysisView.
|
void |
setDrillDownView(DataAnalysisView value)
Set a child DataAnalysisView to DrilDown data
|
void |
setID(java.lang.String value)
|
void |
setName(java.lang.String value)
Sets or Gets the name associated with the selected view
|
public DataAnalysisView()
public com.softwarefx.server.data.DataFieldCollection getDataFields()
Gets or sets the Datafields Collection to be used within the DataAnalysisView
When setting the chart datasource, all existent DataFields in the chart are automatically inherited by the DataAnalysisView, but the programmer might need to Remove or Add DataFields to the selected DataAnalysisView.
To remove a specific DataField from the DataFields Collection:
DataAnalysisView DataView; DataView = new DataAnalysisView(); DataView.getDataFields().Remove(DataView.getDataFields().get("Date"));
public com.softwarefx.server.data.IDataSourceProvider getDataSource()
Gets or sets the source containing the values used to populate the DataAnalysisView.
Once the DataSource has been configured using this method, the DataAnalysisView is automatically bound to the data.
Different DataAnalysisView in the chart can be bound to different Data Sources.
To create a ListProvider object, populate and set to a DataAnalysisView as a DataSource:
SfxNET.System.Collections.ArrayList myList; myList = new SfxNET.System.Collections.ArrayList(); int[] series1; series1 = new int[] {15, 15, 15, 15, 15}; int[] series2; series2 = new int[] {20, 20, 20, 20, 20}; ListProvider lProvider; lProvider = new ListProvider(((SfxNET.System.Collections.IList)myList)); lProvider.getList().add((SfxNET.System.Array.Set_System_Int32_Array(series1))); lProvider.getList().add((SfxNET.System.Array.Set_System_Int32_Array(series2))); DataAnalysisView DataView; DataView = new DataAnalysisView(); DataView.setDataSource(lProvider);
public void setDataSource(com.softwarefx.server.data.IDataSourceProvider value)
Gets or sets the source containing the values used to populate the DataAnalysisView.
Once the DataSource has been configured using this method, the DataAnalysisView is automatically bound to the data.
Different DataAnalysisView in the chart can be bound to different Data Sources.
To create a ListProvider object, populate and set to a DataAnalysisView as a DataSource:
SfxNET.System.Collections.ArrayList myList; myList = new SfxNET.System.Collections.ArrayList(); int[] series1; series1 = new int[] {15, 15, 15, 15, 15}; int[] series2; series2 = new int[] {20, 20, 20, 20, 20}; ListProvider lProvider; lProvider = new ListProvider(((SfxNET.System.Collections.IList)myList)); lProvider.getList().add((SfxNET.System.Array.Set_System_Int32_Array(series1))); lProvider.getList().add((SfxNET.System.Array.Set_System_Int32_Array(series2))); DataAnalysisView DataView; DataView = new DataAnalysisView(); DataView.setDataSource(lProvider);
value
- public DataAnalysisView getDrillDownView()
DataAnalysisView DataView; DataView = new DataAnalysisView(); chart1.getDataAnalysisViews().add(DataView); DataView.getTransformer().getGrouping().add(DataView.getDataFields().get("Date")); DataView.getDataFields().get("Date").setGroupMembership(DateTimeDataField.GroupMemberships.getYear()); chart1.setDrillDownType(DrillDownType.InPlace); DataAnalysisView DrillDownView; DrillDownView = new DataAnalysisView(); DataView.setDrillDownView(DrillDownView); DrillDownView.getTransformer().getGrouping().add(DrillDownView.getDataFields().get("Date")); DrillDownView.getDataFields().get("Date").setGroupMembership(DateTimeDataField.GroupMemberships.getMonth());
public void setDrillDownView(DataAnalysisView value)
DataAnalysisView DataView; DataView = new DataAnalysisView(); chart1.getDataAnalysisViews().add(DataView); DataView.getTransformer().getGrouping().add(DataView.getDataFields().get("Date")); DataView.getDataFields().get("Date").setGroupMembership(DateTimeDataField.GroupMemberships.getYear()); chart1.setDrillDownType(DrillDownType.InPlace); DataAnalysisView DrillDownView; DrillDownView = new DataAnalysisView(); DataView.setDrillDownView(DrillDownView); DrillDownView.getTransformer().getGrouping().add(DrillDownView.getDataFields().get("Date")); DrillDownView.getDataFields().get("Date").setGroupMembership(DateTimeDataField.GroupMemberships.getMonth());
value
- public java.lang.String getID()
Gets or sets the ID of each DataAnalysisView in the chart.
DataAnalysisView DataView; DataView = new DataAnalysisView(); java.lang.String identifier; identifier = DataView.getID();
resetID
public void setID(java.lang.String value)
Gets or sets the ID of each DataAnalysisView in the chart.
DataAnalysisView DataView; DataView = new DataAnalysisView(); java.lang.String identifier; identifier = DataView.getID();
value
- resetID
public java.lang.String getName()
resetName
public void setName(java.lang.String value)
value
- resetName
public java.util.List<DataAnalysisViewParameter> getParameters()
Gets or sets the Parameters within the DataAnalysisView
DrillDownView.getParameters(0).setDataField(DataView.getDataFields("Date"));
public DataAnalysisView getParent()
Gets or sets the parent field for the DataAnalysisView.
public com.softwarefx.server.data.IDataAnalysisTransformer getTransformer()
DataAnalysisView DataView; DataView = new DataAnalysisView(); chart1.getDataAnalysisViews().add(DataView); DataView.getTransformer().getGrouping().add(DataView.getDataFields().get("Date")); DataView.getDataFields().get("Date").setGroupMembership(DateTimeDataField.GroupMemberships.getYear());
public void Import(FileFormat format, java.io.InputStream stream)
To Import a previously saved DataAnalysisView item:
format
- The available formats the import can handle.stream
- A stream where to store the imported DataAnalysisView.public void export(FileFormat format, java.io.OutputStream stream)
To Export a specific DataAnalysisView:
format
- The available formats the export can handle.stream
- A stream where to store the exported DataAnalysisView.public void resetID()
setID
public void resetIsLoaded()
public void resetName()
setName
public void addLoadedListener(EventListener value)
value
- public void removeLoadedListener(EventListener value)
value
- 2014 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
All other names are trademarks or registered trademarks of their respective owners.