| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.usp.ime.klava.segmentit.structures.HierarchyNode
br.usp.ime.klava.segmentit.structures.HierarchyLeaf
public class HierarchyLeaf
Leaf node of a hierarchy of nested partitions.
| Constructor Summary | |
|---|---|
HierarchyLeaf(TreeOfCriticalLakes TCL,
              PrimitiveCatchmentBasin basin)
Constructs a HierarchyLeaf that encapsulates basin
 in a hierarchy of partitions. | 
|
| Method Summary | |
|---|---|
 javax.swing.tree.MutableTreeNode | 
buildSubTree()
Returns a MutableTreeNode representation of this
 HierarchyNode for visualization in a tree view. | 
 void | 
deactivateSubTree()
Sets active to false to all the basins under
 this HierarchyNode in the hierarchy. | 
 java.lang.String | 
description(int level)
Returns a String representation of the subtree of the hierarchy rooted by this HierarchyNode. | 
 java.util.Collection<HierarchyNode> | 
getChildren()
Returns the HierarchyNodes from which this HierarchyNode
 was constructed. | 
 int | 
getNumPixels()
Returns the number of pixels in this HierarchyNode. | 
 PrimitiveCatchmentBasin | 
getPrimitiveCatchmentBasin()
Returns the PrimitiveCatchmentBasin encapsulated in the
 HierarchyLeaf. | 
 void | 
paint(java.awt.image.BufferedImage image,
      java.awt.Color color)
Paints this HierarchyNode with the given color . | 
 void | 
paintHierarchy(java.awt.image.BufferedImage image)
Paints the partition selected on the hierarchy (according to the active values) limited to the region that this
 HierarchyNode represents. | 
 void | 
setThreshold(int threshold)
Selects a partition on the hierarchy according to a threshold value. | 
| Methods inherited from class br.usp.ime.klava.segmentit.structures.HierarchyNode | 
|---|
description, getColor, getLabel, getMaximumBasin, getMetric, getParent, getValue, isActive, merge, paint, randomizeColor, refine, resetHierarchy, setActive, setParent, toString | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public HierarchyLeaf(TreeOfCriticalLakes TCL,
                     PrimitiveCatchmentBasin basin)
HierarchyLeaf that encapsulates basin
 in a hierarchy of partitions.
TCL - the TreeOfCriticalLakes where this
            HierarchyLeaf belongsbasin - the PrimitiveCatchmentBasin encapsulated in the
            HierarchyLeaf| Method Detail | 
|---|
public PrimitiveCatchmentBasin getPrimitiveCatchmentBasin()
PrimitiveCatchmentBasin encapsulated in the
 HierarchyLeaf.
PrimitiveCatchmentBasin encapsulated in the
         HierarchyLeafpublic java.util.Collection<HierarchyNode> getChildren()
HierarchyNodeHierarchyNodes from which this HierarchyNode
 was constructed.
getChildren in class HierarchyNodeHierarchyNodes from which this HierarchyNode
         was constructedpublic javax.swing.tree.MutableTreeNode buildSubTree()
HierarchyNodeMutableTreeNode representation of this
 HierarchyNode for visualization in a tree view.
buildSubTree in class HierarchyNodeHierarchyNode and all
         HierarchyNodes below it in the hierarchy
public void paint(java.awt.image.BufferedImage image,
                  java.awt.Color color)
HierarchyNodeHierarchyNode with the given color .
paint in class HierarchyNodeimage - the image where this HierarchyNode will be paintedcolor - the Color to be used to paint this
            HierarchyNodepublic void paintHierarchy(java.awt.image.BufferedImage image)
HierarchyNodeactive values) limited to the region that this
 HierarchyNode represents.
paintHierarchy in class HierarchyNodeimage - the image where the partition will be paintedpublic void setThreshold(int threshold)
HierarchyNodethreshold value.
setThreshold in class HierarchyNodethreshold - the threshold value to select a partition in the hierarchypublic void deactivateSubTree()
HierarchyNodeactive to false to all the basins under
 this HierarchyNode in the hierarchy.
deactivateSubTree in class HierarchyNodepublic java.lang.String description(int level)
HierarchyNodeHierarchyNode.
description in class HierarchyNodelevel - the indentation level to be used in the description
HierarchyNodepublic int getNumPixels()
HierarchyNodeHierarchyNode.
getNumPixels in class HierarchyNodeHierarchyNode
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||