Package com.macrofocus.treemap.swing
Class SwingTreeMapModel<N extends AbstractTreeMapNode<N,Row,Column,java.awt.Color,java.awt.Font>,Row,Column>
- java.lang.Object
-
- com.macrofocus.treemap.AbstractTreeMapModel<N,Row,Column,Color,Font>
-
- com.macrofocus.treemap.DefaultTreeMapModel<N,Row,Column,java.awt.Color,java.awt.Font>
-
- com.macrofocus.treemap.swing.SwingTreeMapModel<N,Row,Column>
-
- All Implemented Interfaces:
TreeMapModel<N,Row,Column,java.awt.Color,java.awt.Font>
public class SwingTreeMapModel<N extends AbstractTreeMapNode<N,Row,Column,java.awt.Color,java.awt.Font>,Row,Column> extends DefaultTreeMapModel<N,Row,Column,java.awt.Color,java.awt.Font>
Created by luc on 01.05.17.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SwingTreeMapModel.AbstractTreeMapFieldComboBoxModel<N extends MutableTreeMapNode>
protected static class
SwingTreeMapModel.BackgroundComboBoxModel<N extends MutableTreeMapNode>
static class
SwingTreeMapModel.ColorComboBoxModel<N extends MutableTreeMapNode>
static class
SwingTreeMapModel.GroupByComboBoxModel<N extends MutableTreeMapNode>
static class
SwingTreeMapModel.HeightComboBoxModel<N extends MutableTreeMapNode>
static class
SwingTreeMapModel.LabelComboBoxModel<N extends MutableTreeMapNode>
static class
SwingTreeMapModel.SizeComboBoxModel<N extends MutableTreeMapNode>
-
Nested classes/interfaces inherited from class com.macrofocus.treemap.AbstractTreeMapModel
AbstractTreeMapModel.Worker
-
-
Field Summary
-
Fields inherited from class com.macrofocus.treemap.DefaultTreeMapModel
dataFrame
-
Fields inherited from class com.macrofocus.treemap.AbstractTreeMapModel
_settings, colorFactory, colorMapFactory, cpHelper, fontFactory, formatFactory, imageFactory, rowNode
-
Fields inherited from interface com.macrofocus.treemap.TreeMapModel
PROPERTY_CURRENT_ROOT, PROPERTY_PROGRESS
-
-
Constructor Summary
Constructors Constructor Description SwingTreeMapModel(com.macrofocus.molap.dataframe.DataFrame<Row,Column,?> dataFrame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.ComboBoxModel<TreeMapField>
createBackgroundComboBoxModel()
protected javax.swing.ComboBoxModel<TreeMapField>
createColorComboBoxModel()
protected SwingTreeMapModel.GroupByComboBoxModel
createGroupByComboBoxModel()
protected javax.swing.ComboBoxModel<TreeMapField>
createHeightComboBoxModel()
protected SwingTreeMapModel.LabelComboBoxModel
createLabelComboBoxModel()
protected javax.swing.ComboBoxModel<TreeMapField>
createSizeComboBoxModel()
javax.swing.ComboBoxModel<TreeMapField>
getBackgroundModel()
Gets a ComboBox model that can be used to control the background.javax.swing.ComboBoxModel<TreeMapField>
getColorModel()
Gets a ComboBox model that can be used to control the color.javax.swing.ComboBoxModel
getGroupByModel()
Gets a ComboBox model that can be used to control the group by.javax.swing.ComboBoxModel<TreeMapField>
getHeightModel()
Gets a ComboBox model that can be used to control the height.javax.swing.ComboBoxModel
getLabelModel()
Gets a ComboBox model that can be used to control the labels.javax.swing.ComboBoxModel<TreeMapField>
getSizeModel()
Gets a ComboBox model that can be used to control the size.-
Methods inherited from class com.macrofocus.treemap.DefaultTreeMapModel
addChild, addChild, columns, createCategoricalColorMap, createDefaultColorMap, createLeafNode, createParentNode, createRootNode, createTreeMapField, doGroupBy, findChild, getChildCount, getChildren, getChildrenOfTypeParent, getColumnClass, getColumnCount, getColumnName, getCushionColor, getCushionImage, getDataFrame, getLabelName, getNode, getNumericMax, getNumericMin, getParent, getRowCount, getTreeMapField, getTreeMapField, getTreeMapFieldByName, getValueAt, isEveryValueUnique, isRoot, setDataFrame, setNumericMax, setNumericMin
-
Methods inherited from class com.macrofocus.treemap.AbstractTreeMapModel
addListener, breadthFirstIterator, clearAggregationCache, computeSize, computeSizeLeafs, computeSizeParents, createSettings, depthFirstIterator, doColors, doLayout, doLayoutChildren, fireTableModelChanged, getAggregateValue, getBounds, getCategoricalColorMap, getChildrenGroupByField, getColor, getColorFactory, getColorMap, getColorMap, getColorProvider, getColorTreeMapFields, getCurrentRoot, getCustomColorMap, getFilter, getFormatPattern, getGroupByField, getGroupByTreeMapFields, getHeightTreeMapFields, getHighlighting, getImageFactory, getLabelsTreeMapFields, getLevel, getMaximumSize, getNestedShape, getNode, getNormalizedLightSourceX, getNormalizedLightSourceY, getNormalizedLightSourceZ, getPredefinedColorMap, getProbing, getProperties, getRoot, getSearch, getSelection, getSettings, getShape, getSize, getSizeTreeMapFields, getStringValue, getSumSize, getTooltipTreeMapFields, getTreeMapFields, getTreeMapFields, getTreeMapFields, getTreeMapFields, getViewport, getWorker, getWorkerFuture, hasNoChildren, initDefaults, isDirty, isLeaf, isNumericType, isTemporalType, isVisualType, parentPreorderEnumeration, preorderEnumeration, progressProperty, removeListener, scheduleUpdateColors, scheduleUpdateGroupBy, scheduleUpdateLayout, setColor, setColorProvider, setCurrentRoot, setFormatPattern, setNestedShape, setProgress, setShape, waitUntilReady
-
-
-
-
Method Detail
-
getGroupByModel
public javax.swing.ComboBoxModel getGroupByModel()
Gets a ComboBox model that can be used to control the group by.- Returns:
- a ComboBox model linked to the group by setting.
-
createGroupByComboBoxModel
protected SwingTreeMapModel.GroupByComboBoxModel createGroupByComboBoxModel()
-
getLabelModel
public javax.swing.ComboBoxModel getLabelModel()
Gets a ComboBox model that can be used to control the labels.- Returns:
- a ComboBox model linked to the labels setting.
-
createLabelComboBoxModel
protected SwingTreeMapModel.LabelComboBoxModel createLabelComboBoxModel()
-
getBackgroundModel
public javax.swing.ComboBoxModel<TreeMapField> getBackgroundModel()
Gets a ComboBox model that can be used to control the background.- Returns:
- a ComboBox model linked to the background setting.
-
createBackgroundComboBoxModel
protected javax.swing.ComboBoxModel<TreeMapField> createBackgroundComboBoxModel()
-
getSizeModel
public javax.swing.ComboBoxModel<TreeMapField> getSizeModel()
Gets a ComboBox model that can be used to control the size.- Returns:
- a ComboBox model linked to the size setting.
-
createSizeComboBoxModel
protected javax.swing.ComboBoxModel<TreeMapField> createSizeComboBoxModel()
-
getHeightModel
public javax.swing.ComboBoxModel<TreeMapField> getHeightModel()
Gets a ComboBox model that can be used to control the height.- Returns:
- a ComboBox model linked to the height setting.
-
createHeightComboBoxModel
protected javax.swing.ComboBoxModel<TreeMapField> createHeightComboBoxModel()
-
getColorModel
public javax.swing.ComboBoxModel<TreeMapField> getColorModel()
Gets a ComboBox model that can be used to control the color.- Returns:
- a ComboBox model linked to the color setting.
-
createColorComboBoxModel
protected javax.swing.ComboBoxModel<TreeMapField> createColorComboBoxModel()
-
-