Package com.treemap
Interface TreeMapSettings<N,Column,Color,Font>
- All Known Implementing Classes:
AbstractTreeMapSettings,DefaultTreeMapSettings
@JsType
public interface TreeMapSettings<N,Column,Color,Font>
Keep track of all the settings that can be applied to a treemap.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a listener for receiving interesting events about changes in the settings.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) TreeMapField<N,Column>[] 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.voidRemove a listener from the list of listeners that should be notified about changes in the settings.voidRemove all the listener from the list of listeners that should be notified about changes in the settings.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<N, Column>[] 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... columnNames) Defines the fields to be use for the tooltip.voidsetToolTipTreeMapFields(TreeMapField<N, Column>[] fields)
-
Field Details
-
PROPERTY_SIZE_FIELD
- See Also:
-
PROPERTY_COLOR_FIELD
- See Also:
-
PROPERTY_LABELS_FIELD
- See Also:
-
PROPERTY_TOOLTIP_FIELD
- See Also:
-
PROPERTY_BACKGROUND_FIELD
- See Also:
-
PROPERTY_HEIGHT_FIELD
- See Also:
-
PROPERTY_GROUP_BY_FIELD
- See Also:
-
PROPERTY_DEPTH
- See Also:
-
PROPERTY_RENDERING
- See Also:
-
PROPERTY_BACKGROUND
- See Also:
-
PROPERTY_TOOLTIP_BACKGROUND
- See Also:
-
PROPERTY_PROBING_COLOR
- See Also:
-
PROPERTY_SELECTION_COLOR
- See Also:
-
PROPERTY_HIDE_SEARCH_RESULTS
- See Also:
-
PROPERTY_HIDE_FILTER_RESULTS
- See Also:
-
PROPERTY_DIMENSION
- See Also:
-
PROPERTY_DIMENSION_FIXED
- See Also:
-
PROPERTY_MAXIMUM_HEIGHT
- See Also:
-
PROPERTY_LIGHT_SOURCE_HEIGHT
- See Also:
-
PROPERTY_LIGHT_SOURCE_AMBIENT
- See Also:
-
PROPERTY_LIGHT_SOURCE_X
- See Also:
-
PROPERTY_LIGHT_SOURCE_Y
- See Also:
-
PROPERTY_LIGHT_SOURCE_Z
- See Also:
-
-
Method Details
-
getProperties
MutableProperties<String> getProperties() -
getDimensionFixed
Boolean getDimensionFixed() -
setDimensionFixed
-
getDimension
Gets the size of the treemap.- Returns:
- the size of the treemap.
-
setDimension
Sets the size of the treemap.- Parameters:
dimension- the size of the treemap.
-
getProgressive
-
setProgressive
-
getGroupByTreeMapFields
TreeMapField<N,Column>[] 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
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
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
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
-
getToolTipTreeMapFields
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
-
getBackgroundTreeMapField
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
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.
-
isHideFilterResults
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
-
isHideSearchResults
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
-
getMaximumHeightInterval
MutableBoundedInterval getMaximumHeightInterval()Gets the model indicating the maximum height.- Returns:
- the model holding the maximum height.
-
getMaximumHeight
double getMaximumHeight()Gets the maximum height.- Returns:
- the maximum height.
-
setMaximumHeight
void setMaximumHeight(double height) Sets the maximum height.- Parameters:
height- the maximum height.
-
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:
-
setGroupByByNames
Defines the fields to be use for grouping.- Parameters:
columnNames- the names of the columns to be used for grouping- See Also:
-
setLabels
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
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:
columnNames- the names of the columns to be used for labeling- See Also:
-
setBackground
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:
-
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
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:
-
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
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:
-
setHeight
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
-
setColorTreeMapField
-
setSizeTreeMapField
-
setBackgroundTreeMapField
-
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:
-
getRendering
Returns the rendering scheme to use to draw the treemap.- Returns:
- the rendering scheme to use
- See Also:
-
setRendering
Defines the rendering scheme to use to draw the treemap.- Parameters:
rendering- the rendering scheme to use- See Also:
-
getLightSourceHeight
double getLightSourceHeight()Returns the light source height used for drawing the cushions.- Returns:
- the height
- See Also:
-
setLightSourceHeight
void setLightSourceHeight(double value) Sets the light source height used for drawing the cushions.- Parameters:
value- the height- See Also:
-
getLightSourceAmbient
double getLightSourceAmbient()Returns the light source ambient intensity used for drawing the cushions.- Returns:
- the ambient intensity
- See Also:
-
setLightSourceAmbient
void setLightSourceAmbient(double value) Sets the light source ambient intensity used for drawing the cushions.- Parameters:
value- the ambient intensity- See Also:
-
getLightSourceX
double getLightSourceX()Returns the light source X position used for drawing the cushions.- Returns:
- the X position
- See Also:
-
setLightSourceX
void setLightSourceX(double value) Sets the light source X position used for drawing the cushions.- Parameters:
value- the X position- See Also:
-
getLightSourceY
double getLightSourceY()Returns the light source Y position used for drawing the cushions.- Returns:
- the Y position
- See Also:
-
setLightSourceY
void setLightSourceY(double value) Sets the light source Y position used for drawing the cushions.- Parameters:
value- the Y position- See Also:
-
getLightSourceZ
double getLightSourceZ()Returns the light source Z position used for drawing the cushions.- Returns:
- the Z position
- See Also:
-
setLightSourceZ
void setLightSourceZ(double value) Sets the light source Z position used for drawing the cushions.- Parameters:
value- the Z position- See Also:
-
getBackgroundProperty
Returns 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
MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getTooltipBackgroundProperty()Returns the background color to use for drawing the tooltips.- Returns:
- the color to be used
- See Also:
-
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:
-
setTooltipBackground
Sets the background color to use for drawing the tooltips.- Parameters:
color- the color to be used- See Also:
-
getProbingColorProperty
MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getProbingColorProperty()Returns the color to use for drawing the borders.- Returns:
- the color to be used
- See Also:
-
getProbingColor
com.macrofocus.igraphics.CPColor<Color> 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
MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getSelectionColorProperty()Returns the color to use for drawing the borders.- Returns:
- the color to be used
- See Also:
-
getSelectionColor
com.macrofocus.igraphics.CPColor<Color> 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:
-
getShowPopup
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
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
Gets the value of the specified property.- Parameters:
key- the property name- Returns:
- the value
-
addTreeMapSettingsListener
Add a listener for receiving interesting events about changes in the settings.- Parameters:
listener- the listener to add.
-
removeTreeMapSettingsListener
Remove a listener from the list of listeners that should be notified about changes in the settings.- Parameters:
listener- the listener to remove.
-
removeTreeMapSettingsListeners
@JsIgnore void removeTreeMapSettingsListeners()Remove all the listener from the list of listeners that should be notified about changes in the settings. -
getGroupByVariablesSelection
MutableSelection<TreeMapField> getGroupByVariablesSelection() -
getSizeVariableSelection
MutableSingleSelection<TreeMapField> getSizeVariableSelection() -
getColorVariableSelection
MutableSingleSelection<TreeMapField> getColorVariableSelection() -
getLabelVariablesSelection
MutableSelection<TreeMapField> getLabelVariablesSelection() -
getTooltipVariablesSelection
MutableSelection<TreeMapField> getTooltipVariablesSelection() -
getBackgroundVariableSelection
MutableSingleSelection<TreeMapField> getBackgroundVariableSelection() -
getHeightVariableSelection
MutableSingleSelection<TreeMapField> getHeightVariableSelection() -
getDepthSelection
MutableSingleSelection<Depth> getDepthSelection() -
getRenderingSelection
MutableSingleSelection<Rendering> getRenderingSelection() -
getProgressiveSelection
MutableSingleSelection<TreeMapView.Progressive> getProgressiveSelection() -
getHideFilterResultsSelection
MutableProperty<Boolean> getHideFilterResultsSelection() -
getHideSearchResultsSelection
MutableProperty<Boolean> getHideSearchResultsSelection() -
getDefaultFieldSettings
TreeMapFieldSettings<Color,Font> getDefaultFieldSettings() -
getFieldSettings
-
getLightSourceHeightInterval
MutableBoundedInterval getLightSourceHeightInterval() -
getLightSourceAmbientInterval
MutableBoundedInterval getLightSourceAmbientInterval() -
getLightSourceXInterval
MutableBoundedInterval getLightSourceXInterval() -
getLightSourceYInterval
MutableBoundedInterval getLightSourceYInterval() -
getLightSourceZInterval
MutableBoundedInterval getLightSourceZInterval() -
resetToDefaults
void resetToDefaults() -
save
void save(com.macrofocus.molap.dataframe.DataFrame dataFrame, ElementFactory elementFactory, Element root)
-