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 intgetAxisCount()Returns the number of axis composing the parallel coordinates plot.com.macrofocus.high_d.axis.group.AxisGroupModelgetAxisGroupModel()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.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).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()voidsetLocation(com.macrofocus.high_d.axis.AxisModel axisModel, double l)Sets the location of an axis within its group.voidsetOrder(com.macrofocus.high_d.axis.AxisModel axisModel)voidsetShowFiltered(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:
getSortedRowsin interfaceTableLensModel<Color,Row,C>
-
getVisual
public com.macrofocus.visual.Visual<Color,Row,C> getVisual()
- Specified by:
getVisualin interfaceTableLensModel<Color,Row,C>
-
getObjectCount
public int getObjectCount()
Returns the number of data objects (typically rows).- Specified by:
getObjectCountin interfaceTableLensModel<Color,Row,C>- 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 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:
getSelectionin 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:
getFilterin 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:
getColorMappingin 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:
getColoringin 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:
getIndexin interfaceTableLensModel<Color,Row,C>
-
getAxisCount
public int getAxisCount()
Returns the number of axis composing the parallel coordinates plot.- Specified by:
getAxisCountin 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:
getSelectedAxisin 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:
getLocationin 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:
getAxisGroupModelin 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:
setLocationin interfaceTableLensModel<Color,Row,C>- Parameters:
axisModel- the axisl- its normalized location
-
getShowFiltered
public Property<java.lang.Boolean> getShowFiltered()
- Specified by:
getShowFilteredin interfaceTableLensModel<Color,Row,C>
-
setShowFiltered
public void setShowFiltered(MutableProperty<java.lang.Boolean> showFiltered)
- Specified by:
setShowFilteredin interfaceTableLensModel<Color,Row,C>
-
setOrder
public void setOrder(com.macrofocus.high_d.axis.AxisModel axisModel)
- Specified by:
setOrderin interfaceTableLensModel<Color,Row,C>
-
-