From: William Victor Mote Date: Wed, 2 Jul 2003 19:26:35 +0000 (+0000) Subject: style changes only, mostly javadoc comments X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1361 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=367dbe71610e3d4c10b9f4fabb2869dc2b0ddfaf;p=xmlgraphics-fop.git style changes only, mostly javadoc comments git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196561 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfExternalGraphic.java b/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfExternalGraphic.java index e7c681ba8..80ac7d053 100755 --- a/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfExternalGraphic.java +++ b/src/java/org/apache/fop/rtf/rtflib/rtfdoc/RtfExternalGraphic.java @@ -178,6 +178,7 @@ public class RtfExternalGraphic extends RtfElement { * * @param container a RtfContainer value * @param writer a Writer value + * @throws IOException for I/O problems */ public RtfExternalGraphic(RtfContainer container, Writer writer) throws IOException { super (container, writer); @@ -189,6 +190,7 @@ public class RtfExternalGraphic extends RtfElement { * @param container a RtfContainer value * @param writer a Writer value * @param attributes a RtfAttributes value + * @throws IOException for I/O problems */ public RtfExternalGraphic(RtfContainer container, Writer writer, RtfAttributes attributes) throws IOException { @@ -200,8 +202,10 @@ public class RtfExternalGraphic extends RtfElement { // @@ RtfElement implementation ////////////////////////////////////////////////// - /** RtfElement override - catches ExternalGraphicException and writes a warning - * message to the document if image cannot be read + /** + * RtfElement override - catches ExternalGraphicException and writes a warning + * message to the document if image cannot be read + * @throws IOException for I/O problems */ protected void writeRtfContent() throws IOException { try { @@ -494,9 +498,7 @@ public class RtfExternalGraphic extends RtfElement { * Sets the compression rate for the image in percent. * * @param percent Compression rate - * @return - * true: The compression rate is valid (0..100)\n - * false: The compression rate is invalid + * @return true if the compression rate is valid (0..100), false if invalid */ public boolean setCompressionRate (int percent) { if (percent < 1 || percent > 100) { @@ -622,7 +624,9 @@ public class RtfExternalGraphic extends RtfElement { return type; } - /** true if this element would generate no "useful" RTF content */ + /** + * @return true if this element would generate no "useful" RTF content + */ public boolean isEmpty() { return url == null; }