Class MyMutableTreeMapNode

    • Constructor Summary

      Constructors 
      Constructor Description
      MyMutableTreeMapNode​(java.lang.String name, int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.geom.Rectangle2D getBounds()
      Gets the bounding rectangle of the item in the map.
      TreeMapField getChildrenGroupByField()
      Returns the number of levels above this node -- the distance from the root to this node.
      com.macrofocus.igraphics.CPColor getColor()  
      TreeMapField getGroupByField()
      Returns the number of levels above this node -- the distance from the root to this node.
      int getLevel()
      Returns the number of levels above this node -- the distance from the root to this node.
      java.awt.Shape getNestedShape()
      Gets the shape after nesting of the item in the map.
      java.awt.Shape getShape()
      Gets the shape of the item in the map.
      double getSize()
      Corresponds to area in map.
      boolean hasNoChildren()
      Tells whether this node contains children.
      boolean isLeaf()  
      void setColor​(com.macrofocus.igraphics.CPColor c)
      Sets the color of the item in the map.
      void setNestedShape​(java.awt.Shape shape)
      Sets the shape after nesting of the item in the map.
      void setShape​(java.awt.Shape shape)
      Sets the shape of the item in the map.
      void setSize​(double size)
      Sets the size of the item.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MyMutableTreeMapNode

        public MyMutableTreeMapNode​(java.lang.String name,
                                    int size)
    • Method Detail

      • setSize

        public void setSize​(double size)
        Description copied from interface: MutableTreeMapNode
        Sets the size of the item.
        Specified by:
        setSize in interface MutableTreeMapNode
        Parameters:
        size - the size of the item.
      • setColor

        public void setColor​(com.macrofocus.igraphics.CPColor c)
        Description copied from interface: MutableTreeMapNode
        Sets the color of the item in the map.
        Specified by:
        setColor in interface MutableTreeMapNode
        Parameters:
        c - the color of the item in the map.
      • getColor

        public com.macrofocus.igraphics.CPColor getColor()
        Specified by:
        getColor in interface TreeMapNode
      • setShape

        public void setShape​(java.awt.Shape shape)
        Description copied from interface: MutableTreeMapNode
        Sets the shape of the item in the map.
        Specified by:
        setShape in interface MutableTreeMapNode
        Parameters:
        shape - the shape of the item in the map.
      • getSize

        public double getSize()
        Description copied from interface: TreeMapNode
        Corresponds to area in map.
        Specified by:
        getSize in interface TreeMapNode
        Returns:
        the area
      • getShape

        public java.awt.Shape getShape()
        Description copied from interface: TreeMapNode
        Gets the shape of the item in the map.
        Specified by:
        getShape in interface TreeMapNode
        Returns:
        the shape of the item in the map.
      • setNestedShape

        public void setNestedShape​(java.awt.Shape shape)
        Description copied from interface: MutableTreeMapNode
        Sets the shape after nesting of the item in the map.
        Specified by:
        setNestedShape in interface MutableTreeMapNode
        Parameters:
        shape - the shape of the item in the map.
      • getNestedShape

        public java.awt.Shape getNestedShape()
        Description copied from interface: TreeMapNode
        Gets the shape after nesting of the item in the map.
        Specified by:
        getNestedShape in interface TreeMapNode
        Returns:
        the shape of the item in the map.
      • getBounds

        public java.awt.geom.Rectangle2D getBounds()
        Description copied from interface: TreeMapNode
        Gets the bounding rectangle of the item in the map.
        Specified by:
        getBounds in interface TreeMapNode
        Returns:
        the bounding rectangle of the item in the map.
      • getLevel

        public int getLevel()
        Description copied from interface: TreeMapNode
        Returns the number of levels above this node -- the distance from the root to this node. If this node is the root, returns 0.
        Specified by:
        getLevel in interface TreeMapNode
        Returns:
        the number of levels above this node
      • getGroupByField

        public TreeMapField getGroupByField()
        Description copied from interface: TreeMapNode
        Returns the number of levels above this node -- the distance from the root to this node. If this node is the root, returns 0.
        Specified by:
        getGroupByField in interface TreeMapNode
        Returns:
        the number of levels above this node
      • getChildrenGroupByField

        public TreeMapField getChildrenGroupByField()
        Description copied from interface: TreeMapNode
        Returns the number of levels above this node -- the distance from the root to this node. If this node is the root, returns 0.
        Specified by:
        getChildrenGroupByField in interface TreeMapNode
        Returns:
        the number of levels above this node
      • hasNoChildren

        public boolean hasNoChildren()
        Description copied from interface: TreeMapNode
        Tells whether this node contains children.
        Specified by:
        hasNoChildren in interface TreeMapNode
        Returns:
        true if this node contains children, false otherwise
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object