/** * Sets the lower left y-coordinate. * * @param lly the new value */ @Override public void setBottom(final float lly) { throwReadOnlyError(); }
/** * @return String version of the most important rectangle properties * @see java.lang.Object#toString() */ @Override public String toString() { StringBuffer buf = new StringBuffer("RectangleReadOnly: "); buf.append(getWidth()); buf.append('x'); buf.append(getHeight()); buf.append(" (rot: "); buf.append(rotation); buf.append(" degrees)"); return buf.toString(); } }
int width=paper.getWidth(); int height=paper.getHeight(); Rectangle pageSize=new RectangleReadOnly(width,height); if(paper.getOrientation().equals(Orientation.landscape)){ pageSize=pageSize.rotate();
/** * @return String version of the most important rectangle properties * @see java.lang.Object#toString() */ @Override public String toString() { StringBuffer buf = new StringBuffer("RectangleReadOnly: "); buf.append(getWidth()); buf.append('x'); buf.append(getHeight()); buf.append(" (rot: "); buf.append(rotation); buf.append(" degrees)"); return buf.toString(); } }
document = new Document(new RectangleReadOnly(image.getScaledWidth(), image.getScaledHeight()));
/** * Sets the width of the right border * * @param borderWidthRight a width */ @Override public void setBorderWidthRight(final float borderWidthRight) { throwReadOnlyError(); }
int width=paper.getWidth(); int height=paper.getHeight(); Rectangle pageSize=new RectangleReadOnly(width,height); if(paper.getOrientation().equals(Orientation.landscape)){ pageSize=pageSize.rotate();
/** * Sets the backgroundcolor of the rectangle. * * @param value the new value */ @Override public void setBackgroundColor(final BaseColor value) { throwReadOnlyError(); }
/** * Sets a parameter indicating if the rectangle has variable borders * * @param useVariableBorders indication if the rectangle has variable borders */ @Override public void setUseVariableBorders(final boolean useVariableBorders) { throwReadOnlyError(); }
/** * Sets the borderwidth of the table. * * @param borderWidth the new value */ @Override public void setBorderWidth(final float borderWidth) { throwReadOnlyError(); }
/** * Sets the color of the border. * * @param borderColor a <CODE>BaseColor</CODE> */ @Override public void setBorderColor(final BaseColor borderColor) { throwReadOnlyError(); }
/** * Sets the color of the left border. * * @param borderColorLeft a <CODE>BaseColor</CODE> */ @Override public void setBorderColorLeft(final BaseColor borderColorLeft) { throwReadOnlyError(); }
/** * Sets the rotation of the rectangle. Valid values are 0, 90, 180, and 270. * @param rotation the new rotation value * @since iText 5.0.6 */ @Override public void setRotation(final int rotation) { throwReadOnlyError(); }
/** * Sets the upper right y-coordinate. * * @param ury the new value */ @Override public void setTop(final float ury) { throwReadOnlyError(); }
/** * Enables the border on the specified side. * * @param side the side to enable. * One of <CODE>LEFT, RIGHT, TOP, BOTTOM</CODE> */ @Override public void enableBorderSide(final int side) { throwReadOnlyError(); }
/** * Disables the border on the specified side. * * @param side the side to disable. * One of <CODE>LEFT, RIGHT, TOP, BOTTOM</CODE> */ @Override public void disableBorderSide(final int side) { throwReadOnlyError(); }
/** * Sets the color of the border. * * @param borderColor a <CODE>BaseColor</CODE> */ @Override public void setBorderColor(final BaseColor borderColor) { throwReadOnlyError(); }
/** * Sets the color of the left border. * * @param borderColorLeft a <CODE>BaseColor</CODE> */ @Override public void setBorderColorLeft(final BaseColor borderColorLeft) { throwReadOnlyError(); }
/** * Sets the color of the bottom border. * * @param borderColorBottom a <CODE>BaseColor</CODE> */ @Override public void setBorderColorBottom(final BaseColor borderColorBottom) { throwReadOnlyError(); }
/** * Normalizes the rectangle. * Switches lower left with upper right if necessary. */ @Override public void normalize() { throwReadOnlyError(); }