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) int
Returns 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.int
getLocation
(com.macrofocus.high_d.axis.AxisModel axisModel) Gets the normalized location of an axis.getObject
(int index) int
Returns 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.int
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 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:
getObjectCount
in interfaceDistributionsModel<Color,
Row, Column, Value, Bin> - Specified by:
getObjectCount
in 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:
getProbing
in 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:
getSelection
in 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:
getColorMapping
in 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:
getColoring
in 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:
getAxisCount
in interfaceDistributionsModel<Color,
Row, Column, Value, Bin> - Returns:
- the number of axis
-
getLocation
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
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, createDistributionDimensionBin> (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>
-