Cytoscape 2.8.0 API

cytoscape.util.swing
Class AbstractTreeTableModel

java.lang.Object
  extended by cytoscape.util.swing.AbstractTreeTableModel
All Implemented Interfaces:
TreeTableModel, TreeModel
Direct Known Subclasses:
NetworkTreeTableModel

public abstract class AbstractTreeTableModel
extends Object
implements TreeTableModel

Version:
1.2 10/27/98 An abstract implementation of the TreeTableModel interface, handling the list of listeners.
Author:
Philip Milne

Field Summary
protected  EventListenerList listenerList
           
protected  Object root
           
 
Constructor Summary
AbstractTreeTableModel(Object root)
          Creates a new AbstractTreeTableModel object.
 
Method Summary
 void addTreeModelListener(TreeModelListener l)
          DOCUMENT ME!
protected  void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children)
           
protected  void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children)
           
protected  void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)
           
protected  void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)
           
 Class getColumnClass(int column)
          DOCUMENT ME!
 int getIndexOfChild(Object parent, Object child)
          DOCUMENT ME!
 Object getRoot()
          DOCUMENT ME!
 boolean isCellEditable(Object node, int column)
          By default, make the column with the Tree in it the only editable one.
 boolean isLeaf(Object node)
          DOCUMENT ME!
 void removeTreeModelListener(TreeModelListener l)
          DOCUMENT ME!
 void setValueAt(Object aValue, Object node, int column)
          DOCUMENT ME!
 void valueForPathChanged(TreePath path, Object newValue)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cytoscape.util.swing.TreeTableModel
getColumnCount, getColumnName, getValueAt
 
Methods inherited from interface javax.swing.tree.TreeModel
getChild, getChildCount
 

Field Detail

root

protected Object root

listenerList

protected EventListenerList listenerList
Constructor Detail

AbstractTreeTableModel

public AbstractTreeTableModel(Object root)
Creates a new AbstractTreeTableModel object.

Parameters:
root - DOCUMENT ME!
Method Detail

getRoot

public Object getRoot()
DOCUMENT ME!

Specified by:
getRoot in interface TreeModel
Returns:
DOCUMENT ME!

isLeaf

public boolean isLeaf(Object node)
DOCUMENT ME!

Specified by:
isLeaf in interface TreeModel
Parameters:
node - DOCUMENT ME!
Returns:
DOCUMENT ME!

valueForPathChanged

public void valueForPathChanged(TreePath path,
                                Object newValue)
DOCUMENT ME!

Specified by:
valueForPathChanged in interface TreeModel
Parameters:
path - DOCUMENT ME!
newValue - DOCUMENT ME!

getIndexOfChild

public int getIndexOfChild(Object parent,
                           Object child)
DOCUMENT ME!

Specified by:
getIndexOfChild in interface TreeModel
Parameters:
parent - DOCUMENT ME!
child - DOCUMENT ME!
Returns:
DOCUMENT ME!

addTreeModelListener

public void addTreeModelListener(TreeModelListener l)
DOCUMENT ME!

Specified by:
addTreeModelListener in interface TreeModel
Parameters:
l - DOCUMENT ME!

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener l)
DOCUMENT ME!

Specified by:
removeTreeModelListener in interface TreeModel
Parameters:
l - DOCUMENT ME!

fireTreeNodesChanged

protected void fireTreeNodesChanged(Object source,
                                    Object[] path,
                                    int[] childIndices,
                                    Object[] children)

fireTreeNodesInserted

protected void fireTreeNodesInserted(Object source,
                                     Object[] path,
                                     int[] childIndices,
                                     Object[] children)

fireTreeNodesRemoved

protected void fireTreeNodesRemoved(Object source,
                                    Object[] path,
                                    int[] childIndices,
                                    Object[] children)

fireTreeStructureChanged

protected void fireTreeStructureChanged(Object source,
                                        Object[] path,
                                        int[] childIndices,
                                        Object[] children)

getColumnClass

public Class getColumnClass(int column)
DOCUMENT ME!

Specified by:
getColumnClass in interface TreeTableModel
Parameters:
column - DOCUMENT ME!
Returns:
DOCUMENT ME!

isCellEditable

public boolean isCellEditable(Object node,
                              int column)
By default, make the column with the Tree in it the only editable one. Making this column editable causes the JTable to forward mouse and keyboard events in the Tree column to the underlying JTree.

Specified by:
isCellEditable in interface TreeTableModel

setValueAt

public void setValueAt(Object aValue,
                       Object node,
                       int column)
DOCUMENT ME!

Specified by:
setValueAt in interface TreeTableModel
Parameters:
aValue - DOCUMENT ME!
node - DOCUMENT ME!
column - DOCUMENT ME!

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.