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)intgetAxisCount()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.intgetIndex(Row row)java.lang.DoublegetLocation(com.macrofocus.high_d.axis.AxisModel axisModel)Gets the normalized location of an axis.RowgetObject(int index)intgetObjectCount()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.intgetVisibleAxisCount()com.macrofocus.visual.Visual<Color,Row,Column>getVisual()voidremoveDistributionDimension(com.macrofocus.molap.subset.DistributionDimension<Row,Value,Bin> distributionDimension)voidsetLocation(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:
getObjectCountin interfaceDistributionsModel<Color,Row,Column,Value,Bin>- Specified by:
getObjectCountin 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:
getProbingin 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:
getSelectionin 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:
getColorMappingin 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:
getColoringin 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:
getAxisCountin 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:
getLocationin 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:
getAxisGroupModelin 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:
setLocationin 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:
createDistributionDimensionin interfaceDistributionsModel<Color,Row,Column,Value,Bin>
-
removeDistributionDimension
public void removeDistributionDimension(com.macrofocus.molap.subset.DistributionDimension<Row,Value,Bin> distributionDimension)
- Specified by:
removeDistributionDimensionin interfaceDistributionsModel<Color,Row,Column,Value,Bin>
-
-