ConnectionFigure newPrototype) {
super(newDrawingEditor, newPrototype);
}
public Figure implyReservoir(int x, int y, Drawing drawing) {
Figure target = findConnectableFigure(x, y, drawing);
if (target == null) {
target = new ReservoirFigure();
target.displayBox(new Point(x - 15, y - 15),
new Point(x + 15, y + 15));
view().add(target);
}
if (target.canConnect()
&& ((target instanceof ReservoirFigure)
|| ((target instanceof ModelElementFigure)
&& (((ModelElementFigure) target).getModelElement()
instanceof org.nlogo.sdm.Stock)))) {
return target;