g2D.drawRect(innerX, innerY, innerWidth, innerHeight);
}
public boolean innerBoxesOverlap(Box that) { // BUG: In scatter plot, topLeft is box-specific: fix.
// TopLeft doesn't matter because it is common to both boxes.
Position topLeft = this.topLeft!=null ? this.topLeft : new Position(0, 0);
//- if (this.getTopLeft()==null) return false; //D false
//- if (that.getTopLeft()==null) return false; //D false
Position rA = this.getPosition(topLeft);
Position rB = that.getPosition(topLeft);
Offset iA = this.getInnerRectangle();
Offset iB = that.getInnerRectangle();
return rA.x<(rB.x + iB.width) && (rA.x+iA.width)>rB.x && rA.y<(rB.y+iB.height) && (rA.y+iA.height)>rB.y;
}