|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
N
- the type of nodespublic interface TreeMapModel<N>
Main interface for the model part of TreeMap.
Field Summary | |
---|---|
static String |
PROPERTY_PROGRESS
|
Method Summary | |
---|---|
void |
addListener(TreeMapListener treeMapListener)
Add a listener for receiving interesting events about changes in the model. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
Iterable<N> |
breadthFirstIterator(N parent)
Creates and returns an iterable that traverses the subhierarchy rooted at the give node in breadth-first order. |
MutableColorMap |
createDefaultColorMap(TreeMapField field)
|
Iterable<N> |
depthFirstIterator(N parent)
Creates and returns an iterable that traverses the subhierarchy rooted at the give node in depth-first order. |
ComboBoxModel |
getBackgroundModel()
|
Rectangle2D |
getBounds(N node)
Gets the bounding rectangle of the item in the map. |
int |
getChildCount(N node)
Returns the number of children of a given node. |
Iterable<N> |
getChildren(N parent)
Returns an iterator of the children of the given node. |
TreeMapField<N> |
getChildrenGroupByField(N node)
Gets the depth in hierarchy. |
Color |
getColor(N node)
Gets the color of the given node. |
ComboBoxModel |
getColorModel()
|
Class<?> |
getColumnClass(int columnIndex)
Returns the most specific superclass for all the cell values in the column. |
int |
getColumnCount()
Returns the number of columns in the model. |
String |
getColumnName(int columnIndex)
Returns the name of the column at columnIndex . |
N |
getCurrentRoot()
Gets the currently selected root node from which the treemap should be displayed. |
Color |
getCushionColor(N node)
Returns the color of the cushion. |
BufferedImage |
getCushionImage(N node)
Returns the image used for painting the cushion. |
MutableValueFilter<N> |
getFilter()
Obtains the model used for filtering nodes in the treemap. |
TreeMapField<N> |
getGroupByField(N node)
Gets the depth in hierarchy. |
ComboBoxModel |
getGroupByModel()
|
ComboBoxModel |
getHeightModel()
|
List<N> |
getHighlighting()
Obtains the model used to highlight nodes in the treemap. |
ComboBoxModel |
getLabelModel()
|
String |
getLabelName(N node)
Gets the label of the given node. |
int |
getLevel(N node)
Gets the depth in hierarchy. |
N |
getNode(Point p)
|
double |
getNormalizedLightSourceX()
Gets the the position of the light source along the X axis. |
double |
getNormalizedLightSourceY()
Gets the the position of the light source along the Y axis. |
double |
getNormalizedLightSourceZ()
Gets the the position of the light source along the Z axis. |
Double |
getNumericMax(TreeMapField columnIndex)
Gets the maximum value contained in the specified column. |
Double |
getNumericMin(TreeMapField columnIndex)
Gets the minimum value contained in the specified column. |
N |
getParent(N node)
Gets the parent node of the given node. |
N |
getProbing()
Obtains the model used for probing (aka mouse over). |
N |
getRoot()
Returns the root node of the treemap. |
MutableValueFilter<N> |
getSearch()
Obtains the model used to carry out search in the treemap. |
List<N> |
getSelection()
Obtains the model used for selecting nodes in the treemap. |
TreeMapSettings |
getSettings()
Gets the settings currently selected. |
Shape |
getShape(N node)
Gets the shape of the item in the map. |
double |
getSize(N node)
Corresponds to area in map. |
ComboBoxModel |
getSizeModel()
|
String |
getStringValue(N node,
TreeMapField field)
Returns the string value for the cell at columnIndex and of
node . |
TreeMapField |
getTreeMapField(int columnIndex)
Gets the field corresponding to the specified column index. |
TreeMapField |
getTreeMapField(String columnName)
Gets the field corresponding to the specified column name. |
Object |
getValueAt(N node,
int columnIndex)
Returns the value for the cell at columnIndex and of
node . |
TreeMapWorker |
getWorker()
Gets the worker task updating the layout. |
Future<Void> |
getWorkerFuture()
Gets the worker task updating the layout. |
boolean |
isEveryValueUnique(TreeMapField<N> field)
Indicates whether all the values in the given field are unique. |
boolean |
isLeaf(N node)
Tells whether the given node is a leaf node or not. |
boolean |
isRoot(N node)
Tells whether the given node is the root node or not. |
Iterable<N> |
preorderEnumeration(N parent)
Creates and returns an iterable that traverses the subhierarchy rooted at the give node in preorder. |
void |
removeListener(TreeMapListener treeMapListener)
Remove a listener from the list of listeners that should be notified about changes in the model. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
void |
setColor(N node,
Color color)
Sets the color of the given node. |
void |
setCurrentRoot(N currentRoot)
Sets the currently selected root node from which the treemap should be displayed. |
void |
setHighlighting(List<N> highlighting)
|
void |
setNumericMax(TreeMapField columnIndex,
double max)
Sets the maximum value contained in the specified column. |
void |
setNumericMin(TreeMapField columnIndex,
double min)
Sets the minimum value contained in the specified column. |
void |
setProbing(N n)
|
void |
setSelection(List<N> selection)
|
void |
setShape(N node,
Shape shape)
Sets the shape of the item in the map. |
Field Detail |
---|
static final String PROPERTY_PROGRESS
Method Detail |
---|
double getSize(N node)
node
- the node.
void setShape(N node, Shape shape)
node
- the node.shape
- the shape of the item in the map.Shape getShape(N node)
node
- the node.
Rectangle2D getBounds(N node)
node
- the node.
int getLevel(N node)
node
- the node.
TreeMapField<N> getGroupByField(N node)
node
- the node.
TreeMapField<N> getChildrenGroupByField(N node)
node
- the node.
String getLabelName(N node)
node
- the node.
void setColor(N node, Color color)
node
- the node.color
- its color.Color getColor(N node)
node
- the node.
MutableColorMap createDefaultColorMap(TreeMapField field)
boolean isLeaf(N node)
node
- the node
N getParent(N node)
node
- the node
boolean isRoot(N node)
node
- the node
Iterable<N> getChildren(N parent)
parent
- the parent node
int getChildCount(N node)
node
- the parent node.
BufferedImage getCushionImage(N node)
node
- the node
Color getCushionColor(N node)
node
- the node
Iterable<N> preorderEnumeration(N parent)
parent
- the root of the hierarchy to traverse
Iterable<N> breadthFirstIterator(N parent)
parent
- the root of the hierarchy to traverse
Iterable<N> depthFirstIterator(N parent)
parent
- the root of the hierarchy to traverse
TreeMapField getTreeMapField(int columnIndex)
columnIndex
- the index of the column.
TreeMapField getTreeMapField(String columnName)
columnName
- the name of the column.
Double getNumericMax(TreeMapField columnIndex)
columnIndex
- the index of the column.
Double getNumericMin(TreeMapField columnIndex)
columnIndex
- the index of the column.
void setNumericMax(TreeMapField columnIndex, double max)
columnIndex
- the index of the column.max
- the maximum value.void setNumericMin(TreeMapField columnIndex, double min)
columnIndex
- the index of the column.min
- the minimum value.double getNormalizedLightSourceX()
double getNormalizedLightSourceY()
double getNormalizedLightSourceZ()
int getColumnCount()
String getColumnName(int columnIndex)
columnIndex
. Note: this name does
not need to be unique; two columns in a table can have the same name.
columnIndex
- the index of the column
Class<?> getColumnClass(int columnIndex)
columnIndex
- the index of the column
Object getValueAt(N node, int columnIndex)
columnIndex
and of
node
.
node
- the node whose value is to be queriedcolumnIndex
- the column whose value is to be queried
boolean isEveryValueUnique(TreeMapField<N> field)
field
- the field whose whose values are to be queried
String getStringValue(N node, TreeMapField field)
columnIndex
and of
node
.
node
- the node whose value is to be queriedfield
- the field whose value is to be queried
N getRoot()
void setCurrentRoot(N currentRoot)
currentRoot
- the root node to use for display.N getCurrentRoot()
N getProbing()
void setProbing(N n)
List<N> getHighlighting()
void setHighlighting(List<N> highlighting)
List<N> getSelection()
void setSelection(List<N> selection)
MutableValueFilter<N> getFilter()
MutableValueFilter<N> getSearch()
TreeMapSettings getSettings()
ComboBoxModel getGroupByModel()
ComboBoxModel getLabelModel()
ComboBoxModel getBackgroundModel()
ComboBoxModel getSizeModel()
ComboBoxModel getHeightModel()
ComboBoxModel getColorModel()
TreeMapWorker getWorker()
Future<Void> getWorkerFuture()
void addListener(TreeMapListener treeMapListener)
treeMapListener
- the listener to add.void removeListener(TreeMapListener treeMapListener)
treeMapListener
- the listener to remove.void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
void addPropertyChangeListener(PropertyChangeListener listener)
void removePropertyChangeListener(PropertyChangeListener listener)
void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
N getNode(Point p)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |