Tabnine Logo
AtomContainerSet.notifyChanged
Code IndexAdd Tabnine to your IDE (free)

How to use
notifyChanged
method
in
org.openscience.cdk.AtomContainerSet

Best Java code snippets using org.openscience.cdk.AtomContainerSet.notifyChanged (Showing top 20 results out of 315)

origin: cdk/cdk

/**
 *  Called by objects to which this object has
 *  registered as a listener.
 *
 * @param  event  A change event pointing to the source of the change
 */
@Override
public void stateChanged(IChemObjectChangeEvent event) {
  notifyChanged(event);
}
origin: org.openscience.cdk/cdk-data

/**
 *  Called by objects to which this object has
 *  registered as a listener.
 *
 * @param  event  A change event pointing to the source of the change
 */
@Override
public void stateChanged(IChemObjectChangeEvent event) {
  notifyChanged(event);
}
origin: org.openscience.cdk/cdk-data

/**
 * Sets the coefficient of a AtomContainer to a given value.
 *
 * @param  position    The position of the AtomContainer for which the multiplier is
 *                    set in [0,..]
 * @param  multiplier  The new multiplier for the AtomContatiner at
 *                    <code>position</code>
 * @see                #getMultiplier(int)
 */
@Override
public void setMultiplier(int position, Double multiplier) {
  multipliers[position] = multiplier;
  notifyChanged();
}
origin: cdk/cdk

/**
 * Sets the coefficient of a AtomContainer to a given value.
 *
 * @param  position    The position of the AtomContainer for which the multiplier is
 *                    set in [0,..]
 * @param  multiplier  The new multiplier for the AtomContatiner at
 *                    <code>position</code>
 * @see                #getMultiplier(int)
 */
@Override
public void setMultiplier(int position, Double multiplier) {
  multipliers[position] = multiplier;
  notifyChanged();
}
origin: cdk/cdk

/**
 * Sets the coefficient of a AtomContainer to a given value.
 *
 * @param  container   The AtomContainer for which the multiplier is set
 * @param  multiplier  The new multiplier for the AtomContatiner
 * @return             true if multiplier has been set
 * @see                #getMultiplier(IAtomContainer)
 */
@Override
public boolean setMultiplier(IAtomContainer container, Double multiplier) {
  for (int i = 0; i < atomContainers.length; i++) {
    if (atomContainers[i] == container) {
      multipliers[i] = multiplier;
      notifyChanged();
      return true;
    }
  }
  return false;
}
origin: org.openscience.cdk/cdk-data

/**
 * Sets the coefficient of a AtomContainer to a given value.
 *
 * @param  container   The AtomContainer for which the multiplier is set
 * @param  multiplier  The new multiplier for the AtomContatiner
 * @return             true if multiplier has been set
 * @see                #getMultiplier(IAtomContainer)
 */
@Override
public boolean setMultiplier(IAtomContainer container, Double multiplier) {
  for (int i = 0; i < atomContainers.length; i++) {
    if (atomContainers[i] == container) {
      multipliers[i] = multiplier;
      notifyChanged();
      return true;
    }
  }
  return false;
}
origin: cdk/cdk

/**
 * Sets the multipliers of the AtomContainers.
 *
 * @param  newMultipliers  The new multipliers for the AtomContainers in this set
 * @return                 true if multipliers have been set.
 * @see                    #getMultipliers
 */
@Override
public boolean setMultipliers(Double[] newMultipliers) {
  if (newMultipliers.length == atomContainerCount) {
    if (multipliers == null) {
      multipliers = new Double[atomContainerCount];
    }
    System.arraycopy(newMultipliers, 0, multipliers, 0, atomContainerCount);
    notifyChanged();
    return true;
  }
  return false;
}
origin: org.openscience.cdk/cdk-data

/**
 * Sets the multipliers of the AtomContainers.
 *
 * @param  newMultipliers  The new multipliers for the AtomContainers in this set
 * @return                 true if multipliers have been set.
 * @see                    #getMultipliers
 */
@Override
public boolean setMultipliers(Double[] newMultipliers) {
  if (newMultipliers.length == atomContainerCount) {
    if (multipliers == null) {
      multipliers = new Double[atomContainerCount];
    }
    System.arraycopy(newMultipliers, 0, multipliers, 0, atomContainerCount);
    notifyChanged();
    return true;
  }
  return false;
}
origin: cdk/cdk

/** {@inheritDoc} */
@Override
public void notifyChanged(IChemObjectChangeEvent evt) {
  logger.debug("Notifying changed event: ", evt);
  super.notifyChanged(evt);
}
origin: cdk/cdk

/** {@inheritDoc} */
@Override
public void notifyChanged() {
  logger.debug("Notifying changed");
  super.notifyChanged();
}
origin: cdk/cdk

/** {@inheritDoc} */
@Override
public void notifyChanged() {
  logger.debug("Notifying changed");
  super.notifyChanged();
}
origin: cdk/cdk

/** {@inheritDoc} */
@Override
public void notifyChanged(IChemObjectChangeEvent evt) {
  logger.debug("Notifying changed event: ", evt);
  super.notifyChanged(evt);
}
origin: cdk/cdk

