Class DefaultTreeMapSettings<N,​Column,​Color,​Font>

  • All Implemented Interfaces:
    TreeMapSettings<N,​Column,​Color,​Font>

    public class DefaultTreeMapSettings<N,​Column,​Color,​Font>
    extends AbstractTreeMapSettings<N,​Column,​Color,​Font>
    Default implementation of the TreeMapSettings interface.
    • Constructor Detail

      • DefaultTreeMapSettings

        public DefaultTreeMapSettings​(AbstractTreeMapModel model,
                                      com.macrofocus.igraphics.CPColorFactory<Color> colorFactory,
                                      com.macrofocus.igraphics.CPFontFactory<Font> fontFactory,
                                      com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory)
    • Method Detail

      • getHideFilterResultsSelection

        public MutableProperty<java.lang.Boolean> getHideFilterResultsSelection()
      • getHideSearchResultsSelection

        public MutableProperty<java.lang.Boolean> getHideSearchResultsSelection()
      • getDimensionFixed

        public java.lang.Boolean getDimensionFixed()
      • setDimensionFixed

        public void setDimensionFixed​(java.lang.Boolean fixed)
      • getDimension

        public java.awt.Dimension getDimension()
        Description copied from interface: TreeMapSettings
        Gets the size of the treemap.
        Returns:
        the size of the treemap.
      • setDimension

        public void setDimension​(java.awt.Dimension dimension)
        Description copied from interface: TreeMapSettings
        Sets the size of the treemap.
        Parameters:
        dimension - the size of the treemap.
      • getGroupByTreeMapFields

        public TreeMapField[] getGroupByTreeMapFields()
        Gets the model used to hold the list of fields to be use for grouping.
        Returns:
        the model of fields to be use for grouping
      • setGroupByTreeMapFields

        public void setGroupByTreeMapFields​(TreeMapField[] fields)
      • getSizeTreeMapField

        public TreeMapField<N,​Column> getSizeTreeMapField()
        Gets the model used to hold the field used to represent the size.
        Returns:
        the model holding the field that represent the size.
      • getColorTreeMapField

        public TreeMapField<N,​Column> getColorTreeMapField()
        Gets the model used to hold the field used to represent the color.
        Returns:
        the model holding the field that represent the color.
      • getLabelTreeMapFields

        public TreeMapField<N,​Column>[] getLabelTreeMapFields()
        Gets the model used to hold the list of fields to be use for labeling.
        Returns:
        the model of fields to be use for labeling.
      • setLabelTreeMapFields

        public void setLabelTreeMapFields​(TreeMapField<N,​Column>[] fields)
      • getToolTipTreeMapFields

        public TreeMapField<N,​Column>[] getToolTipTreeMapFields()
        Gets the model used to hold the list of fields to be use by the tooltip.
        Returns:
        the model of fields to be use by the tooltip.
      • setToolTipTreeMapFields

        public void setToolTipTreeMapFields​(TreeMapField<N,​Column>[] fields)
      • getBackgroundTreeMapField

        public TreeMapField<N,​Column> getBackgroundTreeMapField()
        Gets the model used to hold the field used to display the background label.
        Returns:
        the model holding the field of the the background label.
      • getHeightTreeMapField

        public TreeMapField<N,​Column> getHeightTreeMapField()
        Gets the model used to hold the field used to represent the height.
        Returns:
        the model holding the field that represent the height.
      • getMaximumHeightInterval

        public MutableBoundedInterval getMaximumHeightInterval()
        Description copied from interface: TreeMapSettings
        Gets the model indicating the maximum height.
        Returns:
        the model holding the maximum height.
      • getMaximumHeight

        public double getMaximumHeight()
        Gets the maximum height.
        Returns:
        the maximum height.
      • setMaximumHeight

        public void setMaximumHeight​(double height)
        Sets the maximum height.
        Parameters:
        height - the maximum height.
      • isHideFilterResults

        public java.lang.Boolean isHideFilterResults()
        Gets the model used to indicate whether filtered nodes should be hidden.
        Returns:
        the model indicating whether filtered nodes should be hidden.
      • isHideSearchResults

        public java.lang.Boolean isHideSearchResults()
        Gets the model used to indicate whether nodes that do not match the search criteria should be hidden.
        Returns:
        the model indicating whether nodes that do not match the search criteria should be hidden.
      • setGroupBy

        public void setGroupBy​(int... columns)
        Defines the fields to be use for grouping.
        Parameters:
        columns - the indexes of the columns to be used for grouping
        See Also:
        getGroupByTreeMapFields()
      • setGroupByByNames

        public void setGroupByByNames​(java.lang.String... columnNames)
        Defines the fields to be use for grouping.
        Parameters:
        columnNames - the names of the columns to be used for grouping
        See Also:
        getGroupByTreeMapFields()
      • setLabels

        public void setLabels​(int... columns)
        Defines the fields to be use for labeling.
        Parameters:
        columns - the indexes of the columns to be used for labeling
        See Also:
        getLabelTreeMapFields()
      • setLabelsByNames

        public void setLabelsByNames​(java.lang.String... columnNames)
        Defines the fields to be use for labeling.
        Parameters:
        columnNames - the names of the columns to be used for labeling
        See Also:
        getLabelTreeMapFields()
      • setToolTip

        public void setToolTip​(int... columns)
        Defines the fields to be use for the tooltip.
        Parameters:
        columns - the indexes of the columns to be used for labeling
        See Also:
        getLabelTreeMapFields()
      • setToolTipByNames

        public void setToolTipByNames​(java.lang.String... columns)
        Defines the fields to be use for the tooltip.
        Parameters:
        columns - the names of the columns to be used for labeling
        See Also:
        getLabelTreeMapFields()
      • getShowPopup

        public boolean getShowPopup​(TreeMapField field)
        Description copied from interface: TreeMapSettings
        Tells whether the specified field should be shown in the popup.
        Parameters:
        field - the field.
        Returns:
        true if it should be displayed, false otherwise.
      • setShowPopup

        public void setShowPopup​(TreeMapField field,
                                 boolean show)
        Description copied from interface: TreeMapSettings
        Sets whether the specified field should be displayed or no in the popup.
        Parameters:
        field - the field.
        show - true if it should be displayed, false otherwise.
      • setBackground

        public void setBackground​(int column)
        Defines the field to use for background labeling.
        Parameters:
        column - the index of the column to be used for background labeling
        See Also:
        getBackgroundTreeMapField()
      • setBackgroundTreeMapField

        public void setBackgroundTreeMapField​(TreeMapField field)
      • setBackgroundByName

        public void setBackgroundByName​(java.lang.String columnName)
        Defines the field to use for background labeling.
        Parameters:
        columnName - the name of the column to be used for background labeling
        See Also:
        getBackgroundTreeMapField()
      • setSize

        public void setSize​(int column)
        Defines the field to use to represent the size.
        Parameters:
        column - the index of the column to be used for representing the size
        See Also:
        getSizeTreeMapField()
      • setSizeTreeMapField

        public void setSizeTreeMapField​(TreeMapField field)
      • setSizeByName

        public void setSizeByName​(java.lang.String columnName)
        Defines the field to use to represent the size.
        Parameters:
        columnName - the name of the column to be used for representing the size
        See Also:
        getSizeTreeMapField()
      • setColor

        public void setColor​(int column)
        Defines the field to use for coloring.
        Parameters:
        column - the index of the column to be used for coloring
        See Also:
        getColorTreeMapField()
      • setColorByName

        public void setColorByName​(java.lang.String columnName)
        Defines the field to use for coloring.
        Parameters:
        columnName - the name of the column to be used for coloring
        See Also:
        getColorTreeMapField()
      • setColorTreeMapField

        public void setColorTreeMapField​(TreeMapField field)
      • setHeight

        public void setHeight​(int column)
        Defines the field to use for mapping the height.
        Parameters:
        column - the index of the column to be used for mapping the height
        See Also:
        getHeightTreeMapField()
      • setHeightByName

        public void setHeightByName​(java.lang.String columnName)
        Defines the field to use for mapping the height.
        Parameters:
        columnName - the name of the column to be used for mapping the height
        See Also:
        getHeightTreeMapField()
      • setHeightTreeMapField

        public void setHeightTreeMapField​(TreeMapField field)
      • getDepth

        public Depth getDepth()
        Returns the depth to use to lay out the treemap.
        Returns:
        the depth to use
        See Also:
        getDepth(), DepthFactory
      • setDepth

        public void setDepth​(Depth depth)
        Defines the depth to use to lay out the treemap.
        Parameters:
        depth - the depth to use
        See Also:
        getDepth(), DepthFactory
      • setRendering

        public void setRendering​(Rendering rendering)
        Defines the rendering scheme to use to draw the treemap.
        Parameters:
        rendering - the rendering scheme to use
        See Also:
        getRendering(), RenderingFactory
      • setHideFilterResults

        public void setHideFilterResults​(java.lang.Boolean hideFilterResults)
      • setHideSearchResults

        public void setHideSearchResults​(java.lang.Boolean hideSearchResults)
      • getLightSourceHeight

        public double getLightSourceHeight()
        Returns the light source height used for drawing the cushions.
        Returns:
        the height
        See Also:
        getLightSourceHeight()
      • setLightSourceHeight

        public void setLightSourceHeight​(double value)
        Sets the light source height used for drawing the cushions.
        Parameters:
        value - the height
        See Also:
        getLightSourceHeight()
      • getLightSourceAmbient

        public double getLightSourceAmbient()
        Returns the light source ambient intensity used for drawing the cushions.
        Returns:
        the ambient intensity
        See Also:
        getLightSourceAmbient()
      • setLightSourceAmbient

        public void setLightSourceAmbient​(double value)
        Sets the light source ambient intensity used for drawing the cushions.
        Parameters:
        value - the ambient intensity
        See Also:
        getLightSourceAmbient()
      • getLightSourceX

        public double getLightSourceX()
        Returns the light source X position used for drawing the cushions.
        Returns:
        the X position
        See Also:
        getLightSourceX()
      • setLightSourceX

        public void setLightSourceX​(double value)
        Sets the light source X position used for drawing the cushions.
        Parameters:
        value - the X position
        See Also:
        getLightSourceX()
      • getLightSourceY

        public double getLightSourceY()
        Returns the light source Y position used for drawing the cushions.
        Returns:
        the Y position
        See Also:
        getLightSourceY()
      • setLightSourceY

        public void setLightSourceY​(double value)
        Sets the light source Y position used for drawing the cushions.
        Parameters:
        value - the Y position
        See Also:
        getLightSourceY()
      • getLightSourceZ

        public double getLightSourceZ()
        Returns the light source Z position used for drawing the cushions.
        Returns:
        the Z position
        See Also:
        getLightSourceZ()
      • setLightSourceZ

        public void setLightSourceZ​(double value)
        Sets the light source Z position used for drawing the cushions.
        Parameters:
        value - the Z position
        See Also:
        getLightSourceZ()
      • getBackgroundProperty

        public MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getBackgroundProperty()
        Description copied from interface: TreeMapSettings
        Returns the background color to use for drawing the treemap.
        Returns:
        the color to be used
      • getBackground

        public com.macrofocus.igraphics.CPColor<Color> getBackground()
        Returns the background color to use for drawing the treemap.
        Returns:
        the color to be used
      • setBackground

        public void setBackground​(com.macrofocus.igraphics.CPColor<Color> color)
        Sets the background color to use for drawing the treemap.
        Parameters:
        color - the color to be used
        See Also:
        getBackground()
      • getTooltipBackgroundProperty

        public MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getTooltipBackgroundProperty()
        Description copied from interface: TreeMapSettings
        Returns the background color to use for drawing the tooltips.
        Returns:
        the color to be used
        See Also:
        getTooltipBackground()
      • getTooltipBackground

        public com.macrofocus.igraphics.CPColor<Color> getTooltipBackground()
        Returns the background color to use for drawing the tooltips.
        Returns:
        the color to be used
        See Also:
        getTooltipBackground()
      • setTooltipBackground

        public void setTooltipBackground​(com.macrofocus.igraphics.CPColor<Color> color)
        Sets the background color to use for drawing the tooltips.
        Parameters:
        color - the color to be used
        See Also:
        getTooltipBackground()
      • getProbingColorProperty

        public MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getProbingColorProperty()
        Description copied from interface: TreeMapSettings
        Returns the color to use for drawing the borders.
        Returns:
        the color to be used
        See Also:
        getProbingColor()
      • getProbingColor

        public com.macrofocus.igraphics.CPColor<Color> getProbingColor()
        Returns the color to use for drawing the borders.
        Returns:
        the color to be used
        See Also:
        getProbingColor()
      • setProbingColor

        public void setProbingColor​(com.macrofocus.igraphics.CPColor<Color> color)
        Sets the color to use for drawing the borders.
        Parameters:
        color - the color to be used
        See Also:
        getProbingColor()
      • getSelectionColorProperty

        public MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getSelectionColorProperty()
        Description copied from interface: TreeMapSettings
        Returns the color to use for drawing the borders.
        Returns:
        the color to be used
        See Also:
        getSelectionColor()
      • getSelectionColor

        public com.macrofocus.igraphics.CPColor<Color> getSelectionColor()
        Returns the color to use for drawing the borders.
        Returns:
        the color to be used
        See Also:
        getSelectionColor()
      • setSelectionColor

        public void setSelectionColor​(com.macrofocus.igraphics.CPColor<Color> color)
        Sets the color to use for drawing the borders.
        Parameters:
        color - the color to be used
        See Also:
        getSelectionColor()
      • getValue

        public java.lang.Object getValue​(java.lang.String key)
        Description copied from interface: TreeMapSettings
        Gets the value of the specified property.
        Parameters:
        key - the property name
        Returns:
        the value
      • resetToDefaults

        public void resetToDefaults()
      • save

        public void save​(com.macrofocus.molap.dataframe.DataFrame dataFrame,
                         ElementFactory elementFactory,
                         Element root)