public void setBounds(Point2D.Double anchor, Point2D.Double lead) { Point2D.Double oldAnchor = getStartPoint(); Point2D.Double oldLead = getEndPoint(); if (! oldAnchor.equals(anchor) || ! oldLead.equals(lead)) { willChange(); basicSetBounds(anchor, lead); changed(); fireUndoableEditHappened(new SetBoundsEdit(this, oldAnchor, oldLead, anchor, lead)); }
public final void setBounds(Rectangle2D.Double bounds) { setBounds(new Point2D.Double(bounds.x, bounds.y), new Point2D.Double(bounds.x + bounds.width, bounds.y + bounds.height));
    public void setBounds(Point2D.Double anchor, Point2D.Double lead) {        Point2D.Double oldAnchor = getStartPoint();        Point2D.Double oldLead = getEndPoint();        if (! oldAnchor.equals(anchor)        || ! oldLead.equals(lead)) {            willChange();            basicSetBounds(anchor, lead);            changed();            fireUndoableEditHappened(new SetBoundsEdit(this, oldAnchor, oldLead, anchor, lead));        }    }