chemaxon.struc
Class SelectionMolecule

java.lang.Object
  extended bychemaxon.struc.CGraph
      extended bychemaxon.struc.MoleculeGraph
          extended bychemaxon.struc.SelectionMolecule
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, StereoConstants

public class SelectionMolecule
extends MoleculeGraph

A selection object derived from Molecule's ancestor.

Since:
3.0
Version:
3.3, 11/04/2003
Author:
Peter Csizmadia
See Also:
Serialized Form

Field Summary
 
Fields inherited from class chemaxon.struc.MoleculeGraph
DIM_MASK, flags, isMultiChiral, orix, oriy, oriz, RMCLEANUP_STEREO
 
Fields inherited from class chemaxon.struc.CGraph
btab, ctab, edgeCount, edges, fragIds, grinv, grinvCC, INITIAL_CAPACITY, nFrags, nGrinv, nodeCount, nodes, parentGraph, RMCLEANUP_ALL, RMCLEANUP_EDGES, RMCLEANUP_NONE, sssr, superGraph
 
Fields inherited from interface chemaxon.struc.StereoConstants
ATOMSTEREO_EITHER, ATOMSTEREO_MASK, ATOMSTEREO_NONE, ATOMSTEREO_SPECIFIC, CHIRALITY_MASK, CHIRALITY_R, CHIRALITY_S, CHIRALITYSUPPORT_ALL, CHIRALITYSUPPORT_NONE, CHIRALITYSUPPORT_SELECTED, CIS, CTUMASK, CTUNKNOWN, CTUNSPEC, DBS_ALL, DBS_MARKED, DBS_NONE, PARITY_EITHER, PARITY_EVEN, PARITY_MASK, PARITY_ODD, PARITY_UNSPEC, STGRP_ABS, STGRP_AND, STGRP_NONE, STGRP_OR, TRANS
 
Constructor Summary
SelectionMolecule()
           
 
Method Summary
 void add(CEdge edge)
          Adds an edge to the graph.
protected  void addEdge0(CEdge edge)
          Adds an edge.
protected  void addNode0(CNode node)
          Adds a node.
 java.lang.Object clone()
          Create a clone of the selection.
 void clonecopy(CGraph graph)
          Copies the clones of nodes and edges of this graph to another one.
protected  void fuse0(CGraph graph)
          Adds those nodes and edges of a graph to this one that are not already elements.
protected  boolean isRealNodeParent()
          Selection molecules are not real node parents.
 void removeEdge(CEdge edge)
          Removes an edge by reference.
 void removeEdge(int i)
          Removes an edge from the graph.
 void removeNode(CNode node)
          Removes a node and its edges.
 void removeNode(int i)
          Removes a node and its edges from the graph.
protected  void setEdge0(int i, CEdge edge)
          Sets the edge at the specified index.
protected  void setNode0(int i, CNode node)
          Sets the node at the specified index.
 void swapNodes(int i, int j)
          Swap two nodes.
 void transform(CTransform3D t)
          Apply a transformation matrix to the atomic coordinates.
 
Methods inherited from class chemaxon.struc.MoleculeGraph
adjustMultiChiralFlag, aromatize, bondlength, calcCenter, calcCenter, calcDehydrogenizedGrinv, calcHeight, calcOutRectCenter, calcWidth, canBeCT, clean, clear, clearForImport, clonelesscopy, contains, createBHtab, createCHtab, createDehydrogenizedReadOnlyGraph, getAromrings, getAromrings, getAtom, getAtomArray, getAtomCount, getBond, getBondCount, getChirality, getDesiredLength, getDesiredLength, getDim, getDocument, getFormula, getGraphUnion, getGrinv, getGrinv, getImplicitHcount, getLocation, getMass, getNonAromrings, getNonAromrings, getParity, getPoints, getSSSRBondSet, getStereo2, getStereo2, getStereo2, getStereo2, getStereo2, getStereo2, getStereo2, hasImplicitH, hydrogenize, implicitizeHydrogens, isAbsStereo, isAtom, isBond, isMultiChiral, isRingBond, makeItSimilar, moveTo, newInstance, qpropCheck, removeNode, removeNode, setAbsStereo, setChirality, setDim, setLocation, setParity, setParity, setSetSeqs, stereoClean, transform, valenceCheck, valenceCheck
 
Methods inherited from class chemaxon.struc.CGraph
add, addEdgeWithoutChangingIt, addNodeWithoutChangingIt, contains, findFrag, findFrags, fuse, getBtab, getCtab, getEdge, getEdgeCount, getEdgeVector, getForefather, getFragCount, getFragIds, getGrinv, getGrinvCC, getLock, getNode, getNodeCount, getNodeVector, getParent, getSSSR, indexOf, indexOf, isEmpty, mergeNodes, pack, regenEdges, removeAll, removeAllEdges, removeEdge, removeEdge, resetCtab, resetGrinvInParents, setEdge, setNode, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectionMolecule

public SelectionMolecule()
Method Detail

isRealNodeParent

protected boolean isRealNodeParent()
Selection molecules are not real node parents. However, in some special cases a selection molecule can be a node parent.

Overrides:
isRealNodeParent in class CGraph
Returns:
false
Since:
3.0

setEdge0

protected void setEdge0(int i,
                        CEdge edge)
Sets the edge at the specified index.

Parameters:
i - edge index
edge - the edge reference

add

public void add(CEdge edge)
Adds an edge to the graph. If the graph is a superGraph, the edge is also added to its endpoints (two CNode objects).

Overrides:
add in class CGraph
Parameters:
edge - the edge object

swapNodes

public void swapNodes(int i,
                      int j)
Swap two nodes.

Parameters:
i - index of the first node
j - index of the second node
Since:
3.3, 11/04/2003

removeNode

public void removeNode(CNode node)
Removes a node and its edges.

Overrides:
removeNode in class CGraph
Parameters:
node - the node

removeNode

public void removeNode(int i)
Removes a node and its edges from the graph.

Overrides:
removeNode in class CGraph
Parameters:
i - the node index

removeEdge

public void removeEdge(CEdge edge)
Removes an edge by reference.

Overrides:
removeEdge in class CGraph
Parameters:
edge - the edge

removeEdge

public void removeEdge(int i)
Removes an edge from the graph.

Overrides:
removeEdge in class CGraph
Parameters:
i - the edge index

addNode0

protected void addNode0(CNode node)
Adds a node.

Overrides:
addNode0 in class CGraph
Parameters:
node - the node reference

setNode0

protected void setNode0(int i,
                        CNode node)
Sets the node at the specified index.

Overrides:
setNode0 in class CGraph
Parameters:
i - node index
node - new node reference

addEdge0

protected void addEdge0(CEdge edge)
Adds an edge.

Overrides:
addEdge0 in class CGraph
Parameters:
edge - the edge reference

fuse0

protected void fuse0(CGraph graph)
Adds those nodes and edges of a graph to this one that are not already elements.

Overrides:
fuse0 in class CGraph
Parameters:
graph - the graph

transform

public void transform(CTransform3D t)
Apply a transformation matrix to the atomic coordinates.

Overrides:
transform in class MoleculeGraph
Parameters:
t - the transformation matrix

clonecopy

public void clonecopy(CGraph graph)
Copies the clones of nodes and edges of this graph to another one.

Overrides:
clonecopy in class MoleculeGraph
Parameters:
graph - the target graph

clone

public java.lang.Object clone()
Create a clone of the selection.

Overrides:
clone in class MoleculeGraph
Returns:
the clone