Package com.macrofocus.high_d.tablelens
Class DefaultTableLensModel<Color,Row,C>
- java.lang.Object
-
- com.macrofocus.high_d.tablelens.AbstractTableLensModel<Color,Row,C>
-
- com.macrofocus.high_d.tablelens.DefaultTableLensModel<Color,Row,C>
-
- All Implemented Interfaces:
TableLensModel<Color,Row,C>
,com.macrofocus.visual.VisualObjects<Row>
public class DefaultTableLensModel<Color,Row,C> extends AbstractTableLensModel<Color,Row,C> implements com.macrofocus.visual.VisualObjects<Row>
-
-
Field Summary
-
Fields inherited from interface com.macrofocus.high_d.tablelens.TableLensModel
PROPERTY_SHOW_FILTERED
-
-
Constructor Summary
Constructors Constructor Description DefaultTableLensModel(com.macrofocus.crossplatform.CPFactory factory, com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory, com.macrofocus.molap.dataframe.DataFrame<Row,C,?> dataFrame)
DefaultTableLensModel(com.macrofocus.crossplatform.CPFactory factory, com.macrofocus.molap.dataframe.DataFrame<Row,C,?> dataFrame, com.macrofocus.visual.Visual<Color,Row,C> visual)
DefaultTableLensModel(com.macrofocus.crossplatform.CPFactory factory, com.macrofocus.molap.dataframe.DataFrame<Row,C,?> dataFrame, com.macrofocus.visual.Visual<Color,Row,C> visual, com.macrofocus.high_d.axis.group.AxisGroupModel<Row,C> axisGroupModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAxisCount()
Returns the number of axis composing the parallel coordinates plot.com.macrofocus.high_d.axis.group.AxisGroupModel
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,C>
getColorMapping()
Gets model holding the color mapping of each object.MutableFilter<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).java.lang.Iterable<com.macrofocus.high_d.axis.AxisModel>
getSelectedAxis()
Returns the list of currently selected axis.MutableSelection<Row>
getSelection()
Obtains the model used for selecting objects in the scatter plot.Property<java.lang.Boolean>
getShowFiltered()
com.macrofocus.molap.index.UniqueIndex<Row>
getSortedRows()
com.macrofocus.visual.Visual<Color,Row,C>
getVisual()
void
setLocation(com.macrofocus.high_d.axis.AxisModel axisModel, double l)
Sets the location of an axis within its group.void
setOrder(com.macrofocus.high_d.axis.AxisModel axisModel)
void
setShowFiltered(MutableProperty<java.lang.Boolean> showFiltered)
-
Methods inherited from class com.macrofocus.high_d.tablelens.AbstractTableLensModel
addTableLensListener, removeTableLensListener
-
-
-
-
Constructor Detail
-
DefaultTableLensModel
public DefaultTableLensModel(com.macrofocus.crossplatform.CPFactory factory, com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory, com.macrofocus.molap.dataframe.DataFrame<Row,C,?> dataFrame)
-
DefaultTableLensModel
public DefaultTableLensModel(com.macrofocus.crossplatform.CPFactory factory, com.macrofocus.molap.dataframe.DataFrame<Row,C,?> dataFrame, com.macrofocus.visual.Visual<Color,Row,C> visual)
-
-
Method Detail
-
getSortedRows
public com.macrofocus.molap.index.UniqueIndex<Row> getSortedRows()
- Specified by:
getSortedRows
in interfaceTableLensModel<Color,Row,C>
-
getVisual
public com.macrofocus.visual.Visual<Color,Row,C> getVisual()
- Specified by:
getVisual
in interfaceTableLensModel<Color,Row,C>
-
getObjectCount
public int getObjectCount()
Returns the number of data objects (typically rows).- Specified by:
getObjectCount
in interfaceTableLensModel<Color,Row,C>
- 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 interfaceTableLensModel<Color,Row,C>
- 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 interfaceTableLensModel<Color,Row,C>
- Returns:
- the model used for selection.
-
getFilter
public MutableFilter<Row> getFilter()
Obtains the model used for filtering objects in the scatter plot.- Specified by:
getFilter
in interfaceTableLensModel<Color,Row,C>
- Returns:
- the model used for filtering.
-
getColorMapping
public com.macrofocus.colormapping.MutableColorMapping<Color,Row,C> getColorMapping()
Gets model holding the color mapping of each object.- Specified by:
getColorMapping
in interfaceTableLensModel<Color,Row,C>
- 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 interfaceTableLensModel<Color,Row,C>
- Returns:
- the model holding the color of each object.
-
getObject
public Row getObject(int index)
-
getIndex
public int getIndex(Row row)
- Specified by:
getIndex
in interfaceTableLensModel<Color,Row,C>
-
getAxisCount
public int getAxisCount()
Returns the number of axis composing the parallel coordinates plot.- Specified by:
getAxisCount
in interfaceTableLensModel<Color,Row,C>
- Returns:
- the number of axis
-
getSelectedAxis
public java.lang.Iterable<com.macrofocus.high_d.axis.AxisModel> getSelectedAxis()
Returns the list of currently selected axis.- Specified by:
getSelectedAxis
in interfaceTableLensModel<Color,Row,C>
- Returns:
- the axis that are currently selected
-
getLocation
public java.lang.Double getLocation(com.macrofocus.high_d.axis.AxisModel axisModel)
Gets the normalized location of an axis.- Specified by:
getLocation
in interfaceTableLensModel<Color,Row,C>
- Parameters:
axisModel
- the axis- Returns:
- its normalized location within the group
-
getAxisGroupModel
public com.macrofocus.high_d.axis.group.AxisGroupModel getAxisGroupModel()
Gets all the axis composing this parallel coordinates plot.- Specified by:
getAxisGroupModel
in interfaceTableLensModel<Color,Row,C>
- 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 interfaceTableLensModel<Color,Row,C>
- Parameters:
axisModel
- the axisl
- its normalized location
-
getShowFiltered
public Property<java.lang.Boolean> getShowFiltered()
- Specified by:
getShowFiltered
in interfaceTableLensModel<Color,Row,C>
-
setShowFiltered
public void setShowFiltered(MutableProperty<java.lang.Boolean> showFiltered)
- Specified by:
setShowFiltered
in interfaceTableLensModel<Color,Row,C>
-
setOrder
public void setOrder(com.macrofocus.high_d.axis.AxisModel axisModel)
- Specified by:
setOrder
in interfaceTableLensModel<Color,Row,C>
-
-