Permalink
Browse files

Added missing JavaDoc or inherit it

  • Loading branch information...
1 parent b51a6fa commit 6d29c035ea74c417a810dd6bced4516561c4b430 @egonw committed with Mar 22, 2012
@@ -291,7 +291,7 @@ public void paint(IChemModel chemModel,
}
/**
- * Repaint using the cached diagram
+ * Repaint using the cached diagram.
*
* @param drawVisitor the wrapper for the graphics object that draws
*/
@@ -336,9 +336,9 @@ public Rectangle calculateDiagramBounds(IChemModel model) {
* Given a bond length for a model, calculate the scale that will transform
* this length to the on screen bond length in RendererModel.
*
- * @param modelBondLength
- * @param reset
- * @return
+ * @param modelBondLength the wanted model bond length in screen length
+ * @return returns the scale that causes the drawn bond lengths in pixels to match
+ * the given model bond length
*/
public double calculateScaleForBondLength(double modelBondLength) {
if (Double.isNaN(modelBondLength) || modelBondLength == 0) {
@@ -349,6 +349,8 @@ public double calculateScaleForBondLength(double modelBondLength) {
}
}
+ /** {@inheritDoc} */
+ @Override
public List<IGenerator<IChemModel>> getGenerators(){
return null;
}
@@ -279,9 +279,9 @@ public Rectangle calculateDiagramBounds(IMoleculeSet moleculeSet) {
* Given a bond length for a model, calculate the scale that will transform
* this length to the on screen bond length in RendererModel.
*
- * @param modelBondLength
- * @param reset
- * @return
+ * @param modelBondLength the wanted model bond length in screen length
+ * @return returns the scale that causes the drawn bond lengths in pixels to match
+ * the given model bond length
*/
public double calculateScaleForBondLength(double modelBondLength) {
if (Double.isNaN(modelBondLength) || modelBondLength == 0) {
@@ -292,6 +292,8 @@ public double calculateScaleForBondLength(double modelBondLength) {
}
}
+ /** {@inheritDoc} */
+ @Override
public List<IGenerator<IMoleculeSet>> getGenerators() {
return new ArrayList<IGenerator<IMoleculeSet>>(generators);
}
@@ -218,9 +218,9 @@ public Rectangle calculateDiagramBounds(IReaction reaction) {
* Given a bond length for a model, calculate the scale that will transform
* this length to the on screen bond length in RendererModel.
*
- * @param modelBondLength
- * @param reset
- * @return
+ * @param modelBondLength the wanted model bond length in screen length
+ * @return returns the scale that causes the drawn bond lengths in pixels to match
+ * the given model bond length
*/
public double calculateScaleForBondLength(double modelBondLength) {
if (Double.isNaN(modelBondLength) || modelBondLength == 0) {
@@ -244,6 +244,8 @@ public IRenderingElement generateDiagram(IReaction reaction) {
return diagram;
}
+ /** {@inheritDoc} */
+ @Override
public List<IGenerator<IReaction>> getGenerators(){
return new ArrayList<IGenerator<IReaction>>(generators);
}
@@ -233,9 +233,9 @@ public Rectangle calculateDiagramBounds(IReactionSet reactionSet) {
* Given a bond length for a model, calculate the scale that will transform
* this length to the on screen bond length in RendererModel.
*
- * @param modelBondLength
- * @param reset
- * @return
+ * @param modelBondLength the wanted model bond length in screen length
+ * @return returns the scale that causes the drawn bond lengths in pixels to match
+ * the given model bond length
*/
public double calculateScaleForBondLength(double modelBondLength) {
if (Double.isNaN(modelBondLength) || modelBondLength == 0) {
@@ -246,6 +246,8 @@ public double calculateScaleForBondLength(double modelBondLength) {
}
}
+ /** {@inheritDoc} */
+ @Override
public List<IGenerator<IReactionSet>> getGenerators(){
// return reactionRenderer.getReactionGenerators();
return null;

0 comments on commit 6d29c03

Please sign in to comment.