Class HighDFactory<Component,​Color,​Font,​Format,​Row,​Column,​Value>

  • Type Parameters:
    Component - the type of native components
    Row - type type of rows
    Column - the type of columns
    Direct Known Subclasses:
    SwingHighDFactory

    public abstract class HighDFactory<Component,​Color,​Font,​Format,​Row,​Column,​Value>
    extends java.lang.Object
    Factory to ease the creation of the High-D components. A single factory will creates visual components that share visual state such as probing, selection, filtering, colors, etc.
    • Field Detail

      • dataFrame

        protected com.macrofocus.molap.dataframe.DataFrame<Row,​Column,​Value> dataFrame
      • subsetDataFrame

        protected com.macrofocus.molap.subset.SubsetDataFrame<Row,​Column,​Value> subsetDataFrame
      • annotationDataFrame

        protected com.macrofocus.molap.dataframe.DataFrame<?,​Column,​?> annotationDataFrame
      • visual

        protected com.macrofocus.visual.Visual<Color,​Row,​Column> visual
      • axisHierarchy

        protected com.macrofocus.high_d.axis.hierarchy.AxisHierarchy<Row,​Column> axisHierarchy
      • filtersAxisHierarchy

        protected com.macrofocus.high_d.axis.hierarchy.AxisHierarchy<Row,​Column> filtersAxisHierarchy
    • Constructor Detail

      • HighDFactory

        protected HighDFactory​(HighDSettings<Color,​Font> settings,
                               com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory,
                               com.macrofocus.crossplatform.CPFactory cpFactory)
      • HighDFactory

        protected HighDFactory​(com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory,
                               com.macrofocus.crossplatform.CPFactory factory,
                               com.macrofocus.molap.dataframe.DataFrame<Row,​Column,​Value> dataFrame)
      • HighDFactory

        protected HighDFactory​(com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory,
                               com.macrofocus.crossplatform.CPFactory factory,
                               com.macrofocus.molap.dataframe.DataFrame<Row,​Column,​Value> dataFrame,
                               com.macrofocus.visual.Visual<Color,​Row,​Column> visual)
      • HighDFactory

        protected HighDFactory​(com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory,
                               com.macrofocus.crossplatform.CPFactory factory,
                               com.macrofocus.molap.dataframe.DataFrame<Row,​Column,​Value> dataFrame,
                               com.macrofocus.molap.subset.SubsetDataFrame<Row,​Column,​Value> subsetDataFrame,
                               com.macrofocus.molap.dataframe.DataFrame<?,​Column,​?> annotationDataFrame,
                               com.macrofocus.visual.Visual<Color,​Row,​Column> visual,
                               com.macrofocus.high_d.axis.hierarchy.AxisHierarchy<Row,​Column> axisHierarchy,
                               com.macrofocus.high_d.axis.hierarchy.AxisHierarchy<Row,​Column> filtersAxisHierarchy,
                               HighDSettings settings)
    • Method Detail

      • getShowFiltered

        public MutableProperty<java.lang.Boolean> getShowFiltered()
      • getAntialiasing

        public MutableProperty<java.lang.Boolean> getAntialiasing()
      • getRendering

        public MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> getRendering()
      • getColorTheme

        public MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> getColorTheme()
      • setColorTheme

        public void setColorTheme​(MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> colorTheme)
      • getInteractionMode

        public MutableProperty<com.macrofocus.high_d.interaction.InteractionMode> getInteractionMode()
      • setInteractionMode

        public void setInteractionMode​(MutableProperty<com.macrofocus.high_d.interaction.InteractionMode> interactionMode)
      • getAllowScrolling

        public MutableProperty<java.lang.Boolean> getAllowScrolling()
      • createHighDFactory

        public abstract <Row,​Column,​Value> HighDFactory<Component,​Color,​Font,​Format,​Row,​Column,​Value> createHighDFactory​(com.macrofocus.molap.dataframe.DataFrame<Row,​Column,​Value> dataFrame)
      • getColorMapFactory

        public com.macrofocus.colormap.ColorMapFactory<Color> getColorMapFactory()
      • getCPFactory

        public com.macrofocus.crossplatform.CPFactory<Component,​Font,​?,​Color> getCPFactory()
      • setLicenseKey

        public static void setLicenseKey​(java.lang.String username,
                                         java.lang.String key)
        Register the license key that legally entitles the use of the High-D API. This should be called prior to the first instantiation of this component.
        Parameters:
        username - the user name
        key - the license key
      • getDataFrame

        public com.macrofocus.molap.dataframe.DataFrame<Row,​Column,​Value> getDataFrame()
        Returns the data frame containing the data.
        Returns:
        a data frame
      • getVisual

        public com.macrofocus.visual.Visual<Color,​Row,​Column> getVisual()
        Returns the visual context holding information about the interactive state.
        Returns:
        the visual context
      • getAxisHierarchy

        public com.macrofocus.high_d.axis.hierarchy.AxisHierarchy<Row,​Column> getAxisHierarchy()
        Returns the hierarchy of axes.
        Returns:
        the hierarchy
      • getFiltersAxisHierarchy

        public com.macrofocus.high_d.axis.hierarchy.AxisHierarchy<Row,​Column> getFiltersAxisHierarchy()
        Returns the hierarchy of axes for the filters.
        Returns:
        the hierarchy
      • setDataFrame

        public void setDataFrame​(com.macrofocus.molap.dataframe.DataFrame<Row,​Column,​Value> dataFrame)
        Sets the data frame holding the data.
        Parameters:
        dataFrame - the data frame
      • setDataFrame

        public void setDataFrame​(com.macrofocus.molap.dataframe.DataFrame<Row,​Column,​Value> dataFrame,
                                 com.macrofocus.visual.Visual<Color,​Row,​Column> visual)
        Sets the data frame holding the data.
        Parameters:
        dataFrame - the data frame
      • setDataFrame

        public void setDataFrame​(com.macrofocus.molap.dataframe.DataFrame<Row,​Column,​Value> dataFrame,
                                 com.macrofocus.molap.subset.SubsetDataFrame<Row,​Column,​Value> subsetDataFrame,
                                 com.macrofocus.molap.dataframe.DataFrame<?,​Column,​?> annotationDataFrame,
                                 com.macrofocus.visual.Visual<Color,​Row,​Column> visual,
                                 com.macrofocus.high_d.axis.hierarchy.AxisHierarchy<Row,​Column> axisHierarchy,
                                 com.macrofocus.high_d.axis.hierarchy.AxisHierarchy<Row,​Column> filtersAxisHierarchy)
      • getAnnotationDataFrame

        public com.macrofocus.molap.dataframe.DataFrame<?,​Column,​?> getAnnotationDataFrame()
        Returns the data frame holding the annotation data.
        Returns:
        the annotation data frame
      • setAnnotationDataFrame

        public void setAnnotationDataFrame​(com.macrofocus.molap.dataframe.DataFrame<?,​Column,​?> annotationDataFrame)
      • getSubsetDataFrame

        public com.macrofocus.molap.subset.SubsetDataFrame<Row,​Column,​Value> getSubsetDataFrame()
      • setSubsetDataFrame

        public void setSubsetDataFrame​(com.macrofocus.molap.subset.SubsetDataFrame<Row,​Column,​Value> subsetDataFrame)
      • setVisual

        public void setVisual​(com.macrofocus.visual.Visual<Color,​Row,​Column> visual)
        Sets the visual context.
        Parameters:
        visual - the visual context
      • setAxisHierarchy

        public void setAxisHierarchy​(com.macrofocus.high_d.axis.hierarchy.AxisHierarchy<Row,​Column> axisHierarchy)
        Sets the hierarchy of axes for the various plots.
        Parameters:
        axisHierarchy - the hierarchy
      • setFiltersAxisHierarchy

        public void setFiltersAxisHierarchy​(com.macrofocus.high_d.axis.hierarchy.AxisHierarchy<Row,​Column> axisHierarchy)
        Sets the hierarchy of axes for the filters.
        Parameters:
        axisHierarchy - the hierarchy
      • createExecutor

        public abstract CPExecutor createExecutor()
        Creates a multidimensional scaling plot.
        Returns:
        a multidimensional scaling plot
      • createTable

        public abstract <Row,​Column,​Value> Table<Component,​Color,​Format,​Row,​Column,​Value> createTable​(com.macrofocus.molap.dataframe.DataFrame<Row,​Column,​Value> dataFrame,
                                                                                                                                                com.macrofocus.visual.Visual<Color,​Row,​Column> visual)
      • createList

        public abstract ListView<Component,​java.lang.Integer,​java.lang.String> createList​(Column column)
      • customizeFilters

        public void customizeFilters​(com.macrofocus.high_d.filters.Filters<Component,​Color,​Row,​Column,​Value> filters)
      • createCategoricalFilter

        public abstract com.macrofocus.high_d.filters.CategoricalFilterComponent<Component,​Color> createCategoricalFilter​(Column column,
                                                                                                                                com.macrofocus.molap.subset.Reducer<Row,​Value> reducer)
      • createCategoricalFilter

        public abstract <Bin> com.macrofocus.high_d.filters.CategoricalFilterComponent<Component,​Color> createCategoricalFilter​(Column column,
                                                                                                                                      com.macrofocus.molap.subset.Reducer<Row,​Bin> reducer,
                                                                                                                                      com.macrofocus.molap.subset.SingleBinningDimension.SingleBinningStrategy<Row,​Bin> binningStrategy)
      • customizeCategoricalFilterComponent

        protected void customizeCategoricalFilterComponent​(com.macrofocus.high_d.filters.CategoricalFilterComponent<Component,​Color> categoricalFilterComponent)
      • createOrdinalFilter

        public com.macrofocus.high_d.filters.OrdinalFilterComponent<Component,​Color,​Format> createOrdinalFilter​(Column column)
      • createOrdinalFilter

        public abstract com.macrofocus.high_d.filters.OrdinalFilterComponent<Component,​Color,​Format> createOrdinalFilter​(Column column,
                                                                                                                                     com.macrofocus.format.CPFormat format,
                                                                                                                                     int visibleLength)
      • setSettings

        public void setSettings​(HighDSettings settings)