Package com.macrofocus.treeplot
Interface TreePlotSettings<Color,Font>
-
- All Superinterfaces:
PropertyChange
- All Known Implementing Classes:
AbstractTreePlotSettings
,DefaultTreePlotSettings
public interface TreePlotSettings<Color,Font> extends PropertyChange
Keep track of all the settings that can be applied to a treeplot.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_COLOR_FIELD
static java.lang.String
PROPERTY_DEPTH
static java.lang.String
PROPERTY_GROUP_BY_FIELD
static java.lang.String
PROPERTY_HIDE_FILTER_RESULTS
static java.lang.String
PROPERTY_HIDE_SEARCH_RESULTS
static java.lang.String
PROPERTY_PROBING_COLOR
static java.lang.String
PROPERTY_RENDERING
static java.lang.String
PROPERTY_SELECTION_COLOR
static java.lang.String
PROPERTY_SIZE_FIELD
static java.lang.String
PROPERTY_TOOLTIP_BACKGROUND
static java.lang.String
PROPERTY_TOOLTIP_FIELD
static java.lang.String
PROPERTY_TREEPLOT_BACKGROUND_COLOR
static java.lang.String
PROPERTY_TREEPLOT_BUBBLE_SIZE
static java.lang.String
PROPERTY_TREEPLOT_GRID_COLOR
static java.lang.String
PROPERTY_TREEPLOT_GRID_THICKNESS
static java.lang.String
PROPERTY_TREEPLOT_GROUPBY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
void
addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
void
addTreeMapSettingsListener(TreeMapSettingsListener listener)
Add a listener for receiving interesting events about changes in the settings.com.macrofocus.igraphics.CPColor<Color>
getBackground()
Returns the backgroun color to use for drawing the treeplot.MutableProperty<com.macrofocus.igraphics.CPColor<Color>>
getBackgroundProperty()
MutableBoundedInterval
getBubbleSizeInterval()
TreeMapField
getColorTreeMapField()
Gets the model used to hold the field used to represent the color.TreeMapFieldSettings<Color,Font>
getDefaultFieldSettings()
Depth
getDepth()
Returns the depth to use to lay out the treemap.TreeMapFieldSettings<Color,Font>
getFieldSettings(TreeMapField field)
com.macrofocus.igraphics.CPColor<Color>
getGridColor()
Returns the color to use for drawing the grid.MutableProperty<com.macrofocus.igraphics.CPColor<Color>>
getGridColorProperty()
java.lang.Double
getGridThickness()
Returns the thickness used for drawing the grid.MutableBoundedInterval
getGridThicknessInterval()
java.lang.Boolean
getGroupBy()
Returns whether the groups should be displayed.TreeMapField[]
getGroupByTreeMapFields()
Gets the model used to hold the list of fields to be use for grouping.com.macrofocus.igraphics.CPColor<Color>
getProbingColor()
Returns the color to use for drawing the borders.Rendering
getRendering()
Returns the rendering scheme to use to draw the treemap.com.macrofocus.igraphics.CPColor<Color>
getSelectionColor()
Returns the color to use for drawing the borders.boolean
getShowPopup(TreeMapField field)
Tells whether the specified field should be shown in the popup.TreeMapField
getSizeTreeMapField()
Gets the model used to hold the field used to represent the size.com.macrofocus.igraphics.CPColor<Color>
getTooltipBackground()
Returns the background color to use for drawing the tooltips.TreeMapField[]
getToolTipTreeMapFields()
Gets the model used to hold the list of fields to be use by the tooltip.java.lang.Object
getValue(java.lang.String key)
Gets the value of the specified property.MutableProperty<java.lang.Boolean>
groupByProperty()
java.lang.Boolean
isHideFilterResults()
Gets the model used to indicate whether filtered nodes should be hidden.java.lang.Boolean
isHideSearchResults()
Gets the model used to indicate whether nodes that do not match the search criteria should be hidden.void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
void
removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
void
removeTreeMapSettingsListener()
Remove all the listener from the list of listeners that should be notified about changes in the settings.void
removeTreeMapSettingsListener(TreeMapSettingsListener listener)
Remove a listener from the list of listeners that should be notified about changes in the settings.void
resetToDefaults()
void
setBackground(com.macrofocus.igraphics.CPColor<Color> color)
Sets the background color to use for drawing the treeplot.void
setColor(int column)
Defines the field to use for coloring.void
setColorByName(java.lang.String columnName)
Defines the field to use for coloring.void
setColorTreeMapField(TreeMapField field)
void
setDepth(Depth depth)
Defines the depth to use to lay out the treemap.void
setGridColor(com.macrofocus.igraphics.CPColor<Color> color)
Sets the color to use for drawing the grid.void
setGridThickness(java.lang.Double value)
Sets the thickness used for drawing the grid.void
setGroupBy(int... columns)
Defines the fields to be use for grouping.void
setGroupBy(java.lang.Boolean groupBy)
Sets whether the groups should be displayed.void
setGroupByByNames(java.lang.String... columnNames)
Defines the fields to be use for grouping.void
setGroupByTreeMapFields(TreeMapField[] fields)
void
setHideFilterResults(java.lang.Boolean hideFilterResults)
void
setHideSearchResults(java.lang.Boolean hideSearchResults)
void
setProbingColor(com.macrofocus.igraphics.CPColor<Color> color)
Sets the color to use for drawing the borders.void
setRendering(Rendering rendering)
Defines the rendering scheme to use to draw the treemap.void
setSelectionColor(com.macrofocus.igraphics.CPColor<Color> color)
Sets the color to use for drawing the borders.void
setShowPopup(TreeMapField field, boolean show)
Sets whether the specified field should be displayed or no in the popup.void
setSize(int column)
Defines the field to use to represent the size.void
setSizeByName(java.lang.String columnName)
Defines the field to use to represent the size.void
setSizeTreeMapField(TreeMapField field)
void
setTooltipBackground(com.macrofocus.igraphics.CPColor<Color> color)
Sets the background color to use for drawing the tooltips.void
setToolTipTreeMapFields(TreeMapField[] fields)
-
-
-
Field Detail
-
PROPERTY_SIZE_FIELD
static final java.lang.String PROPERTY_SIZE_FIELD
- See Also:
- Constant Field Values
-
PROPERTY_COLOR_FIELD
static final java.lang.String PROPERTY_COLOR_FIELD
- See Also:
- Constant Field Values
-
PROPERTY_TOOLTIP_FIELD
static final java.lang.String PROPERTY_TOOLTIP_FIELD
- See Also:
- Constant Field Values
-
PROPERTY_GROUP_BY_FIELD
static final java.lang.String PROPERTY_GROUP_BY_FIELD
- See Also:
- Constant Field Values
-
PROPERTY_DEPTH
static final java.lang.String PROPERTY_DEPTH
- See Also:
- Constant Field Values
-
PROPERTY_RENDERING
static final java.lang.String PROPERTY_RENDERING
- See Also:
- Constant Field Values
-
PROPERTY_TOOLTIP_BACKGROUND
static final java.lang.String PROPERTY_TOOLTIP_BACKGROUND
- See Also:
- Constant Field Values
-
PROPERTY_PROBING_COLOR
static final java.lang.String PROPERTY_PROBING_COLOR
- See Also:
- Constant Field Values
-
PROPERTY_SELECTION_COLOR
static final java.lang.String PROPERTY_SELECTION_COLOR
- See Also:
- Constant Field Values
-
PROPERTY_HIDE_SEARCH_RESULTS
static final java.lang.String PROPERTY_HIDE_SEARCH_RESULTS
- See Also:
- Constant Field Values
-
PROPERTY_HIDE_FILTER_RESULTS
static final java.lang.String PROPERTY_HIDE_FILTER_RESULTS
- See Also:
- Constant Field Values
-
PROPERTY_TREEPLOT_BACKGROUND_COLOR
static final java.lang.String PROPERTY_TREEPLOT_BACKGROUND_COLOR
- See Also:
- Constant Field Values
-
PROPERTY_TREEPLOT_GRID_COLOR
static final java.lang.String PROPERTY_TREEPLOT_GRID_COLOR
- See Also:
- Constant Field Values
-
PROPERTY_TREEPLOT_GRID_THICKNESS
static final java.lang.String PROPERTY_TREEPLOT_GRID_THICKNESS
- See Also:
- Constant Field Values
-
PROPERTY_TREEPLOT_GROUPBY
static final java.lang.String PROPERTY_TREEPLOT_GROUPBY
- See Also:
- Constant Field Values
-
PROPERTY_TREEPLOT_BUBBLE_SIZE
static final java.lang.String PROPERTY_TREEPLOT_BUBBLE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getGroupByTreeMapFields
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
void setGroupByTreeMapFields(TreeMapField[] fields)
-
getSizeTreeMapField
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.
-
setSizeTreeMapField
void setSizeTreeMapField(TreeMapField field)
-
getColorTreeMapField
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.
-
setColorTreeMapField
void setColorTreeMapField(TreeMapField field)
-
getToolTipTreeMapFields
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
void setToolTipTreeMapFields(TreeMapField[] fields)
-
isHideFilterResults
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.
-
setHideFilterResults
void setHideFilterResults(java.lang.Boolean hideFilterResults)
-
isHideSearchResults
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.
-
setHideSearchResults
void setHideSearchResults(java.lang.Boolean hideSearchResults)
-
setGroupBy
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:
DefaultTreeMapSettings.getGroupByTreeMapFields()
-
setGroupByByNames
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:
DefaultTreeMapSettings.getGroupByTreeMapFields()
-
setSize
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:
DefaultTreeMapSettings.getSizeTreeMapField()
-
setSizeByName
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:
DefaultTreeMapSettings.getSizeTreeMapField()
-
setColor
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:
DefaultTreeMapSettings.getColorTreeMapField()
-
setColorByName
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:
DefaultTreeMapSettings.getColorTreeMapField()
-
getDepth
Depth getDepth()
Returns the depth to use to lay out the treemap.- Returns:
- the depth to use
- See Also:
DefaultTreeMapSettings.getDepth()
,DepthFactory
-
setDepth
void setDepth(Depth depth)
Defines the depth to use to lay out the treemap.- Parameters:
depth
- the depth to use- See Also:
DefaultTreeMapSettings.getDepth()
,DepthFactory
-
getRendering
Rendering getRendering()
Returns the rendering scheme to use to draw the treemap.- Returns:
- the rendering scheme to use
- See Also:
DefaultTreeMapSettings.getRendering()
,RenderingFactory
-
setRendering
void setRendering(Rendering rendering)
Defines the rendering scheme to use to draw the treemap.- Parameters:
rendering
- the rendering scheme to use- See Also:
DefaultTreeMapSettings.getRendering()
,RenderingFactory
-
getTooltipBackground
com.macrofocus.igraphics.CPColor<Color> getTooltipBackground()
Returns the background color to use for drawing the tooltips.- Returns:
- the color to be used
- See Also:
DefaultTreeMapSettings.getTooltipBackground()
-
setTooltipBackground
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:
DefaultTreeMapSettings.getTooltipBackground()
-
getProbingColor
com.macrofocus.igraphics.CPColor<Color> getProbingColor()
Returns the color to use for drawing the borders.- Returns:
- the color to be used
- See Also:
DefaultTreeMapSettings.getProbingColor()
-
setProbingColor
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:
DefaultTreeMapSettings.getProbingColor()
-
getSelectionColor
com.macrofocus.igraphics.CPColor<Color> getSelectionColor()
Returns the color to use for drawing the borders.- Returns:
- the color to be used
- See Also:
DefaultTreeMapSettings.getSelectionColor()
-
setSelectionColor
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:
DefaultTreeMapSettings.getSelectionColor()
-
getShowPopup
boolean getShowPopup(TreeMapField field)
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
void setShowPopup(TreeMapField field, boolean show)
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.
-
getValue
java.lang.Object getValue(java.lang.String key)
Gets the value of the specified property.- Parameters:
key
- the property name- Returns:
- the value
-
addTreeMapSettingsListener
void addTreeMapSettingsListener(TreeMapSettingsListener listener)
Add a listener for receiving interesting events about changes in the settings.- Parameters:
listener
- the listener to add.
-
removeTreeMapSettingsListener
void removeTreeMapSettingsListener(TreeMapSettingsListener listener)
Remove a listener from the list of listeners that should be notified about changes in the settings.- Parameters:
listener
- the listener to remove.
-
removeTreeMapSettingsListener
void removeTreeMapSettingsListener()
Remove all the listener from the list of listeners that should be notified about changes in the settings.
-
addPropertyChangeListener
void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
- Specified by:
addPropertyChangeListener
in interfacePropertyChange
-
addPropertyChangeListener
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
- Specified by:
addPropertyChangeListener
in interfacePropertyChange
-
removePropertyChangeListener
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
- Specified by:
removePropertyChangeListener
in interfacePropertyChange
-
removePropertyChangeListener
void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
- Specified by:
removePropertyChangeListener
in interfacePropertyChange
-
getDefaultFieldSettings
TreeMapFieldSettings<Color,Font> getDefaultFieldSettings()
-
getFieldSettings
TreeMapFieldSettings<Color,Font> getFieldSettings(TreeMapField field)
-
resetToDefaults
void resetToDefaults()
-
getBackground
com.macrofocus.igraphics.CPColor<Color> getBackground()
Returns the backgroun color to use for drawing the treeplot.- Returns:
- the color to be used
-
setBackground
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
MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getBackgroundProperty()
-
getGridColor
com.macrofocus.igraphics.CPColor<Color> getGridColor()
Returns the color to use for drawing the grid.- Returns:
- the color to be used
-
setGridColor
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
MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getGridColorProperty()
-
getGridThicknessInterval
MutableBoundedInterval getGridThicknessInterval()
-
getGridThickness
java.lang.Double getGridThickness()
Returns the thickness used for drawing the grid.- Returns:
- the thickness
-
setGridThickness
void setGridThickness(java.lang.Double value)
Sets the thickness used for drawing the grid.- Parameters:
value
- the thickness
-
getGroupBy
java.lang.Boolean getGroupBy()
Returns whether the groups should be displayed.- Returns:
- the font to be used
-
setGroupBy
void setGroupBy(java.lang.Boolean groupBy)
Sets whether the groups should be displayed.- Parameters:
groupBy
- true to display the groups; false to display the leaves
-
groupByProperty
MutableProperty<java.lang.Boolean> groupByProperty()
-
getBubbleSizeInterval
MutableBoundedInterval getBubbleSizeInterval()
-
-