com.imagero.gui.msp
Class Node

java.lang.Object
  extended bycom.imagero.gui.msp.Node

public class Node
extends java.lang.Object

Manages component tree. Most methods in Node are recursive.


Method Summary
 void debug()
           
 float getDividerLocation()
           
 java.awt.Dimension getMaximumSize()
           
 java.awt.Dimension getMinimumSize()
           
 java.lang.String getName()
           
 int getOrientation()
           
 Node getParent()
           
 java.awt.Dimension getPreferredSize()
           
 float getResizeWeight()
          resize weight determines how extra space is distributed.
 boolean isChild(Node n)
          determine if given Node is child of this Node
 boolean isDescendant(Node p)
          instead of long traversing through tree structure we just compare names
 boolean isLeaf()
           
 boolean isMaximized()
           
 boolean isSelected()
          Determine if this Node is selected Node.
 void setDividerLocation(float location)
           
 void setDividerLocation(int location)
           
 void setMaximized(boolean b)
           
 void setSelected(boolean selected)
          change selected Node (single selection mode only)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

debug

public void debug()

getDividerLocation

public float getDividerLocation()

getMaximumSize

public java.awt.Dimension getMaximumSize()

getMinimumSize

public java.awt.Dimension getMinimumSize()

getName

public java.lang.String getName()

getOrientation

public int getOrientation()

getParent

public Node getParent()

getPreferredSize

public java.awt.Dimension getPreferredSize()

getResizeWeight

public float getResizeWeight()
resize weight determines how extra space is distributed.

Returns:
current resize weight value (between 0.0f and 1.0f)

isChild

public boolean isChild(Node n)
determine if given Node is child of this Node

Parameters:
n - Node
Returns:
true if Node n is child of this Node

isDescendant

public boolean isDescendant(Node p)
instead of long traversing through tree structure we just compare names

Parameters:
p -
Returns:

isLeaf

public boolean isLeaf()

isMaximized

public boolean isMaximized()

isSelected

public boolean isSelected()
Determine if this Node is selected Node. Only for debugging purpose.

Returns:
true if this Node is selected

setDividerLocation

public void setDividerLocation(float location)

setDividerLocation

public void setDividerLocation(int location)

setMaximized

public void setMaximized(boolean b)

setSelected

public void setSelected(boolean selected)
change selected Node (single selection mode only)

Parameters:
selected -