CESE 1.4.7

com.simulogic.dataview
Class DataGroup

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by com.simulogic.dataview.DataGroup
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class DataGroup
extends javax.swing.tree.DefaultMutableTreeNode

Class that represents group of data sets (channels) from a single recording

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
DataGroup(java.lang.String name, java.lang.String info)
          Creates new DataGroup
 
Method Summary
 void addChannel(DataChannel c)
          Adds a channel to this group
 DataChannel getChannel(int c)
          Returns channel in the group
 java.lang.String getInfo()
          Getter for property info
 java.lang.String getName()
          Getter for property name
 int getXChannel()
          Getter for property xChannel.
 void setInfo(java.lang.String info)
          Setter for property info
 void setName(java.lang.String name)
          Setter for property name
 void setXChannel(int x)
          Setter for property xChannel.
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataGroup

public DataGroup(java.lang.String name,
                 java.lang.String info)
Creates new DataGroup

Parameters:
name - name of the group
info - description
Method Detail

addChannel

public void addChannel(DataChannel c)
Adds a channel to this group

Parameters:
c - channel to add

getChannel

public DataChannel getChannel(int c)
                       throws java.lang.ClassCastException
Returns channel in the group

Parameters:
c - channel index
Returns:
DataChannel for index
Throws:
java.lang.ClassCastException - if object is not of type DataChannel

getName

public java.lang.String getName()
Getter for property name

Returns:
Value of property name

setName

public void setName(java.lang.String name)
Setter for property name

Parameters:
name - New value of property name

getInfo

public java.lang.String getInfo()
Getter for property info

Returns:
Value of property info

setInfo

public void setInfo(java.lang.String info)
Setter for property info

Parameters:
info - New value of property info

getXChannel

public int getXChannel()
Getter for property xChannel.

Returns:
Value of property xChannel.

setXChannel

public void setXChannel(int x)
Setter for property xChannel.

Parameters:
x - New value of property xChannel.

CESE 1.4.7

Copyright (c) 1999 - 2007 Cell Electrophysiology Simulation Environment (CESE). All rights reserved.