/** * Sets the insets. * * @param i The new insets. */ public void set(Insets2D i) { set(i.getTop(), i.getLeft(), i.getBottom(), i.getRight()); }
/** * Adds the specified insets to the current insets. * * @param top The top insets. * @param left The left insets. * @param bottom The bottom insets. * @param right The right insets. */ public void add(double top, double left, double bottom, double right) { set( getTop() + top, getLeft() + left, getBottom() + bottom, getRight() + right ); } /**
/** * Subtracts the specified insets from the current insets. * * @param top The top insets. * @param left The left insets. * @param bottom The bottom insets. * @param right The right insets. */ public void subtract(double top, double left, double bottom, double right) { set( getTop() - top, getLeft() - left, getBottom() - bottom, getRight() - right ); } /**
/** * Adds the specified insets to the current insets. * * @param i The insets to be added. */ public void add(Insets2D i) { set( getTop() + i.getTop(), getLeft() + i.getLeft(), getBottom() + i.getBottom(), getRight() + i.getRight() ); }
/** * Subtracts the specified insets from the current insets. * * @param i The insets to be subtracted. */ public void subtract(Insets2D i) { set( getTop() - i.getTop(), getLeft() - i.getLeft(), getBottom() - i.getBottom(), getRight() - i.getRight() ); } /**