|
CESE 1.4.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultTreeModel
com.simulogic.dataview.DataStorage
public class DataStorage
Container for all the data (i.e. model)
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultTreeModel |
|---|
asksAllowsChildren, listenerList, root |
| Constructor Summary | |
|---|---|
DataStorage()
Default constructor |
|
| Method Summary | |
|---|---|
void |
addChannel(DataChannel c,
int g)
Adds a channel to the specific group in the storage |
void |
addGroup(DataGroup g)
Adds a group to the storage |
java.awt.geom.Rectangle2D.Double |
getAutoscaleRectangle(double xMin,
double xMax)
Returns autoscale rectangle for data interval |
DataChannel |
getChannel(int g,
int c)
Returns channel in the group from this storage |
javax.swing.tree.DefaultMutableTreeNode |
getChannelNode(int g,
int c)
Returns node that keeps channel in the group from this storage |
int |
getChannelsSize(int g)
Returns number of channels in the specific group |
DataGroup |
getGroup(int g)
Returns group from this storage |
int |
getGroupsSize()
Returns number of groups in this storage |
java.awt.geom.Rectangle2D.Double |
getLimitRectangle()
Returns rectangle of data limits |
DataChannel |
getSelectedChannel()
Returns a currently selected channel |
DataChannel |
getXChannel(DataChannel chan)
Returns X channel that corresponds to the given channel |
boolean |
isXChannel(DataChannel chan)
Returns true if given channel is an X channel in one of the groups |
void |
setSelectedChannel(DataChannel selectedChannel)
Sets the new selected channel |
void |
setXChannel(DataChannel chan)
Sets an attribute of the given channel to X channel and adjusts all entries in the correspondent group |
void |
updateModel(int g)
Updates group in the storage |
| Methods inherited from class javax.swing.tree.DefaultTreeModel |
|---|
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataStorage()
| Method Detail |
|---|
public void addGroup(DataGroup g)
g - a group to add
public void addChannel(DataChannel c,
int g)
c - channel to addg - target group
public DataGroup getGroup(int g)
throws java.lang.ClassCastException
g - group index
java.lang.ClassCastException - if object is not of type DataGrouppublic int getGroupsSize()
public DataChannel getChannel(int g,
int c)
throws java.lang.ClassCastException
c - channel index in group gg - group index
java.lang.ClassCastException - if object is not of type DataChannel
public javax.swing.tree.DefaultMutableTreeNode getChannelNode(int g,
int c)
throws java.lang.ClassCastException
c - channel index in group gg - group index
java.lang.ClassCastException - if object is not of type DefaultMutableTreeNodepublic int getChannelsSize(int g)
g - target group
public DataChannel getXChannel(DataChannel chan)
chan - channel to test
public boolean isXChannel(DataChannel chan)
chan - channel to test
public void setXChannel(DataChannel chan)
chan - channel to testpublic DataChannel getSelectedChannel()
public void setSelectedChannel(DataChannel selectedChannel)
selectedChannel - selected channelpublic java.awt.geom.Rectangle2D.Double getLimitRectangle()
public java.awt.geom.Rectangle2D.Double getAutoscaleRectangle(double xMin,
double xMax)
xMin - minimum limit for xxMax - maximum limit for x
public void updateModel(int g)
g - target group index
|
CESE 1.4.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||