Class DefaultTreePlotSettings<Color,Font>

java.lang.Object
com.treemap.treeplot.AbstractTreePlotSettings<Color,Font>
com.treemap.treeplot.DefaultTreePlotSettings<Color,Font>
All Implemented Interfaces:
PropertyChange, TreePlotSettings<Color,Font>

public class DefaultTreePlotSettings<Color,Font> extends AbstractTreePlotSettings<Color,Font>
Default implementation of the TreeMapSettings interface.
  • Field Details

  • Constructor Details

    • DefaultTreePlotSettings

      public DefaultTreePlotSettings(TreeMapModel model, com.macrofocus.igraphics.CPColorFactory<Color> colorFactory, com.macrofocus.igraphics.CPFontFactory<Font> fontFactory)
  • Method Details

    • getDefaultFieldSettings

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

      public TreeMapFieldSettings<Color,Font> getFieldSettings(TreeMapField field)
    • 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 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 getColorTreeMapField()
      Gets the model used to hold the field used to represent the color.
      Returns:
      the model holding the field that represent the color.
    • getToolTipTreeMapFields

      public TreeMapField[] 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[] fields)
    • 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:
    • getShowPopup

      public boolean getShowPopup(TreeMapField field)
      Description copied from interface: TreePlotSettings
      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: TreePlotSettings
      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.
    • 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)
    • 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:
    • 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:
    • 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:
    • 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: TreePlotSettings
      Gets the value of the specified property.
      Parameters:
      key - the property name
      Returns:
      the value
    • resetToDefaults

      public void resetToDefaults()
    • getBackground

      public com.macrofocus.igraphics.CPColor<Color> getBackground()
      Returns the backgroun color to use for drawing the treeplot.
      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 treeplot.
      Parameters:
      color - the color to be used
    • getBackgroundProperty

      public MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getBackgroundProperty()
    • getGridColor

      public com.macrofocus.igraphics.CPColor<Color> getGridColor()
      Returns the color to use for drawing the grid.
      Returns:
      the color to be used
    • setGridColor

      public void setGridColor(com.macrofocus.igraphics.CPColor<Color> color)
      Sets the color to use for drawing the grid.
      Parameters:
      color - the color to be used
    • getGridColorProperty

      public MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getGridColorProperty()
    • getGridThicknessInterval

      public MutableBoundedInterval getGridThicknessInterval()
    • getGridThickness

      public Double getGridThickness()
      Returns the thickness used for drawing the grid.
      Returns:
      the thickness
    • setGridThickness

      public void setGridThickness(Double value)
      Sets the thickness used for drawing the grid.
      Parameters:
      value - the thickness
    • getGroupBy

      public Boolean getGroupBy()
      Returns whether the groups should be displayed.
      Returns:
      the font to be used
    • setGroupBy

      public void setGroupBy(Boolean groupBy)
      Sets whether the groups should be displayed.
      Parameters:
      groupBy - true to display the groups; false to display the leaves
    • groupByProperty

      public MutableProperty<Boolean> groupByProperty()
    • getBubbleSizeInterval

      public MutableBoundedInterval getBubbleSizeInterval()