axsl-commit Mailing List for aXSL (Page 116)
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
(36) |
Apr
(36) |
May
(127) |
Jun
(193) |
Jul
(12) |
Aug
(46) |
Sep
(66) |
Oct
(28) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(39) |
Feb
(68) |
Mar
(58) |
Apr
(88) |
May
(40) |
Jun
(82) |
Jul
(213) |
Aug
(19) |
Sep
(2) |
Oct
(26) |
Nov
(2) |
Dec
|
| 2008 |
Jan
(5) |
Feb
(30) |
Mar
(26) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
(4) |
Apr
(44) |
May
(1) |
Jun
(9) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2010 |
Jan
(4) |
Feb
(4) |
Mar
|
Apr
(7) |
May
(35) |
Jun
|
Jul
|
Aug
(48) |
Sep
(10) |
Oct
(1) |
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(40) |
| 2017 |
Jan
(82) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(37) |
Mar
(28) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(7) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(27) |
| 2021 |
Jan
(52) |
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
(72) |
Dec
(100) |
| 2022 |
Jan
(119) |
Feb
(94) |
Mar
(4) |
Apr
|
May
|
Jun
(5) |
Jul
(3) |
Aug
(2) |
Sep
|
Oct
|
Nov
(10) |
Dec
(97) |
| 2023 |
Jan
(52) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(17) |
Sep
(21) |
Oct
(8) |
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(11) |
Feb
(1) |
Mar
|
Apr
(27) |
May
(62) |
Jun
(27) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2026 |
Jan
(14) |
Feb
(55) |
Mar
(49) |
Apr
(31) |
May
(177) |
Jun
(82) |
Jul
(53) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <vic...@us...> - 2006-04-28 02:38:04
|
Revision: 461 Author: victormote Date: 2006-04-27 19:37:26 -0700 (Thu, 27 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=461&view=rev Log Message: ----------- Integrate checkstyle into Eclipse and builds. Modified Paths: -------------- trunk/axsl/axsl-area-in/.project trunk/axsl/axsl-area-out/.project trunk/axsl/axsl-common/.project trunk/axsl/axsl-font/.project trunk/axsl/axsl-fotree/.project trunk/axsl/axsl-graphic/.project trunk/axsl/axsl-pdf/.project trunk/axsl/axsl-ps/.project trunk/axsl/axsl-text/.project trunk/axsl/scripts/build.xml Added Paths: ----------- trunk/axsl/axsl-area-in/.checkstyle trunk/axsl/axsl-area-out/.checkstyle trunk/axsl/axsl-common/.checkstyle trunk/axsl/axsl-font/.checkstyle trunk/axsl/axsl-fotree/.checkstyle trunk/axsl/axsl-graphic/.checkstyle trunk/axsl/axsl-pdf/.checkstyle trunk/axsl/axsl-ps/.checkstyle trunk/axsl/axsl-text/.checkstyle trunk/axsl/scripts/checkstyle-config.xml Added: trunk/axsl/axsl-area-in/.checkstyle =================================================================== --- trunk/axsl/axsl-area-in/.checkstyle (rev 0) +++ trunk/axsl/axsl-area-in/.checkstyle 2006-04-28 02:37:26 UTC (rev 461) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fileset-config file-format-version="1.2.0" simple-config="true"> + <fileset name="all" enabled="true" check-config-name="aXSL Checkstyle" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> Modified: trunk/axsl/axsl-area-in/.project =================================================================== --- trunk/axsl/axsl-area-in/.project 2006-04-27 13:43:42 UTC (rev 460) +++ trunk/axsl/axsl-area-in/.project 2006-04-28 02:37:26 UTC (rev 461) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature> </natures> </projectDescription> Added: trunk/axsl/axsl-area-out/.checkstyle =================================================================== --- trunk/axsl/axsl-area-out/.checkstyle (rev 0) +++ trunk/axsl/axsl-area-out/.checkstyle 2006-04-28 02:37:26 UTC (rev 461) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fileset-config file-format-version="1.2.0" simple-config="true"> + <fileset name="all" enabled="true" check-config-name="aXSL Checkstyle" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> Modified: trunk/axsl/axsl-area-out/.project =================================================================== --- trunk/axsl/axsl-area-out/.project 2006-04-27 13:43:42 UTC (rev 460) +++ trunk/axsl/axsl-area-out/.project 2006-04-28 02:37:26 UTC (rev 461) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature> </natures> </projectDescription> Added: trunk/axsl/axsl-common/.checkstyle =================================================================== --- trunk/axsl/axsl-common/.checkstyle (rev 0) +++ trunk/axsl/axsl-common/.checkstyle 2006-04-28 02:37:26 UTC (rev 461) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fileset-config file-format-version="1.2.0" simple-config="true"> + <fileset name="all" enabled="true" check-config-name="aXSL Checkstyle" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> Modified: trunk/axsl/axsl-common/.project =================================================================== --- trunk/axsl/axsl-common/.project 2006-04-27 13:43:42 UTC (rev 460) +++ trunk/axsl/axsl-common/.project 2006-04-28 02:37:26 UTC (rev 461) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature> </natures> </projectDescription> Added: trunk/axsl/axsl-font/.checkstyle =================================================================== --- trunk/axsl/axsl-font/.checkstyle (rev 0) +++ trunk/axsl/axsl-font/.checkstyle 2006-04-28 02:37:26 UTC (rev 461) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fileset-config file-format-version="1.2.0" simple-config="true"> + <fileset name="all" enabled="true" check-config-name="aXSL Checkstyle" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> Modified: trunk/axsl/axsl-font/.project =================================================================== --- trunk/axsl/axsl-font/.project 2006-04-27 13:43:42 UTC (rev 460) +++ trunk/axsl/axsl-font/.project 2006-04-28 02:37:26 UTC (rev 461) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature> </natures> </projectDescription> Added: trunk/axsl/axsl-fotree/.checkstyle =================================================================== --- trunk/axsl/axsl-fotree/.checkstyle (rev 0) +++ trunk/axsl/axsl-fotree/.checkstyle 2006-04-28 02:37:26 UTC (rev 461) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fileset-config file-format-version="1.2.0" simple-config="true"> + <fileset name="all" enabled="true" check-config-name="aXSL Checkstyle" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> Modified: trunk/axsl/axsl-fotree/.project =================================================================== --- trunk/axsl/axsl-fotree/.project 2006-04-27 13:43:42 UTC (rev 460) +++ trunk/axsl/axsl-fotree/.project 2006-04-28 02:37:26 UTC (rev 461) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature> </natures> </projectDescription> Added: trunk/axsl/axsl-graphic/.checkstyle =================================================================== --- trunk/axsl/axsl-graphic/.checkstyle (rev 0) +++ trunk/axsl/axsl-graphic/.checkstyle 2006-04-28 02:37:26 UTC (rev 461) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fileset-config file-format-version="1.2.0" simple-config="true"> + <fileset name="all" enabled="true" check-config-name="aXSL Checkstyle" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> Modified: trunk/axsl/axsl-graphic/.project =================================================================== --- trunk/axsl/axsl-graphic/.project 2006-04-27 13:43:42 UTC (rev 460) +++ trunk/axsl/axsl-graphic/.project 2006-04-28 02:37:26 UTC (rev 461) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature> </natures> </projectDescription> Added: trunk/axsl/axsl-pdf/.checkstyle =================================================================== --- trunk/axsl/axsl-pdf/.checkstyle (rev 0) +++ trunk/axsl/axsl-pdf/.checkstyle 2006-04-28 02:37:26 UTC (rev 461) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fileset-config file-format-version="1.2.0" simple-config="true"> + <fileset name="all" enabled="true" check-config-name="aXSL Checkstyle" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> Modified: trunk/axsl/axsl-pdf/.project =================================================================== --- trunk/axsl/axsl-pdf/.project 2006-04-27 13:43:42 UTC (rev 460) +++ trunk/axsl/axsl-pdf/.project 2006-04-28 02:37:26 UTC (rev 461) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature> </natures> </projectDescription> Added: trunk/axsl/axsl-ps/.checkstyle =================================================================== --- trunk/axsl/axsl-ps/.checkstyle (rev 0) +++ trunk/axsl/axsl-ps/.checkstyle 2006-04-28 02:37:26 UTC (rev 461) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fileset-config file-format-version="1.2.0" simple-config="true"> + <fileset name="all" enabled="true" check-config-name="aXSL Checkstyle" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> Modified: trunk/axsl/axsl-ps/.project =================================================================== --- trunk/axsl/axsl-ps/.project 2006-04-27 13:43:42 UTC (rev 460) +++ trunk/axsl/axsl-ps/.project 2006-04-28 02:37:26 UTC (rev 461) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature> </natures> </projectDescription> Added: trunk/axsl/axsl-text/.checkstyle =================================================================== --- trunk/axsl/axsl-text/.checkstyle (rev 0) +++ trunk/axsl/axsl-text/.checkstyle 2006-04-28 02:37:26 UTC (rev 461) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<fileset-config file-format-version="1.2.0" simple-config="true"> + <fileset name="all" enabled="true" check-config-name="aXSL Checkstyle" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> Modified: trunk/axsl/axsl-text/.project =================================================================== --- trunk/axsl/axsl-text/.project 2006-04-27 13:43:42 UTC (rev 460) +++ trunk/axsl/axsl-text/.project 2006-04-28 02:37:26 UTC (rev 461) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature> </natures> </projectDescription> Modified: trunk/axsl/scripts/build.xml =================================================================== --- trunk/axsl/scripts/build.xml 2006-04-27 13:43:42 UTC (rev 460) +++ trunk/axsl/scripts/build.xml 2006-04-28 02:37:26 UTC (rev 461) @@ -10,6 +10,21 @@ <tstamp/> <!-- Set up a prefix to designate environment variables --> <property environment="env"/> + + <!-- If the environment variable AXSL_CONFIG is set, use it. --> + <condition property="axsl.config" value="${env.AXSL_CONFIG}"> + <and> + <isset property="env.AXSL_CONFIG"/> + <available file="${env.AXSL_CONFIG}"/> + </and> + </condition> + <!-- Otherwise, set it to the aXSL scripts directory. --> + <property name="axsl.config" location="."/> + <echo>axsl.config: ${axsl.config}</echo> + +<!-- Retrieve externally-configured properties. --> + <property file="${axsl.config}/axsl-build.properties"/> + <!-- If the AXSL_HOME env variable exists, use it --> <available property="project.root" file="${env.AXSL_HOME}/scripts/build.xml" @@ -36,6 +51,7 @@ <property name="optimize" value="off"/> <property name="deprecation" value="off"/> <property name="source" value="1.4"/> + <fileset id="java.source" dir="${project.root}" includes="**/*.java"/> </target> <!-- =================================================================== --> @@ -76,7 +92,7 @@ <!-- =================================================================== --> <!-- Creates the class package --> <!-- =================================================================== --> - <target name="package" depends="compile" + <target name="package" depends="compile, style" description="Generates the jar files (default target)"> <echo message="Creating the jar file ${build.dir}/${name}.jar"/> @@ -182,6 +198,24 @@ <delete dir="${build.dir}"/> </target> + <!-- =================================================================== --> + <!-- Checkstyle --> + <!-- =================================================================== --> + <target name="style" depends="init" description="Runs checkstyle" + if="checkstyle.home"> + <taskdef name="checkstyle" + classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"> + <classpath> + <fileset dir="${checkstyle.home}"> + <include name="checkstyle-all-*.jar"/> + </fileset> + </classpath> + </taskdef> + <checkstyle config="./checkstyle-config.xml"> + <fileset refid="java.source"/> + </checkstyle> + </target> + </project> <!-- Last Line of $RCSfile$ --> Added: trunk/axsl/scripts/checkstyle-config.xml =================================================================== --- trunk/axsl/scripts/checkstyle-config.xml (rev 0) +++ trunk/axsl/scripts/checkstyle-config.xml 2006-04-28 02:37:26 UTC (rev 461) @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE module + PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN" + "http://www.puppycrawl.com/dtds/configuration_1_1.dtd"> + +<!-- + This is the checkstyle configuration for FOray. + Any items marked with severity="ignore" document an unimplemented but + desired setting. +--> + +<module name="Checker"> + <module name="TreeWalker"> + <module name="ModifierOrder"> + <property name="severity" value="error"/> + </module> + <module name="NeedBraces"> + <property name="severity" value="error"/> + <property name="tokens" value="LITERAL_DO, LITERAL_ELSE, LITERAL_IF, + LITERAL_FOR, LITERAL_WHILE"/> + </module> + <module name="AvoidStarImport"> + <property name="severity" value="error"/> + </module> + <module name="LineLength"> + <property name="ignorePattern" value="^$"/> + <property name="max" value="80"/> + <property name="severity" value="warning"/> + <property name="tabWidth" value="4"/> + </module> + <module name="EmptyForInitializerPad"> + <property name="option" value="nospace"/> + <property name="severity" value="warning"/> + </module> + <module name="ParenPad"> + <property name="option" value="nospace"/> + <property name="severity" value="warning"/> + <property name="tokens" value="CTOR_CALL, LPAREN, METHOD_CALL, RPAREN, + SUPER_CTOR_CALL"/> + </module> + <module name="TabCharacter"> + <property name="severity" value="error"/> + </module> + </module> +</module> Property changes on: trunk/axsl/scripts/checkstyle-config.xml ___________________________________________________________________ Name: svn:keywords + "Author Id Rev Date URL" Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-27 13:43:49
|
Revision: 460 Author: victormote Date: 2006-04-27 06:43:42 -0700 (Thu, 27 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=460&view=rev Log Message: ----------- Reverse revision 457. ViewCVS Links: ------------- http://svn.sourceforge.net/axsl/?rev=457&view=rev Modified Paths: -------------- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd Modified: trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd =================================================================== --- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-04-26 19:15:35 UTC (rev 459) +++ trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-04-27 13:43:42 UTC (rev 460) @@ -51,7 +51,7 @@ xml:base CDATA #IMPLIED > -<!ELEMENT family-member (font?) > +<!ELEMENT family-member (font) > <!-- The attributes style, weight, variant, and stretch correspond to the CSS/XSL-FO font properties derived from these names. @@ -124,7 +124,6 @@ --> <!ATTLIST family-member - font CDATA #IMPLIED style (normal | italic | oblique | backslant) #REQUIRED weight (normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900) #REQUIRED This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-26 19:15:42
|
Revision: 459 Author: victormote Date: 2006-04-26 12:15:35 -0700 (Wed, 26 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=459&view=rev Log Message: ----------- Fix some typos in the comments. Modified Paths: -------------- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd Modified: trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd =================================================================== --- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-04-26 19:13:49 UTC (rev 458) +++ trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-04-26 19:15:35 UTC (rev 459) @@ -119,7 +119,7 @@ (600 * 12 / 1000). A stretch value of 125% will result in a width of 750 text space units, or 9 points. - A stretch value of 80* will reuslt in a width of 480 text space units, or + A stretch value of 80% will result in a width of 480 text space units, or 5.76 points. --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-26 19:13:56
|
Revision: 458 Author: victormote Date: 2006-04-26 12:13:49 -0700 (Wed, 26 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=458&view=rev Log Message: ----------- Require font-group to contain at least one item. Modified Paths: -------------- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd Modified: trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd =================================================================== --- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-04-26 18:44:18 UTC (rev 457) +++ trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-04-26 19:13:49 UTC (rev 458) @@ -35,7 +35,7 @@ radix CDATA #REQUIRED > -<!ELEMENT font-group (font-family | font-group)* > +<!ELEMENT font-group (font-family | font-group)+ > <!ATTLIST font-group label CDATA #IMPLIED embed (all | subset | none) #IMPLIED This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-26 18:44:22
|
Revision: 457 Author: victormote Date: 2006-04-26 11:44:18 -0700 (Wed, 26 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=457&view=rev Log Message: ----------- 1. Make the "font" element optional for "family-member". 2. Add optional "font" attribute for "family-member". Modified Paths: -------------- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd Modified: trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd =================================================================== --- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-04-26 18:41:53 UTC (rev 456) +++ trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-04-26 18:44:18 UTC (rev 457) @@ -51,7 +51,7 @@ xml:base CDATA #IMPLIED > -<!ELEMENT family-member (font) > +<!ELEMENT family-member (font?) > <!-- The attributes style, weight, variant, and stretch correspond to the CSS/XSL-FO font properties derived from these names. @@ -124,6 +124,7 @@ --> <!ATTLIST family-member + font CDATA #IMPLIED style (normal | italic | oblique | backslant) #REQUIRED weight (normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900) #REQUIRED This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-26 18:42:00
|
Revision: 456 Author: victormote Date: 2006-04-26 11:41:53 -0700 (Wed, 26 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=456&view=rev Log Message: ----------- Patch #1471223 submitted by Vincent Hennebert: 1. Change "font-family" element to "family-member". 2. Bring "font" element inside "family-member". 3. Simplify the font-alias configuration. Modified Paths: -------------- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd Modified: trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd =================================================================== --- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-04-15 14:01:46 UTC (rev 455) +++ trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-04-26 18:41:53 UTC (rev 456) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!ELEMENT axsl-font-config (server?, glyph-list*, encoding*, - (font | font-group)*, font-family*, font-family-alias*) > + (font-family | font-group)*, font-family-alias*) > <!ATTLIST axsl-font-config embed (all | subset | none) #IMPLIED xml:base CDATA #IMPLIED @@ -35,34 +35,23 @@ radix CDATA #REQUIRED > -<!ELEMENT font-group (font | font-group)* > +<!ELEMENT font-group (font-family | font-group)* > <!ATTLIST font-group label CDATA #IMPLIED embed (all | subset | none) #IMPLIED xml:base CDATA #IMPLIED > -<!ELEMENT font EMPTY > -<!-- - The IMPLIED value for the "embed" attribute is "none". ---> -<!ATTLIST font - id ID #REQUIRED - system-name CDATA #IMPLIED - embed (all | subset | none) #IMPLIED - font-file CDATA #IMPLIED - collection-id CDATA #IMPLIED - metrics-file CDATA #IMPLIED -> - -<!ELEMENT font-family (font-description*) > +<!ELEMENT font-family (family-member+) > <!ATTLIST font-family name CDATA #REQUIRED simulate-small-caps CDATA #IMPLIED encoding CDATA #IMPLIED + embed (all | subset | none) #IMPLIED + xml:base CDATA #IMPLIED > -<!ELEMENT font-description EMPTY > +<!ELEMENT family-member (font) > <!-- The attributes style, weight, variant, and stretch correspond to the CSS/XSL-FO font properties derived from these names. @@ -134,7 +123,7 @@ 5.76 points. --> -<!ATTLIST font-description +<!ATTLIST family-member style (normal | italic | oblique | backslant) #REQUIRED weight (normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900) #REQUIRED @@ -153,18 +142,25 @@ simulate-expanded CDATA #IMPLIED simulate-extra-expanded CDATA #IMPLIED simulate-ultra-expanded CDATA #IMPLIED - font CDATA #REQUIRED encoding CDATA #IMPLIED > -<!ELEMENT font-family-alias (alias-configuration*) > +<!ELEMENT font EMPTY > +<!-- + The IMPLIED value for the "embed" attribute is "none". +--> +<!ATTLIST font + id ID #IMPLIED + system-name CDATA #IMPLIED + embed (all | subset | none) #IMPLIED + font-file CDATA #IMPLIED + collection-id CDATA #IMPLIED + metrics-file CDATA #IMPLIED + ref CDATA #IMPLIED +> + +<!ELEMENT font-family-alias EMPTY > <!ATTLIST font-family-alias alias CDATA #REQUIRED - default-family CDATA #REQUIRED + family CDATA #REQUIRED > - -<!ELEMENT alias-configuration EMPTY > -<!ATTLIST alias-configuration - name CDATA #REQUIRED - font-family CDATA #REQUIRED -> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-15 14:01:56
|
Revision: 455 Author: victormote Date: 2006-04-15 07:01:46 -0700 (Sat, 15 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=455&view=rev Log Message: ----------- Add guide to font-weights. Modified Paths: -------------- trunk/axsl/doc/web/font/configure.html Modified: trunk/axsl/doc/web/font/configure.html =================================================================== --- trunk/axsl/doc/web/font/configure.html 2006-04-15 00:14:31 UTC (rev 454) +++ trunk/axsl/doc/web/font/configure.html 2006-04-15 14:01:46 UTC (rev 455) @@ -277,7 +277,56 @@ Corresponds to the XSL-FO font-style property.</li> <li><strong>weight</strong> (optional, default "normal") = 100 | 200 | 300 | (normal | 400) | 500 | 600 | (bold | 700) | 800 | 900. - Corresponds to the XSL-FO font-weight property.</li> + Corresponds to the XSL-FO font-weight property. Following is an + unofficial guide to the weight values: + <table> + <thead> + <tr> + <td>Description</td> + <td>Weight</td> + </tr> + </thead> + <tbody> + <tr> + <td>Ultralight</td> + <td>100</td> + </tr> + <tr> + <td>Light</td> + <td>200</td> + </tr> + <tr> + <td>SemiLight</td> + <td>300</td> + </tr> + <tr> + <td>Normal, Regular, Roman, Book</td> + <td>400</td> + </tr> + <tr> + <td>Medium</td> + <td>500</td> + </tr> + <tr> + <td>SemiBold</td> + <td>600</td> + </tr> + <tr> + <td>Bold</td> + <td>700</td> + </tr> + <tr> + <td>Black</td> + <td>800</td> + </tr> + <tr> + <td>UltraBlack</td> + <td>900</td> + </tr> + </tbody> + + </table> + </li> <li><strong>simulate-small-caps</strong> takes a percentage, and the "%" character should be included. It performs two functions for applications that can simulate small-caps. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-15 00:14:38
|
Revision: 454 Author: victormote Date: 2006-04-14 17:14:31 -0700 (Fri, 14 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=454&view=rev Log Message: ----------- Comment out the Base-14 fonts as our only implementation now automatically registers them. Modified Paths: -------------- trunk/axsl/axsl-font/config/sample-axsl-font-config.xml Modified: trunk/axsl/axsl-font/config/sample-axsl-font-config.xml =================================================================== --- trunk/axsl/axsl-font/config/sample-axsl-font-config.xml 2006-04-14 23:57:05 UTC (rev 453) +++ trunk/axsl/axsl-font/config/sample-axsl-font-config.xml 2006-04-15 00:14:31 UTC (rev 454) @@ -12,12 +12,17 @@ <parameter key="font-root" from-environment="FONT_ROOT"/> +<!-- This entry may be useful for implementations that do not automatically + register the Base-14 fonts. <parameter key="base14-root" value="///D:/fonts/base-14"/> +--> </server> <!-- The Base-14 fonts. --> +<!-- These entries may be useful for implementations that do not automatically + register the Base-14 fonts. <font-group label="Base14" embed="none" xml:base="{base14-root}"> <font id="Base14-Helvetica" @@ -62,6 +67,7 @@ id="Base14-ZapfDingbats" metrics-file="ZapfDingbats.afm"/> </font-group> +--> <!-- End of Base-14 fonts. --> <!-- Some standard AWT fonts. --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-14 23:57:10
|
Revision: 453 Author: victormote Date: 2006-04-14 16:57:05 -0700 (Fri, 14 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=453&view=rev Log Message: ----------- Make the font reference CDATA instead of IDREF as they can now be registered in other places. Modified Paths: -------------- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd Modified: trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd =================================================================== --- trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-03-26 17:53:48 UTC (rev 452) +++ trunk/axsl/doc/web/dtds/0.1/en/axsl-font-config.dtd 2006-04-14 23:57:05 UTC (rev 453) @@ -153,7 +153,7 @@ simulate-expanded CDATA #IMPLIED simulate-extra-expanded CDATA #IMPLIED simulate-ultra-expanded CDATA #IMPLIED - font IDREF #REQUIRED + font CDATA #REQUIRED encoding CDATA #IMPLIED > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-26 17:53:57
|
Revision: 452 Author: victormote Date: 2006-03-26 09:53:48 -0800 (Sun, 26 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=452&view=rev Log Message: ----------- Add new methods suggested by Vincent Hennebert. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java 2006-03-26 17:00:19 UTC (rev 451) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java 2006-03-26 17:53:48 UTC (rev 452) @@ -263,8 +263,35 @@ public boolean usableInPostScriptOutput() ; /** + * Returns this font's font-family name. + * For example, a font named "Bitstream Charter Italic" in font-family + * "Bitstream Charter", with PostScript name "CharterBT-Italic", should + * return "Bitstream Charter". + * @return This font's font-family name. + * @see #getFontName() + * @see #getPostscriptName() + */ + public String getFamilyName() ; + + /** + * Returns this font's name. + * For example, a font named "Bitstream Charter Italic" in font-family + * "Bitstream Charter", with PostScript name "CharterBT-Italic", should + * return "Bitstream Charter Italic". + * @return This font's name. + * @see #getFamilyName() + * @see #getPostscriptName() + */ + public String getFontName() ; + + /** * Returns the PostScript name of the font. + * For example, a font named "Bitstream Charter Italic" in font-family + * "Bitstream Charter", with PostScript name "CharterBT-Italic", should + * return "CharterBT-Italic". * @return The PostScript name of the font. + * @see #getFamilyName() + * @see #getFontName() */ public String getPostscriptName() ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-26 17:00:24
|
Revision: 451 Author: victormote Date: 2006-03-26 09:00:19 -0800 (Sun, 26 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=451&view=rev Log Message: ----------- Rename methods per Vincent Hennebert's suggestion. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java trunk/axsl/axsl-font/src/java/org/axsl/font/FontUse.java Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java 2006-03-26 16:31:53 UTC (rev 450) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java 2006-03-26 17:00:19 UTC (rev 451) @@ -266,7 +266,7 @@ * Returns the PostScript name of the font. * @return The PostScript name of the font. */ - public String postscriptName() ; + public String getPostscriptName() ; /** * Get the font's internal Encoding scheme. Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontUse.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontUse.java 2006-03-26 16:31:53 UTC (rev 450) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontUse.java 2006-03-26 17:00:19 UTC (rev 451) @@ -331,7 +331,7 @@ * and the name of the encoding. * @return The PostScript name of the font. */ - public String postscriptName() ; + public String getPostscriptName() ; /** * Returns the FontConsumer for whom this FontUse exists. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-26 16:31:59
|
Revision: 450 Author: victormote Date: 2006-03-26 08:31:53 -0800 (Sun, 26 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=450&view=rev Log Message: ----------- Add new constructor to take byte arrays for font and metrics files. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-25 14:53:09 UTC (rev 449) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-26 16:31:53 UTC (rev 450) @@ -158,7 +158,7 @@ * font should be embedded in output documents. * @param systemName For system fonts only, this is the name that should be * supplied to the operating system font registry to obtain the font from - * it. + * it. For other fonts, set this to null. * @throws FontException If a font with this <code>fontID</code> is already * registered. */ @@ -167,6 +167,36 @@ String systemName) throws FontException ; /** + * Register a font for use by the system. This is an overloaded version + * of {@link #registerFont(String, URL, URL, String, String, String)} + * intended for situations where a font's contents have been extracted from + * a document. + * @param fontID A unique ID for this font (e.g. "Courier-Bold"). + * @param fontFileDescription A description of the font file. This is used + * primarily in user messages. (The overloaded method that takes URLs just + * uses the path of the URL for descriptive user messages). + * @param fontFileContents Byte array containing the font file contents. + * @param metricsFileDescription A description of the metrics file. This is + * used primarily in user messages. (The overloaded method that takes URLs + * just uses the path of the URL for descriptive user messages). + * @param metricsFileContents Byte array containing the metrics contents. + * This is null for TrueType and OpenType fonts. + * @param collectionID For TrueType collections, indicates which font in + * the collection corresponds to this font. + * @param embed One of "none", "all", or "subset", indicating whether this + * font should be embedded in output documents. + * @param systemName For system fonts only, this is the name that should be + * supplied to the operating system font registry to obtain the font from + * it. For other fonts, set this to null. + * @throws FontException If a font with this <code>fontID</code> is already + * registered. + */ + public void registerFont(String fontID, String fontFileDescription, + byte[] fontFileContents, String metricsFileDescription, + byte[] metricsFileContents, String collectionID, String embed, + String systemName) throws FontException ; + + /** * Indicates whether a font has already been registered for use by the * system. * @param fontID The unique font ID for the font (e.g. "Courier-Bold"). This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-25 14:53:23
|
Revision: 449 Author: victormote Date: 2006-03-25 06:53:09 -0800 (Sat, 25 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=449&view=rev Log Message: ----------- Remove PDFFactory. All it does is create a PDFDocument which the application can do directly with no bigger implementation-specific footprint. Removed Paths: ------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java Deleted: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-24 01:04:45 UTC (rev 448) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-25 14:53:09 UTC (rev 449) @@ -1,35 +0,0 @@ -/* - * Copyright 2006 The aXSL Project. - * http://www.axsl.org - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -/* $Id$ */ - -package org.axsl.pdf; - -/** - * Implementations of this class are used to boostrap the creation of - * implementation-specific PDF-related classes. - */ -public interface PDFFactory { - - /** - * Create an implementation-specific PDFDocument instance. - * @return An implementation-specific PDFDocument instance. - */ - public PDFDocument createPDFDocument() ; - -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-24 01:04:52
|
Revision: 448 Author: victormote Date: 2006-03-23 17:04:45 -0800 (Thu, 23 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=448&view=rev Log Message: ----------- Add some javadoc for the package. Added Paths: ----------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/package.html Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/package.html =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/package.html (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/package.html 2006-03-24 01:04:45 UTC (rev 448) @@ -0,0 +1,16 @@ +<html> +<title>org.axsl.graphic Package</title> + +<body> + +<p>Interfaces allowing client applications to use create PDF documents in a +vendor-neutral way.</p> + +<p>To create a PDF document using an aXSL PDF implementation, first obtain an +instance of that implementation's PDFFactory. Use that factory's +<code>createPDFDocument()</code> method to create an PDFDocument. Then use +PDFDocument's methods to create PDFPages and other objects for the document and +to write the document.</p> + +</body> +</html> Property changes on: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/package.html ___________________________________________________________________ Name: svn:keywords + "Author Id Rev Date URL" Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-24 00:53:59
|
Revision: 447 Author: victormote Date: 2006-03-23 16:53:51 -0800 (Thu, 23 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=447&view=rev Log Message: ----------- Move some methods from the Factory to parent objects. This cleans up almost everything, ensuring that all objects are of the appropriate implementation. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFExplicitDestination.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java 2006-03-24 00:29:12 UTC (rev 446) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java 2006-03-24 00:53:51 UTC (rev 447) @@ -22,6 +22,7 @@ import org.axsl.font.FontUse; +import java.awt.Color; import java.io.IOException; import java.io.OutputStream; import java.util.Date; @@ -115,4 +116,21 @@ */ public PDFEncryption createPDFEncryption() ; + /** + * Create an implementation-specific PDFColor instance. + * @param color The color that should be created. + * @return An implementation-specific PDFColor instance. + */ + public PDFColor createPDFColor(Color color) ; + + /** + * Create an implementation-specific PDFPage instance. + * @param pagewidth The width of the page that should be created, in + * millipoints. + * @param pageheight The height of the page that should be created, in + * millipoints. + * @return An implementation-specific PDFPage instance. + */ + public PDFPage createPDFPage(int pagewidth, int pageheight) ; + } Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFExplicitDestination.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFExplicitDestination.java 2006-03-24 00:29:12 UTC (rev 446) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFExplicitDestination.java 2006-03-24 00:53:51 UTC (rev 447) @@ -25,4 +25,12 @@ */ public interface PDFExplicitDestination { + /** + * Create an implementation-specific PDFNamedDestination instance that + * points to this explicit destination. + * @param name The name that should be assigned to this named destination. + * @return An implementation-specific PDFExplicitDestination instance. + */ + public PDFNamedDestination createPDFNamedDestination(String name) ; + } Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-24 00:29:12 UTC (rev 446) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-24 00:53:51 UTC (rev 447) @@ -20,11 +20,9 @@ package org.axsl.pdf; -import java.awt.Color; -import java.awt.geom.Rectangle2D; - /** - * Implementations of this class create instances of PDF-related classes. + * Implementations of this class are used to boostrap the creation of + * implementation-specific PDF-related classes. */ public interface PDFFactory { @@ -34,64 +32,4 @@ */ public PDFDocument createPDFDocument() ; - /** - * Create an implementation-specific PDFNamedDestination instance. - * @param document The PDFDocument for whom this instance is created. - * Implementations are at liberty to insist that this be a PDFDocument - * implementation known to the implementation. - * @param name The name that should be assigned to this named destination. - * @param explicit The explicit destination to which <code>name</code> - * should be attached. - * Implementations are at liberty to insist that this be a - * PDFExplicitDestination implementation known to the implementation. - * @return An implementation-specific PDFExplicitDestination instance. - * @throws PDFException If PDFDocument or PDFExplicitDestination are not of - * types supported by the implementation. - */ - public PDFNamedDestination createPDFNamedDestination( - PDFDocument document, String name, PDFExplicitDestination explicit) - throws PDFException ; - - /** - * Create an implementation-specific PDFColor instance. - * @param color The color that should be created. - * @return An implementation-specific PDFColor instance. - */ - public PDFColor createPDFColor(Color color) ; - - /** - * Create an implementation-specific PDFPage instance. - * @param document The PDFDocument for whom this instance is created. - * Implementations are at liberty to insist that this be a PDFDocument - * implementation known to the implementation. - * @param pagewidth The width of the page that should be created, in - * millipoints. - * @param pageheight The height of the page that should be created, in - * millipoints. - * @return An implementation-specific PDFPage instance. - * @throws PDFException If PDFDocument is not of a type supported by the - * implementation. - */ - public PDFPage createPDFPage(PDFDocument document, int pagewidth, - int pageheight) throws PDFException ; - - /** - * Create an implementation-specific PDFLink instance. - * @param document The PDFDocument for whom this instance is created. - * Implementations are at liberty to insist that this be a PDFDocument - * implementation known to the implementation. - * @param page The PDFPage on which this destination should be created. - * Implementations are at liberty to insist that this be a PDFPage - * implementation known to the implementation. - * @param linkRectangle The rectangle which activates the link. - * @param destination The destination to which the user should be taken - * when the link is activated. - * @return An implementation-specific PDFLink instance. - * @throws PDFException If PDFDocument is not of a type supported by the - * implementation. - */ - public PDFLink createPDFLink(PDFDocument document, PDFPage page, - Rectangle2D.Float linkRectangle, String destination) - throws PDFException ; - } Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java 2006-03-24 00:29:12 UTC (rev 446) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java 2006-03-24 00:53:51 UTC (rev 447) @@ -53,4 +53,14 @@ public PDFExplicitDestination createPDFExplicitDestination(float xPosition, float yPosition) ; + /** + * Create an implementation-specific PDFLink instance. + * @param linkRectangle The rectangle which activates the link. + * @param destination The destination to which the user should be taken + * when the link is activated. + * @return An implementation-specific PDFLink instance. + */ + public PDFLink createPDFLink(Rectangle2D.Float linkRectangle, + String destination) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-24 00:29:21
|
Revision: 446 Author: victormote Date: 2006-03-23 16:29:12 -0800 (Thu, 23 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=446&view=rev Log Message: ----------- Move some methods from the Factory to parent objects. This cleans up almost everything, ensuring that all objects are of the appropriate implementation. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineParent.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java 2006-03-20 03:41:02 UTC (rev 445) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java 2006-03-24 00:29:12 UTC (rev 446) @@ -108,4 +108,11 @@ */ public void writeIndirectObjects(OutputStream stream) throws IOException ; + /** + * Create an implementation-specific PDFEncryption instance to be used by + * this document. + * @return An implementation-specific PDFEncryption instance. + */ + public PDFEncryption createPDFEncryption() ; + } Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-20 03:41:02 UTC (rev 445) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-24 00:29:12 UTC (rev 446) @@ -35,63 +35,6 @@ public PDFDocument createPDFDocument() ; /** - * Create an implementation-specific PDFEncryption instance. - * @param document The PDFDocument for whom this instance is created. - * Implementations are at liberty to insist that this be a PDFDocument - * implementation known to the implementation. - * @return An implementation-specific PDFEncryption instance. - * @throws PDFException If PDFDocument is not of a type supported by the - * implementation. - */ - public PDFEncryption createPDFEncryption(PDFDocument document) - throws PDFException; - - /** - * Create an implementation-specific PDFOutlineItem instance. - * @param document The PDFDocument for whom this instance is created. - * Implementations are at liberty to insist that this be a PDFDocument - * implementation known to the implementation. - * @param parent The PDF outline item that is the parent of the outline - * item being created. - * Implementations are at liberty to insist that this be a PDFOutlineParent - * implementation known to the implementation. - * @param titleText The text which should be displayed in the bookmarks - * outline. - * @param internalDestination The destination to which this outline item - * points. - * @param color The color in which the title text should be displayed. - * @param italic True if the title text should be displayed in italic. - * @param bold True if the title text should be displayed bold. - * @return An implementation-specific PDFOutlineItem instance. - * @throws PDFException If PDFDocument or PDFOutlineParent are not of types - * supported by the implementation. - */ - public PDFOutlineItem createPDFOutlineItem(PDFDocument document, - PDFOutlineParent parent, String titleText, - String internalDestination, Color color, boolean italic, - boolean bold) throws PDFException ; - - /** - * Create an implementation-specific PDFExplicitDestination instance. - * @param document The PDFDocument for whom this instance is created. - * Implementations are at liberty to insist that this be a PDFDocument - * implementation known to the implementation. - * @param page The PDFPage on which this destination should be created. - * Implementations are at liberty to insist that this be a PDFPage - * implementation known to the implementation. - * @param xPosition The horizontal location, on the page, of the - * destination. Position 0, 0 is the lower left corner of the page. - * @param yPosition The vertical location, on the page, of the - * destination. Position 0, 0 is the lower left corner of the page. - * @return An implementation-specific PDFExplicitDestination instance. - * @throws PDFException If PDFDocument or PDFPage are not of types - * supported by the implementation. - */ - public PDFExplicitDestination createPDFExplicitDestination( - PDFDocument document, PDFPage page, float xPosition, - float yPosition) throws PDFException ; - - /** * Create an implementation-specific PDFNamedDestination instance. * @param document The PDFDocument for whom this instance is created. * Implementations are at liberty to insist that this be a PDFDocument Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineParent.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineParent.java 2006-03-20 03:41:02 UTC (rev 445) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineParent.java 2006-03-24 00:29:12 UTC (rev 446) @@ -20,9 +20,27 @@ package org.axsl.pdf; +import java.awt.Color; + /** * A PDF Outline Parent. */ public interface PDFOutlineParent { + /** + * Create an implementation-specific PDFOutlineItem instance that is a child + * of this. + * @param titleText The text which should be displayed in the bookmarks + * outline. + * @param internalDestination The destination to which this outline item + * points. + * @param color The color in which the title text should be displayed. + * @param italic True if the title text should be displayed in italic. + * @param bold True if the title text should be displayed bold. + * @return An implementation-specific PDFOutlineItem instance. + */ + public PDFOutlineItem createPDFOutlineItem(String titleText, + String internalDestination, Color color, boolean italic, + boolean bold) ; + } Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java 2006-03-20 03:41:02 UTC (rev 445) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java 2006-03-24 00:29:12 UTC (rev 446) @@ -42,4 +42,15 @@ */ public PDFContentStream getContentStream() ; + /** + * Create an implementation-specific PDFExplicitDestination instance. + * @param xPosition The horizontal location, on the page, of the + * destination. Position 0, 0 is the lower left corner of the page. + * @param yPosition The vertical location, on the page, of the + * destination. Position 0, 0 is the lower left corner of the page. + * @return An implementation-specific PDFExplicitDestination instance. + */ + public PDFExplicitDestination createPDFExplicitDestination(float xPosition, + float yPosition) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-20 03:41:10
|
Revision: 445 Author: victormote Date: 2006-03-19 19:41:02 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=445&view=rev Log Message: ----------- Javadoc enhancements. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-20 02:30:30 UTC (rev 444) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-20 03:41:02 UTC (rev 445) @@ -149,6 +149,16 @@ /** * Register a font for use by the system. * @param fontID A unique ID for this font (e.g. "Courier-Bold"). + * @param fontFileURL URL to the file containing the font. + * @param metricsFileURL URL to the file containing the font metrics. This + * is null for TrueType and OpenType fonts. + * @param collectionID For TrueType collections, indicates which font in + * the collection corresponds to this font. + * @param embed One of "none", "all", or "subset", indicating whether this + * font should be embedded in output documents. + * @param systemName For system fonts only, this is the name that should be + * supplied to the operating system font registry to obtain the font from + * it. * @throws FontException If a font with this <code>fontID</code> is already * registered. */ @@ -173,6 +183,55 @@ * @param encoding The encoding, if any, that should be used by this * font description. Set this value to null unless you wish to override * the encoding for this font. + * @param style One of {@link Font#FONT_STYLE_NORMAL}, + * {@link Font#FONT_STYLE_ITALIC}, + * {@link Font#FONT_STYLE_OBLIQUE}, or + * {@link Font#FONT_STYLE_BACKSLANT}. + * @param weight One of {@link Font#FONT_WEIGHT_NORMAL}, + * {@link Font#FONT_WEIGHT_BOLD}, + * {@link Font#FONT_WEIGHT_100}, + * {@link Font#FONT_WEIGHT_200}, + * {@link Font#FONT_WEIGHT_300}, + * {@link Font#FONT_WEIGHT_400}, + * {@link Font#FONT_WEIGHT_500}, + * {@link Font#FONT_WEIGHT_600}, + * {@link Font#FONT_WEIGHT_700}, + * {@link Font#FONT_WEIGHT_800},or + * {@link Font#FONT_WEIGHT_900}. + * @param variant One of {@link Font#FONT_VARIANT_NORMAL}, or + * {@link Font#FONT_VARIANT_SMALL_CAPS}. + * @param stretch One of {@link Font#FONT_STRETCH_ULTRA_CONDENSED}, + * {@link Font#FONT_STRETCH_EXTRA_CONDENSED}, + * {@link Font#FONT_STRETCH_CONDENSED}, + * {@link Font#FONT_STRETCH_SEMI_CONDENSED}, + * {@link Font#FONT_STRETCH_NORMAL}, + * {@link Font#FONT_STRETCH_SEMI_EXPANDED}, + * {@link Font#FONT_STRETCH_EXPANDED}, + * {@link Font#FONT_STRETCH_EXTRA_EXPANDED}, or + * {@link Font#FONT_STRETCH_ULTRA_EXPANDED}. + * @param simulatedSmallCaps To prevent this font-description from being + * used to simulate small-caps, set this value to {@link Float#NaN}. + * Otherwise, set it to the percentage which should be applied to the + * font-size for the small caps. For example, if set to 80%, and the + * font-size is 12 points, the resulting small-caps will be presented at + * 9.6 points. + * @param simulatedOblique To prevent this font-description from being + * used to simulate oblique, set this value to {@link Float#NaN}. + * Otherwise, set it to the number of degrees clockwise that the font should + * be skewed to simulate oblique. + * @param simulatedBackslant To prevent this font-description from being + * used to simulate backslant, set this value to {@link Float#NaN}. + * Otherwise, set it to the number of degrees counterclockwise that the font + * should be skewed to simulate backslant. + * @param simulatedStretch Array containing percentages by which the font + * should be stretched horizontally for various font-stretch values. + * Values greater than 100 will result in wider characters. + * Values less than 100 will result in narrower characters. + * Invalid or unset amounts are indicated by the value {@link Float#NaN}. + * Element 0 corresponds to ultra-condensed (the narrowest value), and + * element 7 corresponds to ultra-expanded (the widest value). + * Note that there is no element for "normal", since that does not need to + * be simulated. * @throws FontException If <code>fontFamily</code> or <code>fontID</code> * are not already registered. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-20 02:30:35
|
Revision: 444 Author: victormote Date: 2006-03-19 18:30:30 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=444&view=rev Log Message: ----------- Add method for registering a font-description item. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-20 01:54:37 UTC (rev 443) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-20 02:30:30 UTC (rev 444) @@ -165,4 +165,21 @@ */ public boolean isRegisteredFont(String fontID) ; + /** + * Register a font description for use by the system. + * @param fontFamily The name of the font-family in which this font should + * be registered. + * @param fontID The font ID for the font that should be registered. + * @param encoding The encoding, if any, that should be used by this + * font description. Set this value to null unless you wish to override + * the encoding for this font. + * @throws FontException If <code>fontFamily</code> or <code>fontID</code> + * are not already registered. + */ + public void registerFontDescription(String fontFamily, String fontID, + Encoding encoding, byte style, short weight, byte variant, + byte stretch, float simulatedSmallCaps, float simulatedOblique, + float simulatedBackslant, float[] simulatedStretch) + throws FontException ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-20 01:54:42
|
Revision: 443 Author: victormote Date: 2006-03-19 17:54:37 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=443&view=rev Log Message: ----------- Add method canEncode(). Modified Paths: -------------- trunk/axsl/axsl-ps/src/java/org/axsl/ps/Encoding.java Modified: trunk/axsl/axsl-ps/src/java/org/axsl/ps/Encoding.java =================================================================== --- trunk/axsl/axsl-ps/src/java/org/axsl/ps/Encoding.java 2006-03-19 23:56:07 UTC (rev 442) +++ trunk/axsl/axsl-ps/src/java/org/axsl/ps/Encoding.java 2006-03-20 01:54:37 UTC (rev 443) @@ -102,4 +102,12 @@ */ public int getLastIndex() ; + /** + * Determine whether a given Unicode code point can be encoded by this + * Encoding. + * @param codePoint The Unicode code point to be tested. + * @return True if this Encoding can encode <code>codePoint</code>. + */ + public boolean canEncode(int codePoint) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-19 23:56:17
|
Revision: 442 Author: victormote Date: 2006-03-19 15:56:07 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=442&view=rev Log Message: ----------- Add new methods to allow external font registration. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-19 19:18:01 UTC (rev 441) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-19 23:56:07 UTC (rev 442) @@ -24,6 +24,8 @@ import org.axsl.font.output.FontOutputFactory; import org.axsl.ps.Encoding; +import java.net.URL; + /** * <p>FontServer provides some basic system-wide services such as listing * available fonts.</p> @@ -144,4 +146,23 @@ */ public String getFontFamilyForAlias(String alias) ; + /** + * Register a font for use by the system. + * @param fontID A unique ID for this font (e.g. "Courier-Bold"). + * @throws FontException If a font with this <code>fontID</code> is already + * registered. + */ + public void registerFont(String fontID, URL fontFileURL, + URL metricsFileURL, String collectionID, String embed, + String systemName) throws FontException ; + + /** + * Indicates whether a font has already been registered for use by the + * system. + * @param fontID The unique font ID for the font (e.g. "Courier-Bold"). + * @return True iff a font with ID of <code>fontID</code> is already + * registered. + */ + public boolean isRegisteredFont(String fontID) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-19 19:18:09
|
Revision: 441 Author: victormote Date: 2006-03-19 11:18:01 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=441&view=rev Log Message: ----------- Add new methods to allow external font registration. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-15 00:26:24 UTC (rev 440) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-19 19:18:01 UTC (rev 441) @@ -110,4 +110,38 @@ */ public boolean fontOutputFactoryAvailable(String mime); + /** + * Register a font-family for use by the system. + * @param name The name of the font-family (e.g. "Courier"). + * @throws FontException If the font-family is already registered. + */ + public void registerFontFamily(String name) throws FontException ; + + /** + * Indicates whether a font-family has already been registered for use by + * the system. + * @param name The name of the font-family (e.g. "Courier"). + * @return True iff the font-family is already registered. + */ + public boolean isRegisteredFontFamily(String name) ; + + /** + * Add a font-family alias. + * @param alias The name of the font-family alias (e.g. "sans-serif"). + * @param realFamily The name of the real font-family to which this alias + * should be associated (e.g. "Helvetica"). + * @throws FontException If the font-family alias is already registered, or + * if <code>realFamily</code> is not a registered font-family. + */ + public void registerFontFamilyAlias(String alias, String realFamily) + throws FontException; + + /** + * Finds the font-family that is associated with a given font-family alias. + * @param alias The name of the font-family alias. + * @return The name of the font-family to which the alias is pointed, or + * null if there is no font-family alias registered for <code>alias</code>. + */ + public String getFontFamilyForAlias(String alias) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-15 00:26:29
|
Revision: 440 Author: victormote Date: 2006-03-14 16:26:24 -0800 (Tue, 14 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=440&view=rev Log Message: ----------- Add some new methods. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java 2006-03-15 00:07:18 UTC (rev 439) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java 2006-03-15 00:26:24 UTC (rev 440) @@ -83,6 +83,29 @@ public void close(OutputStream stream) throws IOException ; -// public PDFFont getPDFFont(FontUse fontUse) throws PDFException ; + /** + * Looks up or creates a PDFFont for a given font. + * @param fontUse The font instance for which a PDFFont is needed. + * @return The PDFFont that is tied to <code>fontUse</code>. + */ + public PDFFont getPDFFont(FontUse fontUse) ; + /** + * Get the root Outlines object. + */ + public PDFOutlineParent getOutlineRoot() ; + + /** + * Resets the Graphics State. This should usually be done at the beginning + * of rendering a new page. + */ + public void resetGraphicsState() ; + + /** + * Writes any used but unwritten indirect objects into the stream. + * This can be done as often as desired. + * @param stream The OutputStream to which the output should be written. + */ + public void writeIndirectObjects(OutputStream stream) throws IOException ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-15 00:07:30
|
Revision: 439 Author: victormote Date: 2006-03-14 16:07:18 -0800 (Tue, 14 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=439&view=rev Log Message: ----------- Add new methods and a new interface. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java Added Paths: ----------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFLink.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-14 23:07:58 UTC (rev 438) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-15 00:07:18 UTC (rev 439) @@ -21,6 +21,7 @@ package org.axsl.pdf; import java.awt.Color; +import java.awt.geom.Rectangle2D; /** * Implementations of this class create instances of PDF-related classes. @@ -115,4 +116,39 @@ */ public PDFColor createPDFColor(Color color) ; + /** + * Create an implementation-specific PDFPage instance. + * @param document The PDFDocument for whom this instance is created. + * Implementations are at liberty to insist that this be a PDFDocument + * implementation known to the implementation. + * @param pagewidth The width of the page that should be created, in + * millipoints. + * @param pageheight The height of the page that should be created, in + * millipoints. + * @return An implementation-specific PDFPage instance. + * @throws PDFException If PDFDocument is not of a type supported by the + * implementation. + */ + public PDFPage createPDFPage(PDFDocument document, int pagewidth, + int pageheight) throws PDFException ; + + /** + * Create an implementation-specific PDFLink instance. + * @param document The PDFDocument for whom this instance is created. + * Implementations are at liberty to insist that this be a PDFDocument + * implementation known to the implementation. + * @param page The PDFPage on which this destination should be created. + * Implementations are at liberty to insist that this be a PDFPage + * implementation known to the implementation. + * @param linkRectangle The rectangle which activates the link. + * @param destination The destination to which the user should be taken + * when the link is activated. + * @return An implementation-specific PDFLink instance. + * @throws PDFException If PDFDocument is not of a type supported by the + * implementation. + */ + public PDFLink createPDFLink(PDFDocument document, PDFPage page, + Rectangle2D.Float linkRectangle, String destination) + throws PDFException ; + } Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFLink.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFLink.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFLink.java 2006-03-15 00:07:18 UTC (rev 439) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Link. + */ +public interface PDFLink { + +} Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java 2006-03-14 23:07:58 UTC (rev 438) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java 2006-03-15 00:07:18 UTC (rev 439) @@ -20,9 +20,26 @@ package org.axsl.pdf; +import java.awt.geom.Rectangle2D; + /** * A PDF Page. */ public interface PDFPage { + /** + * Create a link object in the PDF add it to this page. + * @param rect The clickable rectangle. + * @param destination The destination. + * @param externalLink Set to true to create an external link. + */ + public PDFLink makeLink(Rectangle2D.Float rect, String destination, + boolean externalLink) ; + + /** + * Return the content stream that contains the content of this page. + * @return This page's content stream. + */ + public PDFContentStream getContentStream() ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-14 23:08:07
|
Revision: 438 Author: victormote Date: 2006-03-14 15:07:58 -0800 (Tue, 14 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=438&view=rev Log Message: ----------- Add some new methods. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-14 22:56:27 UTC (rev 437) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-14 23:07:58 UTC (rev 438) @@ -108,4 +108,11 @@ PDFDocument document, String name, PDFExplicitDestination explicit) throws PDFException ; + /** + * Create an implementation-specific PDFColor instance. + * @param color The color that should be created. + * @return An implementation-specific PDFColor instance. + */ + public PDFColor createPDFColor(Color color) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-14 22:56:34
|
Revision: 437 Author: victormote Date: 2006-03-14 14:56:27 -0800 (Tue, 14 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=437&view=rev Log Message: ----------- Add some new methods. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-13 23:48:26 UTC (rev 436) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-14 22:56:27 UTC (rev 437) @@ -70,4 +70,42 @@ String internalDestination, Color color, boolean italic, boolean bold) throws PDFException ; + /** + * Create an implementation-specific PDFExplicitDestination instance. + * @param document The PDFDocument for whom this instance is created. + * Implementations are at liberty to insist that this be a PDFDocument + * implementation known to the implementation. + * @param page The PDFPage on which this destination should be created. + * Implementations are at liberty to insist that this be a PDFPage + * implementation known to the implementation. + * @param xPosition The horizontal location, on the page, of the + * destination. Position 0, 0 is the lower left corner of the page. + * @param yPosition The vertical location, on the page, of the + * destination. Position 0, 0 is the lower left corner of the page. + * @return An implementation-specific PDFExplicitDestination instance. + * @throws PDFException If PDFDocument or PDFPage are not of types + * supported by the implementation. + */ + public PDFExplicitDestination createPDFExplicitDestination( + PDFDocument document, PDFPage page, float xPosition, + float yPosition) throws PDFException ; + + /** + * Create an implementation-specific PDFNamedDestination instance. + * @param document The PDFDocument for whom this instance is created. + * Implementations are at liberty to insist that this be a PDFDocument + * implementation known to the implementation. + * @param name The name that should be assigned to this named destination. + * @param explicit The explicit destination to which <code>name</code> + * should be attached. + * Implementations are at liberty to insist that this be a + * PDFExplicitDestination implementation known to the implementation. + * @return An implementation-specific PDFExplicitDestination instance. + * @throws PDFException If PDFDocument or PDFExplicitDestination are not of + * types supported by the implementation. + */ + public PDFNamedDestination createPDFNamedDestination( + PDFDocument document, String name, PDFExplicitDestination explicit) + throws PDFException ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |