Package org.openscience.cdk.renderer
Class BoundsCalculator
java.lang.Object
org.openscience.cdk.renderer.BoundsCalculator
Utility class for calculating the 2D bounding rectangles (bounds)
of various IChemObject subtypes - IChemModel, IReactionSet, IReaction,
IAtomContainerSet, and IAtomContainer.
- Author:
- maclean
- Source code:
- main
- Belongs to CDK module:
- renderbasic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Rectangle2D
calculateBounds
(IAtomContainer atomContainer) Calculate the bounding rectangle for an atom container.static Rectangle2D
calculateBounds
(IAtomContainerSet moleculeSet) Calculate the bounding rectangle for a molecule set.static Rectangle2D
calculateBounds
(IChemModel chemModel) Calculate the bounding rectangle for a chem model.static Rectangle2D
calculateBounds
(IReaction reaction) Calculate the bounding rectangle for a reaction.static Rectangle2D
calculateBounds
(IReactionSet reactionSet) Calculate the bounding rectangle for a reaction set.
-
Constructor Details
-
BoundsCalculator
public BoundsCalculator()
-
-
Method Details
-
calculateBounds
Calculate the bounding rectangle for a chem model.- Parameters:
chemModel
- the chem model to use- Returns:
- the bounding rectangle of the chem model
-
calculateBounds
Calculate the bounding rectangle for a reaction set.- Parameters:
reactionSet
- the reaction set to use- Returns:
- the bounding rectangle of the reaction set
-
calculateBounds
Calculate the bounding rectangle for a reaction.- Parameters:
reaction
- the reaction to use- Returns:
- the bounding rectangle of the reaction
-
calculateBounds
Calculate the bounding rectangle for a molecule set.- Parameters:
moleculeSet
- the molecule set to use- Returns:
- the bounding rectangle of the molecule set
-
calculateBounds
Calculate the bounding rectangle for an atom container.- Parameters:
atomContainer
- the atom container to use- Returns:
- the bounding rectangle of the atom container
-