Skip to content
Snippets Groups Projects
Commit d409c879 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

javadoc update + exception errors improved

parent f2eb5642
No related branches found
No related tags found
1 merge request!44Resolve "semantic zoom"
...@@ -767,7 +767,7 @@ public abstract class AbstractImageGenerator { ...@@ -767,7 +767,7 @@ public abstract class AbstractImageGenerator {
} else { } else {
// if a child is not a compartment or a species then we have a // if a child is not a compartment or a species then we have a
// problem // problem
throw new DrawingException(eu.getElementTag(compartment) + "Unknown Element type"); throw new DrawingException(eu.getElementTag(child) + "Unknown Element type");
} }
} }
...@@ -788,12 +788,6 @@ public abstract class AbstractImageGenerator { ...@@ -788,12 +788,6 @@ public abstract class AbstractImageGenerator {
* thrown when there was a problem with drawing a {@link Species} * thrown when there was a problem with drawing a {@link Species}
*/ */
protected void drawSpecies(final Species species) throws DrawingException { protected void drawSpecies(final Species species) throws DrawingException {
/**
* Last conditions in this 'ifs' provides the certainty of visibility of
* most bottom Complexes.
*/
if (!cross(species.getBorder())) { if (!cross(species.getBorder())) {
return; return;
} }
...@@ -846,6 +840,7 @@ public abstract class AbstractImageGenerator { ...@@ -846,6 +840,7 @@ public abstract class AbstractImageGenerator {
* @param reaction * @param reaction
* object to be drawn * object to be drawn
* @throws DrawingException * @throws DrawingException
* thrown when there was a problem with drawing a {@link Reaction}
*/ */
protected void drawReaction(final Reaction reaction) throws DrawingException { protected void drawReaction(final Reaction reaction) throws DrawingException {
if (!cross(reaction.getLines())) { if (!cross(reaction.getLines())) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment