public class TreeTableModel
extends java.lang.Object
implements javax.swing.tree.TreeModel
LikelihoodDetectionParameters
,
TreeTable.TreeTableCellRenderer
,
TreeModel
Constructor and Description |
---|
TreeTableModel(AcquisitionSettings acquisitionSettings,
int channelMap)
Instantiates a new tree table model.
|
Modifier and Type | Method and Description |
---|---|
void |
addTargetConfiguration(TargetConfiguration config)
Adds the target configuration.
|
void |
addTreeModelListener(javax.swing.event.TreeModelListener l)
Adds a listener for TreeModel events.
|
void |
createNewGuardBand(java.lang.String bandId,
java.lang.String configId)
Creates a new guard band for the target configuration specified.
|
void |
createNewSignalBand(java.lang.String bandId,
java.lang.String configId)
Creates a new signal band for the target configuration specified.
|
void |
createNewTargetConfiguration(java.lang.String identifier)
Creates a new target configuration using the identifier specified.
|
void |
deleteGuardBandFrom(java.lang.String bandName,
java.lang.String configName)
Delete the specified guard band from the target configuration indicated.
|
void |
deleteSignalBandFrom(java.lang.String bandName,
java.lang.String configName)
Delete the specified signal band from the indicated target configuration.
|
void |
deleteTargetConfiguration(java.lang.String identifier)
Delete the target configuration specified by the identifier.
|
AcquisitionSettings |
getAcquisitionSettings()
Gets the acquisition settings that are associated with the parameters.
|
java.util.ArrayList<java.lang.String> |
getBandNames()
Gets the band names used.
|
int |
getChannelMap()
Gets the channel map that the user has selected.
|
java.lang.Object |
getChild(java.lang.Object node,
int child)
Implementation of getChild from the TreeModel interface.
|
int |
getChildCount(java.lang.Object node)
Implementation of getChildCount from the TreeModel interface.
|
java.lang.Class |
getColumnClass(int column)
Implementation of TreeModel.getColumnClass.
|
int |
getColumnCount()
Implementation of TreeModel.getColumnCount().
|
java.lang.String |
getColumnName(int column)
Implementation of TreeModel.getColumnName.
|
ConfigurationDialogSettings |
getDialogSettings()
Gets the dialog settings.
|
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
Implementation of TreeModel.getIndexOfChild()
|
javax.swing.tree.TreeNode[] |
getPathToRoot(javax.swing.tree.TreeNode aNode)
Builds the parents of node up to and including the root node,
where the original node is the last element in the returned array.
|
java.lang.Object |
getRoot()
Implementation of getRoot from the TreeModel interface.
|
java.util.Vector<java.lang.String> |
getSignalBandNames(java.lang.String configIdentifier)
Gets the signal band names in use for the specified target configuration identifier.
|
TargetConfiguration |
getTargetConfiguration(java.lang.String identifier)
Gets the target configuration identified by the string.
|
java.lang.String |
getTargetConfigurationNameForAssociatedBandNode(likelihoodDetectionModule.AssociatedBandNode n)
Gets the target configuration name for associated band node.
|
java.util.ArrayList<TargetConfiguration> |
getTargetConfigurations()
Returns the current state of the internal representation of the
configuration data as an ArrayList of TargetConfiguration objects.
|
java.lang.Object |
getValueAt(java.lang.Object node,
int column)
Implementation of TreeModel.getValueAt().
|
boolean |
isCellEditable(java.lang.Object node,
int column)
Implementation of TreeModel.isCellEditable.
|
boolean |
isLeaf(java.lang.Object node)
Implementation of isLeaf from the TreeModel interface.
|
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l)
Removes a listener for TreeModel events.
|
void |
setAcquisitionSettings(AcquisitionSettings acquisitionSettings) |
void |
setConfigurationDialogExpandedState(java.lang.String state)
Sets the configuration dialog expanded state.
|
void |
setConfigurationDialogSettings(ConfigurationDialogSettings settings)
Sets the configuration dialog settings that are to be preserved with the
LikelihoodDetectionParameters.
|
void |
setTargetConfigurations(java.util.ArrayList<TargetConfiguration> configs)
Sets the TargetConfigurations that are being managed by the model.
|
void |
setValueAt(java.lang.Object aValue,
java.lang.Object node,
int column)
Implementation of TreeModel.setValueAt().
|
java.util.ArrayList<java.lang.String> |
targetConfigurationNames()
Returns an ArrayList of the target configuration names.
|
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
Empty implementation of valueForPathChanged from the TreeModel
interface.
|
public TreeTableModel(AcquisitionSettings acquisitionSettings, int channelMap)
acquisitionSettings
- the acquisition settingschannelMap
- the channel mappublic AcquisitionSettings getAcquisitionSettings()
public void setAcquisitionSettings(AcquisitionSettings acquisitionSettings)
public int getChannelMap()
public java.util.ArrayList<java.lang.String> targetConfigurationNames()
public void createNewTargetConfiguration(java.lang.String identifier)
identifier
- the identifier stringpublic void deleteTargetConfiguration(java.lang.String identifier)
identifier
- the identifierpublic TargetConfiguration getTargetConfiguration(java.lang.String identifier)
identifier
- the identifierpublic void addTargetConfiguration(TargetConfiguration config)
config
- the configpublic java.util.ArrayList<java.lang.String> getBandNames()
public void createNewSignalBand(java.lang.String bandId, java.lang.String configId)
bandId
- The band's unique identifier.configId
- The target configuration's unique identifier.public void createNewGuardBand(java.lang.String bandId, java.lang.String configId)
bandId
- The guard band's unique identifier.configId
- The target configuration's unique identifier.public void deleteGuardBandFrom(java.lang.String bandName, java.lang.String configName)
bandName
- The guard band's unique identifier.configName
- The target configuration's unique identifier.public void deleteSignalBandFrom(java.lang.String bandName, java.lang.String configName)
bandName
- The signal band's unique identifier.configName
- The target configuration's unique identifier.public void setTargetConfigurations(java.util.ArrayList<TargetConfiguration> configs)
configs
- An ArrayList of TargetConfigurations.public javax.swing.tree.TreeNode[] getPathToRoot(javax.swing.tree.TreeNode aNode)
aNode
- the TreeNode to get the path forpublic void setConfigurationDialogSettings(ConfigurationDialogSettings settings)
settings
- The new configuration dialog settings.public ConfigurationDialogSettings getDialogSettings()
public void setConfigurationDialogExpandedState(java.lang.String state)
state
- the new configuration dialog expanded statepublic java.util.ArrayList<TargetConfiguration> getTargetConfigurations()
public java.util.Vector<java.lang.String> getSignalBandNames(java.lang.String configIdentifier)
configIdentifier
- The target configuration's unique identifier.public java.lang.String getTargetConfigurationNameForAssociatedBandNode(likelihoodDetectionModule.AssociatedBandNode n)
n
- The associated band node in the internal representation.public int getChildCount(java.lang.Object node)
getChildCount
in interface javax.swing.tree.TreeModel
node
- the nodeTreeModel
public java.lang.Object getChild(java.lang.Object node, int child)
getChild
in interface javax.swing.tree.TreeModel
node
- the nodechild
- the childTreeModel
public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
TreeModel
public boolean isLeaf(java.lang.Object node)
isLeaf
in interface javax.swing.tree.TreeModel
node
- the nodeTreeModel
public void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
valueForPathChanged
in interface javax.swing.tree.TreeModel
path
- the pathnewValue
- the new valueTreeModel
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
parent
- the parentchild
- the childTreeModel
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
addTreeModelListener
in interface javax.swing.tree.TreeModel
l
- the lpublic void removeTreeModelListener(javax.swing.event.TreeModelListener l)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
l
- the lpublic java.lang.Class getColumnClass(int column)
column
- the columnTreeModel
public boolean isCellEditable(java.lang.Object node, int column)
node
- the nodecolumn
- the columnTreeModel
public void setValueAt(java.lang.Object aValue, java.lang.Object node, int column)
aValue
- the a valuenode
- the nodecolumn
- the columnTreeModel
public int getColumnCount()
public java.lang.String getColumnName(int column)
column
- the columnTreeModel
public java.lang.Object getValueAt(java.lang.Object node, int column)
node
- the nodecolumn
- the columnTreeModel