private Line makeLine(Element lineNode, ClassGraphics graphics) { Lineprops lp = getLineProps(lineNode); int w = graphics.getBoundWidth(); int h = graphics.getBoundHeight(); FixedCoords fc1 = getFixedCoords(lineNode, w, h, "1"); FixedCoords fc2 = getFixedCoords(lineNode, w, h, "2"); Line newLine = new Line(fc1.x, fc1.y, fc2.x, fc2.y, getColor(lineNode), lp.strokeWidth, lp.lineType); newLine.setFixedX1(fc1.fx); newLine.setFixedX2(fc2.fx); newLine.setFixedY1(fc1.fy); newLine.setFixedY2(fc2.fy); return newLine; }