Package com.treemap

Class DefaultTreeMapSettings<N,Column,Color,Font>

java.lang.Object
com.treemap.AbstractTreeMapSettings<N,Column,Color,Font>
com.treemap.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.
  • Field Details

  • Constructor Details

    • DefaultTreeMapSettings

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

    • getProperties

      public MutableProperties<String> getProperties()
    • getGroupByVariablesSelection

      public MutableSelection<TreeMapField> getGroupByVariablesSelection()
    • getSizeVariableSelection

      public MutableSingleSelection<TreeMapField> getSizeVariableSelection()
    • getColorVariableSelection

      public MutableSingleSelection<TreeMapField> getColorVariableSelection()
    • getLabelVariablesSelection

      public MutableSelection<TreeMapField> getLabelVariablesSelection()
    • getTooltipVariablesSelection

      public MutableSelection<TreeMapField> getTooltipVariablesSelection()
    • getBackgroundVariableSelection

      public MutableSingleSelection<TreeMapField> getBackgroundVariableSelection()
    • getHeightVariableSelection

      public MutableSingleSelection<TreeMapField> getHeightVariableSelection()
    • getDepthSelection

      public MutableSingleSelection<Depth> getDepthSelection()
    • getRenderingSelection

      public MutableSingleSelection<Rendering> getRenderingSelection()
    • getProgressiveSelection

      public MutableSingleSelection<TreeMapView.Progressive> getProgressiveSelection()
    • getHideFilterResultsSelection

      public MutableProperty<Boolean> getHideFilterResultsSelection()
    • getHideSearchResultsSelection

      public MutableProperty<Boolean> getHideSearchResultsSelection()
    • createDefaultTreeMapFieldSettings

      protected TreeMapFieldSettings<Color,Font> createDefaultTreeMapFieldSettings()
    • createOverridingTreeMapFieldSettings

      protected TreeMapFieldSettings<Color,Font> createOverridingTreeMapFieldSettings(TreeMapFieldSettings<Color,Font> defaultSettings, TreeMapModel model, TreeMapField field)
    • getDefaultFieldSettings

      public TreeMapFieldSettings<Color,Font> getDefaultFieldSettings()
    • getFieldSettings

      public TreeMapFieldSettings<Color,Font> getFieldSettings(TreeMapField field)
    • getDimensionFixed

      public Boolean getDimensionFixed()
    • setDimensionFixed

      public void setDimensionFixed(Boolean fixed)
    • getDimension

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

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

      public TreeMapView.Progressive getProgressive()
    • setProgressive

      public void setProgressive(TreeMapView.Progressive progressive)
    • 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 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 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:
    • setGroupByByNames

      public void setGroupByByNames(String... columnNames)
      Defines the fields to be use for grouping.
      Parameters:
      columnNames - the names of the columns to be used for grouping
      See Also:
    • 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:
    • setLabelsByNames

      public void setLabelsByNames(String... columnNames)
      Defines the fields to be use for labeling.
      Parameters:
      columnNames - the names of the columns to be used for labeling
      See Also:
    • 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:
    • setToolTipByNames

      public void setToolTipByNames(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:
    • 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:
    • setBackgroundTreeMapField

      public void setBackgroundTreeMapField(TreeMapField field)
    • setBackgroundByName

      public void setBackgroundByName(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:
    • 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:
    • setSizeTreeMapField

      public void setSizeTreeMapField(TreeMapField field)
    • setSizeByName

      public void setSizeByName(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:
    • 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:
    • setColorByName

      public void setColorByName(String columnName)
      Defines the field to use for coloring.
      Parameters:
      columnName - the name of the column to be used for coloring
      See Also:
    • 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:
    • setHeightByName

      public void setHeightByName(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:
    • 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:
    • setDepth

      public void setDepth(Depth depth)
      Defines the depth to use to lay out the treemap.
      Parameters:
      depth - the depth to use
      See Also:
    • 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:
    • setHideFilterResults

      public void setHideFilterResults(Boolean hideFilterResults)
    • setHideSearchResults

      public void setHideSearchResults(Boolean hideSearchResults)
    • getRendering

      public Rendering getRendering()
      Returns the rendering scheme to use to draw the treemap.
      Returns:
      the rendering scheme to use
      See Also:
    • getLightSourceHeight

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

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

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

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

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

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

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

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

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

      public void setLightSourceZ(double value)
      Sets the light source Z position used for drawing the cushions.
      Parameters:
      value - the Z position
      See Also:
    • 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:
    • 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

      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:
    • 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:
    • 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

      public com.macrofocus.igraphics.CPColor<Color> getProbingColor()
      Returns the color to use for drawing the borders.
      Returns:
      the color to be used
      See Also:
    • 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:
    • 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

      public com.macrofocus.igraphics.CPColor<Color> getSelectionColor()
      Returns the color to use for drawing the borders.
      Returns:
      the color to be used
      See Also:
    • 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:
    • getValue

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

      public MutableBoundedInterval getLightSourceHeightInterval()
    • getLightSourceAmbientInterval

      public MutableBoundedInterval getLightSourceAmbientInterval()
    • getLightSourceXInterval

      public MutableBoundedInterval getLightSourceXInterval()
    • getLightSourceYInterval

      public MutableBoundedInterval getLightSourceYInterval()
    • getLightSourceZInterval

      public MutableBoundedInterval getLightSourceZInterval()
    • resetToDefaults

      public void resetToDefaults()
    • save

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