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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.treemap.TreeMapSettings
TreeMapSettings.PropertyType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MutableProperty<com.macrofocus.igraphics.CPColor<Color>> protected MutableProperty<Depth> protected final AbstractTreeMapModelprotected MutableProperty<com.macrofocus.igraphics.CPColor<Color>> protected MutableProperty<Rendering> protected MutableProperty<com.macrofocus.igraphics.CPColor<Color>> protected MutableProperty<com.macrofocus.igraphics.CPColor<Color>> protected MutableProperty<TreeMapField> protected final MutableSingleSelection<TreeMapField> protected MutableProperty<TreeMapField> protected final MutableSingleSelection<TreeMapField> protected final MutableSingleSelection<Depth> protected MutableProperty<TreeMapField[]> protected final MutableSelection<TreeMapField> protected MutableProperty<TreeMapField> protected final MutableSingleSelection<TreeMapField> protected MutableProperty<Boolean> protected MutableProperty<Boolean> protected final MutableProperty<Double> protected MutableProperty<TreeMapField[]> protected final MutableSelection<TreeMapField> protected final MutableProperty<Double> protected final MutableBoundedIntervalprotected final MutableBoundedIntervalprotected final MutableProperty<Double> protected final MutableBoundedIntervalprotected final MutableProperty<Double> protected final MutableBoundedIntervalprotected final MutableProperty<Double> protected final MutableBoundedIntervalprotected final MutableProperty<Double> protected final MutableBoundedIntervalprotected final MutableSingleSelection<TreeMapView.Progressive> protected final MutableSingleSelection<Rendering> protected MutableProperty<TreeMapField> protected final MutableSingleSelection<TreeMapField> protected MutableProperty<TreeMapField[]> protected final MutableSelection<TreeMapField> Fields inherited from interface com.treemap.TreeMapSettings
PROPERTY_BACKGROUND, PROPERTY_BACKGROUND_FIELD, PROPERTY_COLOR_FIELD, PROPERTY_DEPTH, PROPERTY_DIMENSION, PROPERTY_DIMENSION_FIXED, PROPERTY_GROUP_BY_FIELD, PROPERTY_HEIGHT_FIELD, PROPERTY_HIDE_FILTER_RESULTS, PROPERTY_HIDE_SEARCH_RESULTS, PROPERTY_LABELS_FIELD, PROPERTY_LIGHT_SOURCE_AMBIENT, PROPERTY_LIGHT_SOURCE_HEIGHT, PROPERTY_LIGHT_SOURCE_X, PROPERTY_LIGHT_SOURCE_Y, PROPERTY_LIGHT_SOURCE_Z, PROPERTY_MAXIMUM_HEIGHT, PROPERTY_PROBING_COLOR, PROPERTY_RENDERING, PROPERTY_SELECTION_COLOR, PROPERTY_SIZE_FIELD, PROPERTY_TOOLTIP_BACKGROUND, PROPERTY_TOOLTIP_FIELD -
Constructor Summary
ConstructorsConstructorDescriptionDefaultTreeMapSettings(AbstractTreeMapModel model, com.macrofocus.igraphics.CPColorFactory<Color> colorFactory, com.macrofocus.igraphics.CPFontFactory<Font> fontFactory, com.macrofocus.colormap.ColorMapFactory<Color> colorMapFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected TreeMapFieldSettings<Color, Font> protected TreeMapFieldSettings<Color, Font> createOverridingTreeMapFieldSettings(TreeMapFieldSettings<Color, Font> defaultSettings, TreeMapModel model, TreeMapField field) com.macrofocus.igraphics.CPColor<Color> Returns the background color to use for drawing the treemap.MutableProperty<com.macrofocus.igraphics.CPColor<Color>> Returns the background color to use for drawing the treemap.Gets the model used to hold the field used to display the background label.Gets the model used to hold the field used to represent the color.getDepth()Returns the depth to use to lay out the treemap.Gets the size of the treemap.getFieldSettings(TreeMapField field) Gets the model used to hold the list of fields to be use for grouping.Gets the model used to hold the field used to represent the height.TreeMapField<N,Column>[] Gets the model used to hold the list of fields to be use for labeling.doubleReturns the light source ambient intensity used for drawing the cushions.doubleReturns the light source height used for drawing the cushions.doubleReturns the light source X position used for drawing the cushions.doubleReturns the light source Y position used for drawing the cushions.doubleReturns the light source Z position used for drawing the cushions.doubleGets the maximum height.Gets the model indicating the maximum height.com.macrofocus.igraphics.CPColor<Color> Returns the color to use for drawing the borders.MutableProperty<com.macrofocus.igraphics.CPColor<Color>> Returns the color to use for drawing the borders.Returns the rendering scheme to use to draw the treemap.com.macrofocus.igraphics.CPColor<Color> Returns the color to use for drawing the borders.MutableProperty<com.macrofocus.igraphics.CPColor<Color>> Returns the color to use for drawing the borders.booleangetShowPopup(TreeMapField field) Tells whether the specified field should be shown in the popup.Gets the model used to hold the field used to represent the size.com.macrofocus.igraphics.CPColor<Color> Returns the background color to use for drawing the tooltips.MutableProperty<com.macrofocus.igraphics.CPColor<Color>> Returns the background color to use for drawing the tooltips.TreeMapField<N,Column>[] Gets the model used to hold the list of fields to be use by the tooltip.Gets the value of the specified property.Gets the model used to indicate whether filtered nodes should be hidden.Gets the model used to indicate whether nodes that do not match the search criteria should be hidden.voidvoidsave(com.macrofocus.molap.dataframe.DataFrame dataFrame, ElementFactory elementFactory, Element root) voidsetBackground(int column) Defines the field to use for background labeling.voidsetBackground(com.macrofocus.igraphics.CPColor<Color> color) Sets the background color to use for drawing the treemap.voidsetBackgroundByName(String columnName) Defines the field to use for background labeling.voidvoidsetColor(int column) Defines the field to use for coloring.voidsetColorByName(String columnName) Defines the field to use for coloring.voidsetColorTreeMapField(TreeMapField field) voidDefines the depth to use to lay out the treemap.voidsetDimension(Dimension dimension) Sets the size of the treemap.voidsetDimensionFixed(Boolean fixed) voidsetGroupBy(int... columns) Defines the fields to be use for grouping.voidsetGroupByByNames(String... columnNames) Defines the fields to be use for grouping.voidsetGroupByTreeMapFields(TreeMapField[] fields) voidsetHeight(int column) Defines the field to use for mapping the height.voidsetHeightByName(String columnName) Defines the field to use for mapping the height.voidvoidsetHideFilterResults(Boolean hideFilterResults) voidsetHideSearchResults(Boolean hideSearchResults) voidsetLabels(int... columns) Defines the fields to be use for labeling.voidsetLabelsByNames(String... columnNames) Defines the fields to be use for labeling.voidsetLabelTreeMapFields(TreeMapField<N, Column>[] fields) voidsetLightSourceAmbient(double value) Sets the light source ambient intensity used for drawing the cushions.voidsetLightSourceHeight(double value) Sets the light source height used for drawing the cushions.voidsetLightSourceX(double value) Sets the light source X position used for drawing the cushions.voidsetLightSourceY(double value) Sets the light source Y position used for drawing the cushions.voidsetLightSourceZ(double value) Sets the light source Z position used for drawing the cushions.voidsetMaximumHeight(double height) Sets the maximum height.voidsetProbingColor(com.macrofocus.igraphics.CPColor<Color> color) Sets the color to use for drawing the borders.voidsetProgressive(TreeMapView.Progressive progressive) voidsetRendering(Rendering rendering) Defines the rendering scheme to use to draw the treemap.voidsetSelectionColor(com.macrofocus.igraphics.CPColor<Color> color) Sets the color to use for drawing the borders.voidsetShowPopup(TreeMapField field, boolean show) Sets whether the specified field should be displayed or no in the popup.voidsetSize(int column) Defines the field to use to represent the size.voidsetSizeByName(String columnName) Defines the field to use to represent the size.voidsetSizeTreeMapField(TreeMapField field) voidsetToolTip(int... columns) Defines the fields to be use for the tooltip.voidsetTooltipBackground(com.macrofocus.igraphics.CPColor<Color> color) Sets the background color to use for drawing the tooltips.voidsetToolTipByNames(String... columns) Defines the fields to be use for the tooltip.voidsetToolTipTreeMapFields(TreeMapField<N, Column>[] fields) Methods inherited from class com.treemap.AbstractTreeMapSettings
addTreeMapSettingsListener, notifySettingsChanged, removeTreeMapSettingsListener, removeTreeMapSettingsListeners
-
Field Details
-
_model
-
groupByVariables
-
sizeVariable
-
colorVariable
-
labelVariable
-
toolTipVariable
-
backgroundVariable
-
heightVariable
-
progressive
-
depth
-
rendering
-
groupByFields
-
labelsFields
-
toolTipFields
-
sizeField
-
colorField
-
backgroundField
-
heightField
-
_depth
-
_rendering
-
maximumHeightInterval
-
maximumHeight
-
lightSourceHeightInterval
-
ightSourceHeight
-
lightSourceAmbientInterval
-
lightSourceAmbient
-
lightSourceXInterval
-
lightSourceX
-
lightSourceYInterval
-
lightSourceY
-
lightSourceZInterval
-
lightSourceZ
-
_background
-
_tooltipBackground
-
_probingColor
-
_selectionColor
-
hideSearchResults
-
hideFilterResults
-
-
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
-
getGroupByVariablesSelection
-
getSizeVariableSelection
-
getColorVariableSelection
-
getLabelVariablesSelection
-
getTooltipVariablesSelection
-
getBackgroundVariableSelection
-
getHeightVariableSelection
-
getDepthSelection
-
getRenderingSelection
-
getProgressiveSelection
-
getHideFilterResultsSelection
-
getHideSearchResultsSelection
-
createDefaultTreeMapFieldSettings
-
createOverridingTreeMapFieldSettings
protected TreeMapFieldSettings<Color,Font> createOverridingTreeMapFieldSettings(TreeMapFieldSettings<Color, Font> defaultSettings, TreeMapModel model, TreeMapField field) -
getDefaultFieldSettings
-
getFieldSettings
-
getDimensionFixed
-
setDimensionFixed
-
getDimension
Description copied from interface:TreeMapSettingsGets the size of the treemap.- Returns:
- the size of the treemap.
-
setDimension
Description copied from interface:TreeMapSettingsSets the size of the treemap.- Parameters:
dimension- the size of the treemap.
-
getProgressive
-
setProgressive
-
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
-
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
Gets the model used to hold the field used to represent the color.- Returns:
- the model holding the field that represent the color.
-
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
-
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
-
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
Gets the model used to hold the field used to represent the height.- Returns:
- the model holding the field that represent the height.
-
getMaximumHeightInterval
Description copied from interface:TreeMapSettingsGets 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
Gets the model used to indicate whether filtered nodes should be hidden.- Returns:
- the model indicating whether filtered nodes should be hidden.
-
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
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
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
Defines the fields to be use for the tooltip.- Parameters:
columns- the names of the columns to be used for labeling- See Also:
-
getShowPopup
Description copied from interface:TreeMapSettingsTells whether the specified field should be shown in the popup.- Parameters:
field- the field.- Returns:
- true if it should be displayed, false otherwise.
-
setShowPopup
Description copied from interface:TreeMapSettingsSets 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
-
setBackgroundByName
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
-
setSizeByName
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
Defines the field to use for coloring.- Parameters:
columnName- the name of the column to be used for coloring- See Also:
-
setColorTreeMapField
-
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
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
-
getDepth
Returns the depth to use to lay out the treemap.- Returns:
- the depth to use
- See Also:
-
setDepth
Defines the depth to use to lay out the treemap.- Parameters:
depth- the depth to use- See Also:
-
setRendering
Defines the rendering scheme to use to draw the treemap.- Parameters:
rendering- the rendering scheme to use- See Also:
-
setHideFilterResults
-
setHideSearchResults
-
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
Description copied from interface:TreeMapSettingsReturns the background color to use for drawing the treemap.- Returns:
- the color to be used
-
getBackground
Returns the background color to use for drawing the treemap.- Returns:
- the color to be used
-
setBackground
Sets the background color to use for drawing the treemap.- Parameters:
color- the color to be used- See Also:
-
getTooltipBackgroundProperty
Description copied from interface:TreeMapSettingsReturns the background color to use for drawing the tooltips.- Returns:
- the color to be used
- See Also:
-
getTooltipBackground
Returns the background color to use for drawing the tooltips.- Returns:
- the color to be used
- See Also:
-
setTooltipBackground
Sets the background color to use for drawing the tooltips.- Parameters:
color- the color to be used- See Also:
-
getProbingColorProperty
Description copied from interface:TreeMapSettingsReturns the color to use for drawing the borders.- Returns:
- the color to be used
- See Also:
-
getProbingColor
Returns the color to use for drawing the borders.- Returns:
- the color to be used
- See Also:
-
setProbingColor
Sets the color to use for drawing the borders.- Parameters:
color- the color to be used- See Also:
-
getSelectionColorProperty
Description copied from interface:TreeMapSettingsReturns the color to use for drawing the borders.- Returns:
- the color to be used
- See Also:
-
getSelectionColor
Returns the color to use for drawing the borders.- Returns:
- the color to be used
- See Also:
-
setSelectionColor
Sets the color to use for drawing the borders.- Parameters:
color- the color to be used- See Also:
-
getValue
Description copied from interface:TreeMapSettingsGets the value of the specified property.- Parameters:
key- the property name- Returns:
- the value
-
getLightSourceHeightInterval
-
getLightSourceAmbientInterval
-
getLightSourceXInterval
-
getLightSourceYInterval
-
getLightSourceZInterval
-
resetToDefaults
public void resetToDefaults() -
save
public void save(com.macrofocus.molap.dataframe.DataFrame dataFrame, ElementFactory elementFactory, Element root)
-