return Strings.get("circuitPort");
}
@Override
public Element toSvgElement(Document doc) {
Location loc = getLocation();
Location pinLoc = pin.getLocation();
Element ret = doc.createElement("circ-port");
int r = isInput() ? INPUT_RADIUS : OUTPUT_RADIUS;
ret.setAttribute("x", "" + (loc.getX() - r));
ret.setAttribute("y", "" + (loc.getY() - r));
ret.setAttribute("width", "" + 2 * r);
ret.setAttribute("height", "" + 2 * r);
ret.setAttribute("pin", "" + pinLoc.getX() + "," + pinLoc.getY());
return ret;
}