Class 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>
    • 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)
      • DefaultTableLensModel

        public 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 Detail

      • getObjectCount

        public int getObjectCount()
        Returns the number of data objects (typically rows).
        Specified by:
        getObjectCount in interface TableLensModel<Color,​Row,​C>
        Specified by:
        getObjectCount in interface com.macrofocus.visual.VisualObjects<Color>
        Returns:
        the number of data objects
      • getColorMapping

        public com.macrofocus.colormapping.MutableColorMapping<Color,​Row,​C> getColorMapping()
        Gets model holding the color mapping of each object.
        Specified by:
        getColorMapping in interface TableLensModel<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 interface TableLensModel<Color,​Row,​C>
        Returns:
        the model holding the color of each object.
      • getObject

        public Row getObject​(int index)
        Specified by:
        getObject in interface TableLensModel<Color,​Row,​C>
        Specified by:
        getObject in interface com.macrofocus.visual.VisualObjects<Color>
        Returns:
      • getAxisCount

        public int getAxisCount()
        Returns the number of axis composing the parallel coordinates plot.
        Specified by:
        getAxisCount in interface TableLensModel<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 interface TableLensModel<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 interface TableLensModel<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 interface TableLensModel<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 interface TableLensModel<Color,​Row,​C>
        Parameters:
        axisModel - the axis
        l - its normalized location
      • setOrder

        public void setOrder​(com.macrofocus.high_d.axis.AxisModel axisModel)
        Specified by:
        setOrder in interface TableLensModel<Color,​Row,​C>