if (objectInRange == null && reactionSet != null
&& reactionSet.getReactionCount() > 0) {
for(int i=0;i<reactionSet.getReactionCount();i++){
Rectangle reactionbounds =
renderer.calculateDiagramBounds(reactionSet.getReaction(i));
if (reactionbounds.contains(mouseCoords.x, mouseCoords.y))
objectInRange = reactionSet.getReaction(i);
}
}