Package tech.molecules.leet.clustering
Class ClusterAppModel
- java.lang.Object
-
- tech.molecules.leet.clustering.ClusterAppModel
-
- All Implemented Interfaces:
NClassification,NDataProvider,NDataProvider.ClassificationProvider,NDataProvider.NClassificationProvider,NDataProvider.StructureDataProvider
public class ClusterAppModel extends Object implements NDataProvider.StructureDataProvider, NClassification, NDataProvider.NClassificationProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classClusterAppModel.AddMembersToClusterActionclassClusterAppModel.Clusterstatic interfaceClusterAppModel.ClusterAppModelListenerstatic classClusterAppModel.ClusterHandlingExceptionclassClusterAppModel.ClusterListModelclassClusterAppModel.ClusterTableModelclassClusterAppModel.CreateClusterActionclassClusterAppModel.CreateClusterFromCellActionclassClusterAppModel.CreateClusterFromSelectedCellsAction-
Nested classes/interfaces inherited from interface tech.molecules.leet.table.NClassification
NClassification.ClassificationListener, NClassification.ClassificationTableModel, NClassification.NClass, NClassification.NClassWithTimestamp
-
Nested classes/interfaces inherited from interface tech.molecules.leet.table.NDataProvider
NDataProvider.ClassificationDataProvider, NDataProvider.ClassificationProvider<C extends NClassification>, NDataProvider.MultiNumericDataProvider, NDataProvider.NClassificationProvider<C extends NClassification>, NDataProvider.NMultiNumericDataProvider, NDataProvider.NStringDataProvider, NDataProvider.StringDataProvider, NDataProvider.StructureDataProvider, NDataProvider.StructureDataProviderFromColumn<U>, NDataProvider.StructureWithID
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLUSTER_FLAG_DEFINING
-
Constructor Summary
Constructors Constructor Description ClusterAppModel(NexusTableModel ntm, NStructureDataProvider dsp)
-
Method Summary
-
-
-
Field Detail
-
CLUSTER_FLAG_DEFINING
public static final String CLUSTER_FLAG_DEFINING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClusterAppModel
public ClusterAppModel(NexusTableModel ntm, NStructureDataProvider dsp)
-
-
Method Detail
-
getStructureData
public NDataProvider.StructureWithID getStructureData(String rowid)
- Specified by:
getStructureDatain interfaceNDataProvider.StructureDataProvider
-
getClassification
public NClassification getClassification()
- Specified by:
getClassificationin interfaceNDataProvider.ClassificationProvider
-
getClasses
public List<NClassification.NClass> getClasses()
- Specified by:
getClassesin interfaceNClassification
-
addClass
public void addClass(NClassification.NClass ci)
- Specified by:
addClassin interfaceNClassification
-
removeClass
public void removeClass(NClassification.NClass ci)
- Specified by:
removeClassin interfaceNClassification
-
addClassificationListener
public void addClassificationListener(NClassification.ClassificationListener li)
- Specified by:
addClassificationListenerin interfaceNClassification
-
removeClassificationListener
public void removeClassificationListener(NClassification.ClassificationListener li)
- Specified by:
removeClassificationListenerin interfaceNClassification
-
getClassesForRow
public List<NClassification.NClass> getClassesForRow(String id)
- Specified by:
getClassesForRowin interfaceNClassification
-
init
public void init(NexusTableModel ntm)
-
getStructureProvider
public NStructureDataProvider getStructureProvider()
-
getClassificationColumn
public ClassificationColumn getClassificationColumn()
-
getNtm
public NexusTableModel getNtm()
-
getClusters
public List<ClusterAppModel.Cluster> getClusters()
-
createCluster
public ClusterAppModel.Cluster createCluster(String name, Color color, List<String> ids) throws ClusterAppModel.ClusterHandlingException
-
getClusterByName
public ClusterAppModel.Cluster getClusterByName(String c)
-
addClusterAppModelListener
public void addClusterAppModelListener(ClusterAppModel.ClusterAppModelListener li)
-
removeClusterAppModelListener
public void removeClusterAppModelListener(ClusterAppModel.ClusterAppModelListener li)
-
getClusterListModel
public ClusterAppModel.ClusterListModel getClusterListModel()
-
getClusterTableModel
public ClusterAppModel.ClusterTableModel getClusterTableModel()
-
-