com.tensegrity.gui.swing.control.attributetree
Class AttributeTreeState

java.lang.Object
  extended bycom.tensegrity.gui.swing.control.attributetree.AttributeTreeState

public class AttributeTreeState
extends java.lang.Object

Class to store the tree state (expansion, selection) of a SwingAttributeTree

Version:
$Id: AttributeTreeState.java,v 1.8 2006/06/08 12:21:48 BurkhardWick Exp $
Author:
BurkhardWick

Field Summary
protected  java.util.HashSet allPaths
          Contains all paths that were part of this state
protected  java.util.HashSet expandedPaths
          Contains the minimum amount of paths to restore the expansion of the tree
protected  boolean indirectMatchPossible
          True, to allow matching of elements that are of the same type but not equal
protected  java.lang.String selectedRow
          The selected row in this state
protected  int viewPortX
          The horizontal viewport position
protected  int viewPortY
          The vertical viewport position
 
Constructor Summary
protected AttributeTreeState(AttributableOnSet attributable)
          Constructor
protected AttributeTreeState(AttributeTreeState state)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 void setAttributable(AttributableOnSet attributable)
          Sets the attributable of this treestate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expandedPaths

protected java.util.HashSet expandedPaths
Contains the minimum amount of paths to restore the expansion of the tree


allPaths

protected java.util.HashSet allPaths
Contains all paths that were part of this state


selectedRow

protected java.lang.String selectedRow
The selected row in this state


viewPortX

protected int viewPortX
The horizontal viewport position


viewPortY

protected int viewPortY
The vertical viewport position


indirectMatchPossible

protected boolean indirectMatchPossible
True, to allow matching of elements that are of the same type but not equal

Constructor Detail

AttributeTreeState

protected AttributeTreeState(AttributableOnSet attributable)
Constructor

Parameters:
attributable - the attributable of this treestate

AttributeTreeState

protected AttributeTreeState(AttributeTreeState state)
Constructor

Parameters:
state - Another treestate to copy the values of
Method Detail

setAttributable

public void setAttributable(AttributableOnSet attributable)
Sets the attributable of this treestate

Parameters:
attributable - the attributable of this treestate

equals

public boolean equals(java.lang.Object obj)


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.