[FOray-commit] SF.net SVN: foray: [7410] trunk/foray/foray-fotree/src/java/org/foray/fotree
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-06-06 02:06:08
|
Revision: 7410 Author: victormote Date: 2006-06-05 11:11:04 -0700 (Mon, 05 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7410&view=rev Log Message: ----------- Move shared code to superclass. Modified Paths: -------------- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjScaled.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjScaled.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjScaled.java 2006-06-05 17:41:51 UTC (rev 7409) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjScaled.java 2006-06-05 18:11:04 UTC (rev 7410) @@ -192,4 +192,16 @@ return pixels * 72000 / pixelsPerInch; } + public int inlineSizeOptimum(int lineLength) { + return traitIPDimensionOpt(lineLength); + } + + public int inlineSizeMinimum(int lineLength) { + return traitIPDimensionOpt(lineLength); + } + + public int inlineSizeMaximum(int lineLength) { + return traitIPDimensionOpt(lineLength); + } + } Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java 2006-06-05 17:41:51 UTC (rev 7409) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java 2006-06-05 18:11:04 UTC (rev 7410) @@ -94,18 +94,6 @@ return this.graphic; } - public int inlineSizeOptimum(int lineLength) { - return traitIPDimensionOpt(lineLength); - } - - public int inlineSizeMinimum(int lineLength) { - return traitIPDimensionOpt(lineLength); - } - - public int inlineSizeMaximum(int lineLength) { - return traitIPDimensionOpt(lineLength); - } - /** * {@inheritDoc} */ Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java =================================================================== --- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java 2006-06-05 17:41:51 UTC (rev 7409) +++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java 2006-06-05 18:11:04 UTC (rev 7410) @@ -75,18 +75,6 @@ return (ForeignXML) getChildren().get(0); } - public int inlineSizeOptimum(int lineLength) { - return traitIPDimensionOpt(lineLength); - } - - public int inlineSizeMinimum(int lineLength) { - return traitIPDimensionMin(lineLength); - } - - public int inlineSizeMaximum(int lineLength) { - return traitIPDimensionMax(lineLength); - } - /** * {@inheritDoc} */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |