/** * Returns the shape coordinates as a string. * * @return The shape coordinates (never {@code null}). */ public String getShapeCoords() { if (this.area instanceof Rectangle2D) { return getRectCoords((Rectangle2D) this.area); } else { return getPolyCoords(this.area); } }
/** * Returns the shape coordinates as a string. * * @return The shape coordinates (never <code>null</code>). */ public String getShapeCoords() { if (this.area instanceof Rectangle2D) { return getRectCoords((Rectangle2D) this.area); } else { return getPolyCoords(this.area); } }