Class DefaultDistributionsModel<Color,Row,Column,Value,Bin>
- java.lang.Object
-
- com.macrofocus.high_d.distributions.AbstractDistributionsModel<Color,Row,Column,Value,Bin>
-
- com.macrofocus.high_d.distributions.DefaultDistributionsModel<Color,Row,Column,Value,Bin>
-
- All Implemented Interfaces:
DistributionsModel<Color,Row,Column,Value,Bin>
,com.macrofocus.visual.VisualObjects<Row>
public class DefaultDistributionsModel<Color,Row,Column,Value,Bin> extends AbstractDistributionsModel<Color,Row,Column,Value,Bin> implements com.macrofocus.visual.VisualObjects<Row>
-
-
Constructor Summary
Constructors Constructor Description DefaultDistributionsModel(com.macrofocus.crossplatform.CPFactory<?,?,?,Color> factory, com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory, com.macrofocus.molap.dataframe.DataFrame<Row,Column,?> dataFrame, com.macrofocus.molap.subset.SubsetDataFrame<Row,Column,Value> subsetDataFrame)
DefaultDistributionsModel(com.macrofocus.crossplatform.CPFactory<?,?,?,Color> factory, com.macrofocus.molap.dataframe.DataFrame<Row,Column,?> dataFrame, com.macrofocus.molap.subset.SubsetDataFrame<Row,Column,Value> subsetDataFrame, com.macrofocus.visual.Visual<Color,Row,Column> visual)
DefaultDistributionsModel(com.macrofocus.molap.dataframe.DataFrame<Row,Column,?> dataFrame, com.macrofocus.molap.subset.SubsetDataFrame<Row,Column,Value> subsetDataFrame, com.macrofocus.visual.Visual<Color,Row,Column> visual, com.macrofocus.high_d.axis.group.AxisGroupModel<Row,Column> axisGroupModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.macrofocus.molap.subset.DistributionDimension<Row,Value,Bin>
createDistributionDimension(Column column, com.macrofocus.molap.subset.DistributionDimension.DistributionStrategy distributionStrategy)
int
getAxisCount()
Returns the number of axis composing the parallel coordinates plot.com.macrofocus.high_d.axis.group.AxisGroupModel<Row,Column>
getAxisGroupModel()
Gets all the axis composing this parallel coordinates plot.com.macrofocus.coloring.MutableColoring<Color,Row>
getColoring()
Gets model holding the colors of each object.com.macrofocus.colormapping.MutableColorMapping<Color,Row,Column>
getColorMapping()
Gets model holding the color mapping of each object.Filter<Row>
getFilter()
Obtains the model used for filtering objects in the scatter plot.int
getIndex(Row row)
java.lang.Double
getLocation(com.macrofocus.high_d.axis.AxisModel axisModel)
Gets the normalized location of an axis.Row
getObject(int index)
int
getObjectCount()
Returns the number of data objects (typically rows).MutableSingleSelection<Row>
getProbing()
Obtains the model used for probing objects in the scatter plot (aka mouse over).MutableSelection<Row>
getSelection()
Obtains the model used for selecting objects in the scatter plot.int
getVisibleAxisCount()
com.macrofocus.visual.Visual<Color,Row,Column>
getVisual()
void
removeDistributionDimension(com.macrofocus.molap.subset.DistributionDimension<Row,Value,Bin> distributionDimension)
void
setLocation(com.macrofocus.high_d.axis.AxisModel axisModel, double l)
Sets the location of an axis within its group.-
Methods inherited from class com.macrofocus.high_d.distributions.AbstractDistributionsModel
addDistributionsListener, removeDistributionsListener
-
-
-
-
Constructor Detail
-
DefaultDistributionsModel
public DefaultDistributionsModel(com.macrofocus.crossplatform.CPFactory<?,?,?,Color> factory, com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory, com.macrofocus.molap.dataframe.DataFrame<Row,Column,?> dataFrame, com.macrofocus.molap.subset.SubsetDataFrame<Row,Column,Value> subsetDataFrame)
-
DefaultDistributionsModel
public DefaultDistributionsModel(com.macrofocus.crossplatform.CPFactory<?,?,?,Color> factory, com.macrofocus.molap.dataframe.DataFrame<Row,Column,?> dataFrame, com.macrofocus.molap.subset.SubsetDataFrame<Row,Column,Value> subsetDataFrame, com.macrofocus.visual.Visual<Color,Row,Column> visual)
-
DefaultDistributionsModel
public DefaultDistributionsModel(com.macrofocus.molap.dataframe.DataFrame<Row,Column,?> dataFrame, com.macrofocus.molap.subset.SubsetDataFrame<Row,Column,Value> subsetDataFrame, com.macrofocus.visual.Visual<Color,Row,Column> visual, com.macrofocus.high_d.axis.group.AxisGroupModel<Row,Column> axisGroupModel)
-
-
Method Detail
-
getObjectCount
public int getObjectCount()
Returns the number of data objects (typically rows).- Specified by:
getObjectCount
in interfaceDistributionsModel<Color,Row,Column,Value,Bin>
- Specified by:
getObjectCount
in interfacecom.macrofocus.visual.VisualObjects<Color>
- Returns:
- the number of data objects
-
getProbing
public MutableSingleSelection<Row> getProbing()
Obtains the model used for probing objects in the scatter plot (aka mouse over).- Specified by:
getProbing
in interfaceDistributionsModel<Color,Row,Column,Value,Bin>
- Returns:
- the model used for probing.
-
getSelection
public MutableSelection<Row> getSelection()
Obtains the model used for selecting objects in the scatter plot.- Specified by:
getSelection
in interfaceDistributionsModel<Color,Row,Column,Value,Bin>
- Returns:
- the model used for selection.
-
getFilter
public Filter<Row> getFilter()
Obtains the model used for filtering objects in the scatter plot.
-
getColorMapping
public com.macrofocus.colormapping.MutableColorMapping<Color,Row,Column> getColorMapping()
Gets model holding the color mapping of each object.- Specified by:
getColorMapping
in interfaceDistributionsModel<Color,Row,Column,Value,Bin>
- Returns:
- the model holding the color of each object.
-
getColoring
public com.macrofocus.coloring.MutableColoring<Color,Row> getColoring()
Gets model holding the colors of each object.- Specified by:
getColoring
in interfaceDistributionsModel<Color,Row,Column,Value,Bin>
- Returns:
- the model holding the color of each object.
-
getObject
public Row getObject(int index)
-
getIndex
public int getIndex(Row row)
-
getAxisCount
public int getAxisCount()
Returns the number of axis composing the parallel coordinates plot.- Specified by:
getAxisCount
in interfaceDistributionsModel<Color,Row,Column,Value,Bin>
- Returns:
- the number of axis
-
getLocation
public java.lang.Double getLocation(com.macrofocus.high_d.axis.AxisModel axisModel)
Gets the normalized location of an axis.- Specified by:
getLocation
in interfaceDistributionsModel<Color,Row,Column,Value,Bin>
- Parameters:
axisModel
- the axis- Returns:
- its normalized location within the group
-
getAxisGroupModel
public com.macrofocus.high_d.axis.group.AxisGroupModel<Row,Column> getAxisGroupModel()
Gets all the axis composing this parallel coordinates plot.- Specified by:
getAxisGroupModel
in interfaceDistributionsModel<Color,Row,Column,Value,Bin>
- Returns:
-
setLocation
public void setLocation(com.macrofocus.high_d.axis.AxisModel axisModel, double l)
Sets the location of an axis within its group.- Specified by:
setLocation
in interfaceDistributionsModel<Color,Row,Column,Value,Bin>
- Parameters:
axisModel
- the axisl
- its normalized location
-
getVisibleAxisCount
public int getVisibleAxisCount()
-
createDistributionDimension
public com.macrofocus.molap.subset.DistributionDimension<Row,Value,Bin> createDistributionDimension(Column column, com.macrofocus.molap.subset.DistributionDimension.DistributionStrategy distributionStrategy)
- Specified by:
createDistributionDimension
in interfaceDistributionsModel<Color,Row,Column,Value,Bin>
-
removeDistributionDimension
public void removeDistributionDimension(com.macrofocus.molap.subset.DistributionDimension<Row,Value,Bin> distributionDimension)
- Specified by:
removeDistributionDimension
in interfaceDistributionsModel<Color,Row,Column,Value,Bin>
-
-