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
ConstructorsConstructorDescriptionDefaultDistributionsModel(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
Modifier and TypeMethodDescriptioncreateDistributionDimension(Column column, com.macrofocus.molap.subset.DistributionDimension.DistributionStrategy distributionStrategy) intReturns the number of axis composing the parallel coordinates plot.Gets all the axis composing this parallel coordinates plot.Gets model holding the colors of each object.Gets model holding the color mapping of each object.Obtains the model used for filtering objects in the scatter plot.intgetLocation(com.macrofocus.high_d.axis.AxisModel axisModel) Gets the normalized location of an axis.getObject(int index) intReturns the number of data objects (typically rows).Obtains the model used for probing objects in the scatter plot (aka mouse over).Obtains the model used for selecting objects in the scatter plot.intvoidremoveDistributionDimension(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 Details
-
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
-
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 Details
-
getVisual
-
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
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
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
Obtains the model used for filtering objects in the scatter plot. -
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
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
-
getIndex
-
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
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
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, createDistributionDimensionBin> (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>
-