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
ConstructorsConstructorDescriptionDefaultTableLensModel
(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
Modifier and TypeMethodDescriptionint
Returns the number of axis composing the parallel coordinates plot.com.macrofocus.high_d.axis.group.AxisGroupModel
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).Iterable<com.macrofocus.high_d.axis.AxisModel>
Returns the list of currently selected axis.Obtains the model used for selecting objects in the scatter plot.com.macrofocus.molap.index.UniqueIndex<Row>
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<Boolean> showFiltered) Methods inherited from class com.macrofocus.high_d.tablelens.AbstractTableLensModel
addTableLensListener, removeTableLensListener
-
Constructor Details
-
DefaultTableLensModel
-
DefaultTableLensModel
-
DefaultTableLensModel
-
-
Method Details
-
getSortedRows
- Specified by:
getSortedRows
in interfaceTableLensModel<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
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
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
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
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
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
-
getIndex
- 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
Returns the list of currently selected axis.- Specified by:
getSelectedAxis
in interfaceTableLensModel<Color,
Row, C> - Returns:
- the axis that are currently selected
-
getLocation
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
- Specified by:
getShowFiltered
in interfaceTableLensModel<Color,
Row, C>
-
setShowFiltered
- 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>
-