/** * Adds horizontal stretch interval. * * @param interval horizontal stretch interval to add */ public void addHorizontalStretch(final NinePatchInterval interval) { this.horizontalStretch.add(interval); updateCachedWidthData(); }
/** * Sets list of horizontal stretch intervals. * * @param horizontalStretch list of horizontal stretch intervals */ public void setHorizontalStretch(final List<NinePatchInterval> horizontalStretch) { this.horizontalStretch = horizontalStretch; updateCachedWidthData(); }