/** * @param v the vertex whose coordinates are to be offset * @param xOffset the change to apply to this vertex's x coordinate * @param yOffset the change to apply to this vertex's y coordinate */ protected void offsetVertex(V v, double xOffset, double yOffset) { Point2D c = getCoordinates(v); c.setLocation(c.getX()+xOffset, c.getY()+yOffset); setLocation(v, c); }
/** * @param v * @param xOffset * @param yOffset */ protected void offsetVertex(V v, double xOffset, double yOffset) { Point2D c = getCoordinates(v); c.setLocation(c.getX()+xOffset, c.getY()+yOffset); setLocation(v, c); }