/**
 * Removes all AtomContainer from this container.
 */
@Override
public void removeAllAtomContainers() {
  for (int pos = atomContainerCount - 1; pos >= 0; pos--) {
    atomContainers[pos].removeListener(this);
    multipliers[pos] = 0.0;
    atomContainers[pos] = null;
  }
  atomContainerCount = 0;
  notifyChanged();
}
origin: org.openscience.cdk/cdk-data

/**
 * Removes all AtomContainer from this container.
 */
@Override
public void removeAllAtomContainers() {
  for (int pos = atomContainerCount - 1; pos >= 0; pos--) {
    atomContainers[pos].removeListener(this);
    multipliers[pos] = 0.0;
    atomContainers[pos] = null;
  }
  atomContainerCount = 0;
  notifyChanged();
}
origin: cdk/cdk

/**
 * Removes an AtomContainer from this container.
 *
 * @param  pos  The position of the AtomContainer to be removed from this container
 */
@Override
public void removeAtomContainer(int pos) {
  atomContainers[pos].removeListener(this);
  for (int i = pos; i < atomContainerCount - 1; i++) {
    atomContainers[i] = atomContainers[i + 1];
    multipliers[i] = multipliers[i + 1];
  }
  atomContainers[atomContainerCount - 1] = null;
  atomContainerCount--;
  notifyChanged();
}
origin: org.openscience.cdk/cdk-data

/**
 * Removes an AtomContainer from this container.
 *
 * @param  pos  The position of the AtomContainer to be removed from this container
 */
@Override
public void removeAtomContainer(int pos) {
  atomContainers[pos].removeListener(this);
  for (int i = pos; i < atomContainerCount - 1; i++) {
    atomContainers[i] = atomContainers[i + 1];
    multipliers[i] = multipliers[i + 1];
  }
  atomContainers[atomContainerCount - 1] = null;
  atomContainerCount--;
  notifyChanged();
}
origin: cdk/cdk

/**
 * Replace the AtomContainer at a specific position (array has to be large enough).
 *
 * @param position   position in array for AtomContainer
 * @param container  the replacement AtomContainer
 */
@Override
public void replaceAtomContainer(int position, IAtomContainer container) {
  IAtomContainer old = atomContainers[position];
  old.removeListener(this);
  atomContainers[position] = container;
  container.addListener(this);
  notifyChanged();
}
origin: org.openscience.cdk/cdk-data

/**
 * Replace the AtomContainer at a specific position (array has to be large enough).
 *
 * @param position   position in array for AtomContainer
 * @param container  the replacement AtomContainer
 */
@Override
public void replaceAtomContainer(int position, IAtomContainer container) {
  IAtomContainer old = atomContainers[position];
  old.removeListener(this);
  atomContainers[position] = container;
  container.addListener(this);
  notifyChanged();
}
origin: cdk/cdk

/**
 * Adds an atomContainer to this container with the given
 * multiplier.
 *
 * @param  atomContainer  The atomContainer to be added to this container
 * @param  multiplier     The multiplier of this atomContainer
 */
@Override
public void addAtomContainer(IAtomContainer atomContainer, double multiplier) {
  if (atomContainerCount + 1 >= atomContainers.length) {
    growAtomContainerArray();
  }
  atomContainer.addListener(this);
  atomContainers[atomContainerCount] = atomContainer;
  multipliers[atomContainerCount] = multiplier;
  atomContainerCount++;
  notifyChanged();
}
origin: org.openscience.cdk/cdk-data

/**
 * Adds an atomContainer to this container with the given
 * multiplier.
 *
 * @param  atomContainer  The atomContainer to be added to this container
 * @param  multiplier     The multiplier of this atomContainer
 */
@Override
public void addAtomContainer(IAtomContainer atomContainer, double multiplier) {
  if (atomContainerCount + 1 >= atomContainers.length) {
    growAtomContainerArray();
  }
  atomContainer.addListener(this);
  atomContainers[atomContainerCount] = atomContainer;
  multipliers[atomContainerCount] = multiplier;
  atomContainerCount++;
  notifyChanged();
}
org.openscience.cdkAtomContainerSetnotifyChanged

Popular methods of AtomContainerSet

  • <init>
    Constructs an empty AtomContainerSet.
  • addAtomContainer
    Adds an atomContainer to this container with the given multiplier.
  • clone
    Clones this AtomContainerSet and its content.
  • getAtomContainerCount
    Returns the number of AtomContainers in this Container.
  • getMultiplier
    Returns the multiplier of the given AtomContainer.
  • removeAtomContainer
    Removes an AtomContainer from this container.
  • setMultiplier
    Sets the coefficient of a AtomContainer to a given value.
  • add
    Adds all atomContainers in the AtomContainerSet to this container.
  • addListener
  • addProperties
  • atomContainers
    Get an iterator for this AtomContainerSet.
  • getAtomContainer
    Returns the AtomContainer at position number in the container.
  • atomContainers,
  • getAtomContainer,
  • getFlag,
  • getFlags,
  • getID,
  • getListenerCount,
  • getMultipliers,
  • getProperties,
  • getProperty

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now