public HashMap<Direction, Point> getIntersectionPoints() { HashMap<Direction, Point> ip = new HashMap<Direction, Point>(); ip.put(Direction.NE, new Point(connectorStart.getAbsoluteLeft(), connectorStart.getAbsoluteTop())); ip.put(Direction.SE, new Point(connectorEnd.getAbsoluteLeft(), connectorEnd.getAbsoluteTop())); return ip; }
public void setRelativeX(float x) { invisibleLinearPath.setX(x); connectorStart.setRelativeX(x); connectorEnd.setRelativeX(x+100); refresh(); }
public void setRelativeY(float y) { invisibleLinearPath.setY(y); connectorStart.setRelativeY(y); connectorEnd.setRelativeY(y); refresh(); }
getConnectorEndPoint().setPreviousPoint(getConnectorStartPoint()); this.connectorPoints.add(getConnectorStartPoint()); this.connectorPoints.add(getConnectorEndPoint());
this.getConnectorEndPoint().setConnectedToMagnet(targetClosestMagnet); target.addIncommingConnector(this); this.setTarget(target);