axsl-commit Mailing List for aXSL (Page 102)
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
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <vic...@us...> - 2006-04-29 15:55:24
|
Revision: 468 Author: victormote Date: 2006-04-29 08:55:15 -0700 (Sat, 29 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=468&view=rev Log Message: ----------- Add some doc for the graphic module. Modified Paths: -------------- trunk/axsl/doc/web/00-rsrc/include/leftmenu.html trunk/axsl/doc/web/modules.html Added Paths: ----------- trunk/axsl/doc/web/graphic/ trunk/axsl/doc/web/graphic/index.html Modified: trunk/axsl/doc/web/00-rsrc/include/leftmenu.html =================================================================== --- trunk/axsl/doc/web/00-rsrc/include/leftmenu.html 2006-04-29 15:45:26 UTC (rev 467) +++ trunk/axsl/doc/web/00-rsrc/include/leftmenu.html 2006-04-29 15:55:15 UTC (rev 468) @@ -41,6 +41,12 @@ <tr> <td class="Bullet1"> </td> <td class="Menu1"> + <a class="Menu" href="/graphic/">axslGraphic</a> + </td> + </tr> + <tr> + <td class="Bullet1"> </td> + <td class="Menu1"> <a class="Menu" href="/font/">axslFont</a> </td> </tr> Added: trunk/axsl/doc/web/graphic/index.html =================================================================== --- trunk/axsl/doc/web/graphic/index.html (rev 0) +++ trunk/axsl/doc/web/graphic/index.html 2006-04-29 15:55:15 UTC (rev 468) @@ -0,0 +1,46 @@ +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + +<head> + <title>aXSL: axslGraphic</title> + <meta name="content-revised" + content="$Date$"/> + <!--#include virtual="/00-rsrc/include/standard-head.html" --> +</head> + +<body> + +<!--#include virtual="/00-rsrc/include/leftmenu.html" --> + +<h1>aXSL: axslGraphic</h1> +<h2>Contents</h2> +<ul> + <li><a href="#intro">Introduction</a></li> + <li><a href="#implementations">Known Implementations</a></li> + <li><a href="#reference-apps">Reference Applications</a></li> +</ul> + +<h2><a name="intro">Introduction</a></h2> +<p>The Graphic module provides read-only access to raster (e.g. TIFF, JPEG), +and vector (e.g. SVG, EPS) graphics files. +Implementations parse these files and make data within them available to client +applications.</p> + +<h2><a name="implementations">Known Implementations</a></h2> +<p>The known implementations of axslGraphic are:</p> +<ul> + <li>[open source] <a href="http://www.foray.org/module/graphic/">FOrayGraphic</a></li> +</ul> + +<h2><a name="reference-apps">Reference Applications</a></h2> +<p>Reference applications contain working code that <em>uses </em>axslGraphic:</p> +<ul> + <li>[open source] <a href="http://www.foray.org/">FOray</a></li> +</ul> + +<!--#include virtual="/00-rsrc/include/leftmenu-end.html" --> +</body> +</html> Property changes on: trunk/axsl/doc/web/graphic/index.html ___________________________________________________________________ Name: svn:keywords + "Author Id Rev Date URL" Name: svn:eol-style + native Modified: trunk/axsl/doc/web/modules.html =================================================================== --- trunk/axsl/doc/web/modules.html 2006-04-29 15:45:26 UTC (rev 467) +++ trunk/axsl/doc/web/modules.html 2006-04-29 15:55:15 UTC (rev 468) @@ -18,6 +18,7 @@ <h3>Existing Modules</h3> <ul> + <li><a href="/graphic/">axslGraphic</a></li> <li><a href="/font/">axslFont</a></li> <li><a href="/fotree/">axslFOTree</a></li> </ul> @@ -26,10 +27,6 @@ <p>The following sections describe areas of possible additional standard modularity.</p> -<h5><a name="graphics">Graphics</a></h5> -<p>Graphics are also an easy candidate for modularization, and again might -be usable by other document systems as well.</p> - <h5><a name="text">Text</a></h5> <p>Text interfaces could include interfaces to line-breaking algorithms, glyph substitution routines, and possibly page-breaking algorithms. Again, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-29 15:45:36
|
Revision: 467 Author: victormote Date: 2006-04-29 08:45:26 -0700 (Sat, 29 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=467&view=rev Log Message: ----------- 1. Rework home page a bit. 2. Add fotree reference apps. 3. Make naming consistent. Modified Paths: -------------- trunk/axsl/doc/web/00-rsrc/include/leftmenu.html trunk/axsl/doc/web/fotree/index.html trunk/axsl/doc/web/index.html trunk/axsl/doc/web/modules.html Modified: trunk/axsl/doc/web/00-rsrc/include/leftmenu.html =================================================================== --- trunk/axsl/doc/web/00-rsrc/include/leftmenu.html 2006-04-29 15:25:46 UTC (rev 466) +++ trunk/axsl/doc/web/00-rsrc/include/leftmenu.html 2006-04-29 15:45:26 UTC (rev 467) @@ -41,13 +41,13 @@ <tr> <td class="Bullet1"> </td> <td class="Menu1"> - <a class="Menu" href="/font/">axsl Font</a> + <a class="Menu" href="/font/">axslFont</a> </td> </tr> <tr> <td class="Bullet1"> </td> <td class="Menu1"> - <a class="Menu" href="/fotree/">axsl FOTree</a> + <a class="Menu" href="/fotree/">axslFOTree</a> </td> </tr> <tr class="MenuHead"> Modified: trunk/axsl/doc/web/fotree/index.html =================================================================== --- trunk/axsl/doc/web/fotree/index.html 2006-04-29 15:25:46 UTC (rev 466) +++ trunk/axsl/doc/web/fotree/index.html 2006-04-29 15:45:26 UTC (rev 467) @@ -19,7 +19,9 @@ <h2>Contents</h2> <ul> <li><a href="#intro">Introduction</a></li> - <li><a href="#missing">Missing Interfaces</a></li> + <li><a href="#missing">Missing Interfaces?</a></li> + <li><a href="#implementations">Known Implementations</a></li> + <li><a href="#reference-apps">Reference Applications</a></li> </ul> <h2><a name="intro">Introduction</a></h2> @@ -44,6 +46,18 @@ <li>ConditionalPageMasterReference</li> </ul> +<h2><a name="implementations">Known Implementations</a></h2> +<p>The known implementations of axslFOTree are:</p> +<ul> + <li>[open source] <a href="http://www.foray.org/module/fotree/">FOrayFOTree</a></li> +</ul> + +<h2><a name="reference-apps">Reference Applications</a></h2> +<p>Reference applications contain working code that <em>uses </em>axslFOTree:</p> +<ul> + <li>[open source] <a href="http://www.foray.org/">FOray</a></li> +</ul> + <!--#include virtual="/00-rsrc/include/leftmenu-end.html" --> </body> </html> Modified: trunk/axsl/doc/web/index.html =================================================================== --- trunk/axsl/doc/web/index.html 2006-04-29 15:25:46 UTC (rev 466) +++ trunk/axsl/doc/web/index.html 2006-04-29 15:45:26 UTC (rev 467) @@ -17,11 +17,14 @@ <h1>Welcome to aXSL</h1> <h2><a name="intro">Introduction</a></h2> -<p><strong>aXSL</strong> (pronounced "axle") is an attempt to create standards -for processing <a rel="external" href="http://www.w3.org/TR/xsl">XSL-FO</a> -documents. +<p><strong>aXSL</strong> (pronounced "axle"), is an <strong>A</strong>PI +for processing <strong>XSL</strong>-FO documents. +<a rel="external" href="http://www.w3.org/TR/xsl">XSL-FO</a> is an XML-based +standard for describing the format of document content. +The main purpose of aXSL is to promote, to the extent possible, reuse and +consistency between various XSL-FO implementations. It is possible that some of the standards will be useful for general document -processing as well.</p> +processing (i.e. non-XSL-FO) as well.</p> <p>There are some potential benefits to both users and developers of XSL-FO processors for standardization, including more consistent configuration, @@ -42,13 +45,8 @@ <p>In addition to written standards, it is the goal of aXSL to deliver usable interfaces and abstract classes for at least the java programming language.</p> -<p>aXSL was launched on November 4, 2004. The contents and information on this -site should be considered experimental at best, but more like brainstorming -in reality. It is too soon to tell whether -these general ideas are useful or not, or whether there will be general support -for them if they are.</p> - -<p>If you are interested in participating in the design of aXSL, or have +<p>aXSL was launched on November 4, 2004. +If you are interested in participating in the design of aXSL, or have questions about how to use it, please subscribe to the <a href="https://lists.sourceforge.net/lists/listinfo/axsl-user" rel="external">aXSL User Mailing List</a>. Modified: trunk/axsl/doc/web/modules.html =================================================================== --- trunk/axsl/doc/web/modules.html 2006-04-29 15:25:46 UTC (rev 466) +++ trunk/axsl/doc/web/modules.html 2006-04-29 15:45:26 UTC (rev 467) @@ -18,7 +18,8 @@ <h3>Existing Modules</h3> <ul> - <li><a href="/font/index.html">axslFont</a></li> + <li><a href="/font/">axslFont</a></li> + <li><a href="/fotree/">axslFOTree</a></li> </ul> <h3>Potential Modules</h3> @@ -37,10 +38,6 @@ <h5><a name="hyphen">Hyphenation</a></h5> <p>This could be considered a subset of text processing.</p> -<h5><a name="fotree">FOTree</a></h5> -<p>Interfaces here would describe standard ways for other system components -to retrieve FOTree data.</p> - <h5><a name="areatree">AreaTree</a></h5> <p>AreaTree may benefit from as many as three APIs because it seems at the moment anyway that there are at least two good ways of handling the Input side, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-29 15:25:58
|
Revision: 466 Author: victormote Date: 2006-04-29 08:25:46 -0700 (Sat, 29 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=466&view=rev Log Message: ----------- Add some doc on the FOTree interfaces. Modified Paths: -------------- trunk/axsl/doc/web/00-rsrc/include/leftmenu.html Added Paths: ----------- trunk/axsl/doc/web/fotree/ trunk/axsl/doc/web/fotree/index.html Modified: trunk/axsl/doc/web/00-rsrc/include/leftmenu.html =================================================================== --- trunk/axsl/doc/web/00-rsrc/include/leftmenu.html 2006-04-28 20:28:33 UTC (rev 465) +++ trunk/axsl/doc/web/00-rsrc/include/leftmenu.html 2006-04-29 15:25:46 UTC (rev 466) @@ -41,9 +41,15 @@ <tr> <td class="Bullet1"> </td> <td class="Menu1"> - <a class="Menu" href="/font/index.html">axslFont</a> + <a class="Menu" href="/font/">axsl Font</a> </td> </tr> + <tr> + <td class="Bullet1"> </td> + <td class="Menu1"> + <a class="Menu" href="/fotree/">axsl FOTree</a> + </td> + </tr> <tr class="MenuHead"> <td class="MenuHead" colspan="2">Project</td> </tr> Added: trunk/axsl/doc/web/fotree/index.html =================================================================== --- trunk/axsl/doc/web/fotree/index.html (rev 0) +++ trunk/axsl/doc/web/fotree/index.html 2006-04-29 15:25:46 UTC (rev 466) @@ -0,0 +1,49 @@ +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + +<head> + <title>aXSL: axslFOTree</title> + <meta name="content-revised" + content="$Date$"/> + <!--#include virtual="/00-rsrc/include/standard-head.html" --> +</head> + +<body> + +<!--#include virtual="/00-rsrc/include/leftmenu.html" --> + +<h1>aXSL: axslFOTree</h1> +<h2>Contents</h2> +<ul> + <li><a href="#intro">Introduction</a></li> + <li><a href="#missing">Missing Interfaces</a></li> +</ul> + +<h2><a name="intro">Introduction</a></h2> +<p>The FOTree module provides access to the XSL-FO objects and properties in the +underlying document content. Implementations parse an FO file or content stream +and make that data available to client applications.</p> + +<h2><a name="missing">Missing Interfaces?</a></h2> +<p>There are several pagination-related XSL-FO objects that do not have +corresponding classes in the aXSL FOTree. +These are not unimportant, but their operation is entirely internal to the +FOTree. +Client applications only need to know what SimplePageMaster they should use, so +the "details" of these classes are hidden from the client applications:</p> + +<ul> + <li>LayoutMasterSet</li> + <li>PageSequenceMaster</li> + <li>SinglePageMasterReference</li> + <li>RepeatablePageMasterReference</li> + <li>RepeatablePageMasterAlternatives</li> + <li>ConditionalPageMasterReference</li> +</ul> + +<!--#include virtual="/00-rsrc/include/leftmenu-end.html" --> +</body> +</html> Property changes on: trunk/axsl/doc/web/fotree/index.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-04-28 20:28:44
|
Revision: 465 Author: victormote Date: 2006-04-28 13:28:33 -0700 (Fri, 28 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=465&view=rev Log Message: ----------- 1. For font-selection, require a value representing a font-selection-strategy. 2. Add static method to FontUtility to convert String font-selection-strategy values to integral representations. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java trunk/axsl/axsl-font/src/java/org/axsl/font/FontUtility.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-04-28 16:56:48 UTC (rev 464) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java 2006-04-28 20:28:33 UTC (rev 465) @@ -122,6 +122,12 @@ /** Font-stretch constant indicating no preference. */ public static final byte FONT_STRETCH_ANY = Byte.MIN_VALUE; + /** font-selection-strategy constant indicating "character-by-character". */ + public static final byte FONT_SELECTION_CBC = 0; + + /** font-selection-strategy constant indicating "auto". */ + public static final byte FONT_SELECTION_AUTO = 1; + /** Font-complexity constant indicating that the complexity is not known. */ public static final byte FONT_COMPLEXITY_UNKNOWN = -1; Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java 2006-04-28 16:56:48 UTC (rev 464) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java 2006-04-28 20:28:33 UTC (rev 465) @@ -44,6 +44,9 @@ * Accepts the client's description of the desired font, and returns the * best-fitting Font found, using the algorithm specified by the XSL-FO * 1.1 Standard. + * @param selectionStrategy One of {@link Font#FONT_SELECTION_CBC} (for + * "character-by-character" selection) or {@link Font#FONT_SELECTION_AUTO} + * (for "auto" selection"). * @param familyList An array of possible font family names from which to * choose the font. * The most desirable font-family name is listed first, then the next @@ -94,13 +97,15 @@ * @see #selectFontCSS * @throws FontException if there is no matching font. */ - public FontUse selectFontXSL(String[] familyList, int style, int weight, - int variant, int stretch, int size, int codePoint) - throws FontException; + public FontUse selectFontXSL(int selectionStrategy, String[] familyList, + int style, int weight, int variant, int stretch, int size, + int codePoint) throws FontException; /** * The same as {@link #selectFontXSL}, except that the algorithm specified * by CSS 2.1 is used instead. + * Note also that CSS has no concept of a font-selection-strategy as XSL-FO + * does. * @param familyList See {@link #selectFontXSL}. * Client applications may use {@link FontUtility#cssFontFamily(String)} to * convert String input into the value expected here. Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontUtility.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontUtility.java 2006-04-28 16:56:48 UTC (rev 464) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontUtility.java 2006-04-28 20:28:33 UTC (rev 465) @@ -38,6 +38,34 @@ } /** + * Converts XSL-FO String input for font-selection-strategy into a value + * expected by {@link FontConsumer#selectFontXSL(int, String[], int, int, + * int, int, int, int)}. + * @param input The XSL-FO-style String to be converted. + * @param lowerCaseOnly Set to true to insist that all input values be + * lowercase. + * @return One of {@link Font#FONT_SELECTION_CBC} or + * {@link Font#FONT_SELECTION_AUTO}. + * For invalid input, -1. + */ + public static byte foFontSelectionStrategy(String input, + boolean lowerCaseOnly) { + if (input == null) { + return -1; + } + if (! lowerCaseOnly) { + input.toLowerCase(); + } + if (input.equals("character-by-character")) { + return Font.FONT_SELECTION_CBC; + } + if (input.equals("auto")) { + return Font.FONT_SELECTION_AUTO; + } + return -1; + } + + /** * Converts a CSS2-style String input for font-style into a value expected * by {@link FontConsumer#selectFontCSS(String[], int, int, int, int, int, * int)}. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-28 16:56:57
|
Revision: 464 Author: victormote Date: 2006-04-28 09:56:48 -0700 (Fri, 28 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=464&view=rev Log Message: ----------- Add links to API doc. Modified Paths: -------------- trunk/axsl/doc/web/00-rsrc/include/leftmenu.html Added Paths: ----------- trunk/axsl/doc/web/api.html Modified: trunk/axsl/doc/web/00-rsrc/include/leftmenu.html =================================================================== --- trunk/axsl/doc/web/00-rsrc/include/leftmenu.html 2006-04-28 16:41:30 UTC (rev 463) +++ trunk/axsl/doc/web/00-rsrc/include/leftmenu.html 2006-04-28 16:56:48 UTC (rev 464) @@ -23,6 +23,12 @@ <a class="Menu" href="/">Home</a> </td> </tr> + <tr> + <td class="Bullet1"> </td> + <td class="Menu1"> + <a class="Menu" href="/api.html">API</a> + </td> + </tr> <tr class="MenuHead"> <td class="MenuHead" colspan="2">Modules</td> </tr> Added: trunk/axsl/doc/web/api.html =================================================================== --- trunk/axsl/doc/web/api.html (rev 0) +++ trunk/axsl/doc/web/api.html 2006-04-28 16:56:48 UTC (rev 464) @@ -0,0 +1,29 @@ +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + +<head> + <title>aXSL: API</title> + <meta name="content-revised" + content="$Date$"/> + <!--#include virtual="/00-rsrc/include/standard-head.html" --> +</head> + +<body> +<!--#include virtual="/00-rsrc/include/leftmenu.html" --> + +<h1>The aXSL API</h1> + +<h2>Java API</h2> +<p>There following javadocs are available:</p> +<ul> + <li><a href="/api/java/repos/javadoc-api/">Current Repository</a>. This +documentation attempts to reflect what is currently in the source code +repository, and is not tied to any release.</li> +</ul> + +<!--#include virtual="/00-rsrc/include/leftmenu-end.html" --> +</body> +</html> Property changes on: trunk/axsl/doc/web/api.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-04-28 16:41:41
|
Revision: 463 Author: victormote Date: 2006-04-28 09:41:30 -0700 (Fri, 28 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=463&view=rev Log Message: ----------- Move some font doc from foray to axsl. Modified Paths: -------------- trunk/axsl/doc/web/font/index.html Modified: trunk/axsl/doc/web/font/index.html =================================================================== --- trunk/axsl/doc/web/font/index.html 2006-04-28 02:54:47 UTC (rev 462) +++ trunk/axsl/doc/web/font/index.html 2006-04-28 16:41:30 UTC (rev 463) @@ -19,10 +19,14 @@ <h2>Contents</h2> <ul> <li><a href="#intro">Introduction</a></li> - <li><a href="#features">Features</a></li> - <li><a href="#configure">Font Configuration</a></li> + <li><a href="#xsl-fo">XSL-FO Conformance</a></li> <li><a href="#api">API</a></li> <li><a href="#sample">Sample Code</a></li> + <li><a href="#font-selection-strategy">Notes on +font-selection-strategy</a></li> + <li><a href="#simulated-small-caps">Notes on simulated small-caps</a></li> + <li><a href="#configure">Font Configuration</a></li> + <li><a href="#charset">Character Set</a></li> <li><a href="#implementations">Known Implementations</a></li> <li><a href="#reference-apps">Reference Applications</a></li> </ul> @@ -31,32 +35,66 @@ <p>Information on this page reflects information about the current aXSL repository.</p> -<h2><a name="features">Features</a></h2> -<ul> - <li>Unicode 4.0 compatibility. -The aXSL interfaces use 32-bit int representations for characters, providing -room for the 21-bit Unicode 4.0 extended character set. -Here are some useful links regarding this issue: - <ul> - <li><a -href="http://java.sun.com/developer/technicalArticles/Intl/Supplementary/">Supplementary -Characters in the Java Platform</a></li> - </ul> - </li> -</ul> +<h2><a name="xsl-fo">XSL-FO Conformance</a></h2> +<p>aXSLFont is intended to provide an interface that can be used to build +applications conformant to the XSL-FO standard. +The following table lists items related to this conformance. +Consult implementation documentation for implementation limitations or +exceptions:</p> +<table> + <thead> + <tr> + <td>Standard Item</td> + <td>XSL-FO 1.0 Citations</td> + <td>Conformance</td> + </tr> + </thead> + <tr> + <td>font-family</td> + <td>7.8.2</td> + <td>yes</td> + </tr> + <tr> + <td>font-selection-strategy</td> + <td>7.8.3</td> + <td>N/A. This is really an FO Tree issue. See +<a href="#font-selection-strategy">"Notes on font-selection-strategy"</a> + below.</td> + </tr> + <tr> + <td>font-size</td> + <td>7.8.4</td> + <td>Yes.</td> + </tr> + <tr> + <td>font-stretch</td> + <td>7.8.5</td> + <td>Yes.</td> + </tr> + <tr> + <td>font-size-adjust</td> + <td>7.8.6</td> + <td>N/A. This is actually not a font system issue, but an FO Tree issue.</td> + </tr> + <tr> + <td>font-style</td> + <td>7.8.7</td> + <td>Yes.</td> + </tr> + <tr> + <td>font-variant</td> + <td>7.8.8</td> + <td>Yes. See also <a href="#simulated-small-caps">"Notes on simulated + small-caps" below.</a></td> + </tr> + <tr> + <td>font-weight</td> + <td>7.8.9</td> + <td>Yes.</td> + </tr> +</table> -<h2><a name="configure">Font Configuration</a></h2> -<p>Many applications need a way for users to communicate information about -available fonts to them. -aXSL has developed a font-configuration DTD that can optionally be used for -this purpose. -It is quite possible to use the axslFont interfaces and use some other scheme -for obtaining information about available fonts. -See <a href="configure.html">Font Configuration</a> for user documentation -about this DTD.</p> - <h2><a name="api">API</a></h2> - <p>axslFont follows a client-server architecture. The client application (<strong>CA</strong>) requests information and an axslFont implementation provides it. @@ -176,6 +214,55 @@ <pre>FontServer fontServer = fontConsumer.getFontServer(); fontServer.releaseFontConsumer(fontConsumer);</pre> +<h2><a name="font-selection-strategy">Notes on font-selection-strategy</a></h2> +<p>To implement font-selection-strategy="character-by-character".</p> + +<p>Regarding font-selection-strategy="auto", the standard appears to provide +this possibility as an option for those with a specific strategy in mind. +We don't currently have such a strategy in mind. +If you would like to see a specific strategy implemented, please contact us on +the user mailing list.</p> + +<h2><a name="simulated-small-caps">Notes on simulated small-caps</a></h2> +<p>Simulated small-caps must be handled outside of the font system. +Flagging a font-description in the font-configuration file with a +simulated-font-stretch value merely does the following +1) allows that font to be selected with either normal or small-caps variant, +<em>and </em> +2) tells the font system what percentage the user wishes to use for small-caps, +if small-caps is selected. +So, for font-variant="small-caps", if a true small-caps variant for the font is +found, it will be selected. +If not, but a simulated small-caps font is available, it will be selected. +In the first case, the font system sees two different fonts with two different +sets of metrics. In the second case, it sees only one font. +The client application must handle the switching back and forth from one point +size to another to get the correct metrics information from this one font.</p> + +<h2><a name="configure">Font Configuration</a></h2> +<p>Many applications need a way for users to communicate information about +available fonts to them. +aXSL has developed a font-configuration DTD that can optionally be used for +this purpose. +It is quite possible to use the axslFont interfaces and use some other scheme +for obtaining information about available fonts. +See <a href="configure.html">Font Configuration</a> for user documentation +about this DTD.</p> + +<h2><a name="charset">Character Set</a></h2> +<ul> + <li>Unicode 4.0 compatibility. +The aXSL interfaces use 32-bit int representations for characters, providing +room for the 21-bit Unicode 4.0 extended character set. +Here are some useful links regarding this issue: + <ul> + <li><a +href="http://java.sun.com/developer/technicalArticles/Intl/Supplementary/">Supplementary +Characters in the Java Platform</a></li> + </ul> + </li> +</ul> + <h2><a name="implementations">Known Implementations</a></h2> <p>The known implementations of axslFont are:</p> <ul> @@ -183,7 +270,7 @@ </ul> <h2><a name="reference-apps">Reference Applications</a></h2> -<p>Reference applications contain working code that uses axslFont:</p> +<p>Reference applications contain working code that <em>uses </em>axslFont:</p> <ul> <li>[open source] <a href="http://www.foray.org/">FOray</a></li> </ul> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-04-28 02:55:01
|
Revision: 462 Author: victormote Date: 2006-04-27 19:54:47 -0700 (Thu, 27 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=462&view=rev Log Message: ----------- Style changes only. Modified Paths: -------------- trunk/axsl/axsl-common/src/java/org/axsl/common/Constants.java trunk/axsl/axsl-graphic/src/java/org/axsl/graphic/GraphicServer.java Modified: trunk/axsl/axsl-common/src/java/org/axsl/common/Constants.java =================================================================== --- trunk/axsl/axsl-common/src/java/org/axsl/common/Constants.java 2006-04-28 02:37:26 UTC (rev 461) +++ trunk/axsl/axsl-common/src/java/org/axsl/common/Constants.java 2006-04-28 02:54:47 UTC (rev 462) @@ -904,256 +904,256 @@ "xx-small", }; - public final static short FOVAL_NUM_NEGATIVE_180 = 1; - public final static short FOVAL_NUM_NEGATIVE_270 = 2; - public final static short FOVAL_NUM_NEGATIVE_90 = 3; - public final static short FOVAL_NUM_ZERO = 4; - public final static short FOVAL_NUM_180 = 5; - public final static short FOVAL_NUM_270 = 6; - public final static short FOVAL_NUM_90 = 7; - public final static short FOVAL_ABOVE = 8; + public static final short FOVAL_NUM_NEGATIVE_180 = 1; + public static final short FOVAL_NUM_NEGATIVE_270 = 2; + public static final short FOVAL_NUM_NEGATIVE_90 = 3; + public static final short FOVAL_NUM_ZERO = 4; + public static final short FOVAL_NUM_180 = 5; + public static final short FOVAL_NUM_270 = 6; + public static final short FOVAL_NUM_90 = 7; + public static final short FOVAL_ABOVE = 8; public static final short FOVAL_ABSOLUTE = 9; - public final static short FOVAL_ABSOLUTE_COLORIMETRIC = 10; - public final static short FOVAL_ACTIVE = 11; + public static final short FOVAL_ABSOLUTE_COLORIMETRIC = 10; + public static final short FOVAL_ACTIVE = 11; public static final short FOVAL_AFTER = 12; public static final short FOVAL_AFTER_EDGE = 13; - public final static short FOVAL_ALL = 14; + public static final short FOVAL_ALL = 14; public static final short FOVAL_ALPHABETIC = 15; public static final short FOVAL_ALWAYS = 16; - public final static short FOVAL_ANY = 17; + public static final short FOVAL_ANY = 17; public static final short FOVAL_AUTO = 18; public static final short FOVAL_AUTO_EVEN = 19; public static final short FOVAL_AUTO_ODD = 20; - public final static short FOVAL_AVOID = 21; + public static final short FOVAL_AVOID = 21; public static final short FOVAL_BACKSLANT = 22; public static final short FOVAL_BASELINE = 23; public static final short FOVAL_BEFORE = 24; public static final short FOVAL_BEFORE_EDGE = 25; - public final static short FOVAL_BELOW = 26; - public final static short FOVAL_BIDI_OVERRIDE = 27; - public final static short FOVAL_BLANK = 28; - public final static short FOVAL_BLINK = 29; - public final static short FOVAL_BOLD = 30; - public final static short FOVAL_BOLDER = 31; - public final static short FOVAL_BOTH = 32; - public final static short FOVAL_BOTTOM = 33; - public final static short FOVAL_BOUNDED_IN_ONE_DIMENSION = 34; - public final static short FOVAL_CAPITALIZE = 35; - public final static short FOVAL_CENTER = 36; - public final static short FOVAL_CENTER_LEFT = 37; - public final static short FOVAL_CENTER_RIGHT = 38; - public final static short FOVAL_CENTRAL = 39; - public final static short FOVAL_CHARACTER_BY_CHARACTER = 40; - public final static short FOVAL_CHILD = 41; - public final static short FOVAL_CODE = 42; - public final static short FOVAL_COLLAPSE = 43; - public final static short FOVAL_COLLAPSE_WITH_PRECEDENCE = 44; - public final static short FOVAL_COLUMN = 45; - public final static short FOVAL_CONDENSED = 46; - public final static short FOVAL_CONSIDER_SHIFTS = 47; - public final static short FOVAL_CONTINUOUS = 48; - public final static short FOVAL_CURSIVE = 49; + public static final short FOVAL_BELOW = 26; + public static final short FOVAL_BIDI_OVERRIDE = 27; + public static final short FOVAL_BLANK = 28; + public static final short FOVAL_BLINK = 29; + public static final short FOVAL_BOLD = 30; + public static final short FOVAL_BOLDER = 31; + public static final short FOVAL_BOTH = 32; + public static final short FOVAL_BOTTOM = 33; + public static final short FOVAL_BOUNDED_IN_ONE_DIMENSION = 34; + public static final short FOVAL_CAPITALIZE = 35; + public static final short FOVAL_CENTER = 36; + public static final short FOVAL_CENTER_LEFT = 37; + public static final short FOVAL_CENTER_RIGHT = 38; + public static final short FOVAL_CENTRAL = 39; + public static final short FOVAL_CHARACTER_BY_CHARACTER = 40; + public static final short FOVAL_CHILD = 41; + public static final short FOVAL_CODE = 42; + public static final short FOVAL_COLLAPSE = 43; + public static final short FOVAL_COLLAPSE_WITH_PRECEDENCE = 44; + public static final short FOVAL_COLUMN = 45; + public static final short FOVAL_CONDENSED = 46; + public static final short FOVAL_CONSIDER_SHIFTS = 47; + public static final short FOVAL_CONTINUOUS = 48; + public static final short FOVAL_CURSIVE = 49; public static final short FOVAL_DASHED = 50; - public final static short FOVAL_DIGITS = 51; + public static final short FOVAL_DIGITS = 51; public static final short FOVAL_DISCARD = 52; - public final static short FOVAL_DISREGARD_SHIFTS = 53; - public final static short FOVAL_DOCUMENT = 54; - public final static short FOVAL_DOCUMENT_ROOT = 55; - public final static short FOVAL_DOTS = 56; + public static final short FOVAL_DISREGARD_SHIFTS = 53; + public static final short FOVAL_DOCUMENT = 54; + public static final short FOVAL_DOCUMENT_ROOT = 55; + public static final short FOVAL_DOTS = 56; public static final short FOVAL_DOTTED = 57; public static final short FOVAL_DOUBLE = 58; - public final static short FOVAL_EMBED = 59; + public static final short FOVAL_EMBED = 59; public static final short FOVAL_END = 60; public static final short FOVAL_END_ON_EVEN = 61; public static final short FOVAL_END_ON_ODD = 62; - public final static short FOVAL_ERROR_IF_OVERFLOW = 63; + public static final short FOVAL_ERROR_IF_OVERFLOW = 63; public static final short FOVAL_EVEN = 64; - public final static short FOVAL_EVEN_PAGE = 65; + public static final short FOVAL_EVEN_PAGE = 65; public static final short FOVAL_EXPANDED = 66; public static final short FOVAL_EXTRA_CONDENSED = 67; public static final short FOVAL_EXTRA_EXPANDED = 68; public static final short FOVAL_FALSE = 69; public static final short FOVAL_FANTASY = 70; - public final static short FOVAL_FAR_LEFT = 71; - public final static short FOVAL_FAR_RIGHT = 72; - public final static short FOVAL_FAST = 73; - public final static short FOVAL_FASTER = 74; - public final static short FOVAL_FEMALE = 75; - public final static short FOVAL_FIRST = 76; - public final static short FOVAL_FIRST_INCLUDING_CARRYOVER = 77; - public final static short FOVAL_FIRST_STARTING_WITHIN_PAGE = 78; + public static final short FOVAL_FAR_LEFT = 71; + public static final short FOVAL_FAR_RIGHT = 72; + public static final short FOVAL_FAST = 73; + public static final short FOVAL_FASTER = 74; + public static final short FOVAL_FEMALE = 75; + public static final short FOVAL_FIRST = 76; + public static final short FOVAL_FIRST_INCLUDING_CARRYOVER = 77; + public static final short FOVAL_FIRST_STARTING_WITHIN_PAGE = 78; public static final short FOVAL_FIXED = 79; - public final static short FOVAL_FOCUS = 80; - public final static short FOVAL_FONT_HEIGHT = 81; + public static final short FOVAL_FOCUS = 80; + public static final short FOVAL_FONT_HEIGHT = 81; public static final short FOVAL_FORCE = 82; public static final short FOVAL_GROOVE = 83; public static final short FOVAL_HANGING = 84; public static final short FOVAL_HIDDEN = 85; - public final static short FOVAL_HIDE = 86; - public final static short FOVAL_HIGH = 87; - public final static short FOVAL_HIGHER = 88; - public final static short FOVAL_HOVER = 89; + public static final short FOVAL_HIDE = 86; + public static final short FOVAL_HIGH = 87; + public static final short FOVAL_HIGHER = 88; + public static final short FOVAL_HOVER = 89; public static final short FOVAL_IDEOGRAPHIC = 90; - public final static short FOVAL_IGNORE = 91; - public final static short FOVAL_IGNORE_IF_AFTER_LINEFEED = 92; - public final static short FOVAL_IGNORE_IF_BEFORE_LINEFEED = 93; - public final static short FOVAL_IGNORE_IF_SURROUNDING_LINEFEED = 94; + public static final short FOVAL_IGNORE = 91; + public static final short FOVAL_IGNORE_IF_AFTER_LINEFEED = 92; + public static final short FOVAL_IGNORE_IF_BEFORE_LINEFEED = 93; + public static final short FOVAL_IGNORE_IF_SURROUNDING_LINEFEED = 94; public static final short FOVAL_INDEFINITE = 95; public static final short FOVAL_INHERIT = 96; public static final short FOVAL_INSET = 97; public static final short FOVAL_INSIDE = 98; - public final static short FOVAL_INTEGER_PIXELS = 99; + public static final short FOVAL_INTEGER_PIXELS = 99; public static final short FOVAL_ITALIC = 100; public static final short FOVAL_JUSTIFY = 101; - public final static short FOVAL_LANDSCAPE = 102; + public static final short FOVAL_LANDSCAPE = 102; public static final short FOVAL_LARGE = 103; public static final short FOVAL_LARGER = 104; - public final static short FOVAL_LAST = 105; - public final static short FOVAL_LAST_ENDING_WITHIN_PAGE = 106; - public final static short FOVAL_LAST_STARTING_WITHIN_PAGE = 107; + public static final short FOVAL_LAST = 105; + public static final short FOVAL_LAST_ENDING_WITHIN_PAGE = 106; + public static final short FOVAL_LAST_STARTING_WITHIN_PAGE = 107; public static final short FOVAL_LEFT = 108; - public final static short FOVAL_LEFT_SIDE = 109; + public static final short FOVAL_LEFT_SIDE = 109; /* * In ASCII, "LEFTWARDS" comes before "LEFT_SIDE". However, "left-side" * comes before "leftwards". Since any binary search will be done on * the String array, we will let it govern the order, and we will * follow it here. */ - public final static short FOVAL_LEFTWARDS = 110; - public final static short FOVAL_LEVEL = 111; + public static final short FOVAL_LEFTWARDS = 110; + public static final short FOVAL_LEVEL = 111; public static final short FOVAL_LIGHTER = 112; - public final static short FOVAL_LINE_HEIGHT = 113; - public final static short FOVAL_LINE_THROUGH = 114; - public final static short FOVAL_LINK = 115; - public final static short FOVAL_LOUD = 116; - public final static short FOVAL_LOW = 117; - public final static short FOVAL_LOWER = 118; - public final static short FOVAL_LOWERCASE = 119; - public final static short FOVAL_LR = 120; - public final static short FOVAL_LR_TB = 121; - public final static short FOVAL_LTR = 122; - public final static short FOVAL_MALE = 123; - public final static short FOVAL_MATHEMATICAL = 124; - public final static short FOVAL_MAX_HEIGHT = 125; + public static final short FOVAL_LINE_HEIGHT = 113; + public static final short FOVAL_LINE_THROUGH = 114; + public static final short FOVAL_LINK = 115; + public static final short FOVAL_LOUD = 116; + public static final short FOVAL_LOW = 117; + public static final short FOVAL_LOWER = 118; + public static final short FOVAL_LOWERCASE = 119; + public static final short FOVAL_LR = 120; + public static final short FOVAL_LR_TB = 121; + public static final short FOVAL_LTR = 122; + public static final short FOVAL_MALE = 123; + public static final short FOVAL_MATHEMATICAL = 124; + public static final short FOVAL_MAX_HEIGHT = 125; public static final short FOVAL_MEDIUM = 126; public static final short FOVAL_MIDDLE = 127; public static final short FOVAL_MONOSPACE = 128; public static final short FOVAL_NARROWER = 129; - public final static short FOVAL_NEW = 130; - public final static short FOVAL_NO_BLINK = 131; - public final static short FOVAL_NO_CHANGE = 132; - public final static short FOVAL_NO_FORCE = 133; - public final static short FOVAL_NO_LIMIT = 134; - public final static short FOVAL_NO_LINE_THROUGH = 135; - public final static short FOVAL_NO_OVERLINE = 136; - public final static short FOVAL_NO_REPEAT = 137; - public final static short FOVAL_NO_UNDERLINE = 138; - public final static short FOVAL_NO_WRAP = 139; - public final static short FOVAL_NON_UNIFORM = 140; + public static final short FOVAL_NEW = 130; + public static final short FOVAL_NO_BLINK = 131; + public static final short FOVAL_NO_CHANGE = 132; + public static final short FOVAL_NO_FORCE = 133; + public static final short FOVAL_NO_LIMIT = 134; + public static final short FOVAL_NO_LINE_THROUGH = 135; + public static final short FOVAL_NO_OVERLINE = 136; + public static final short FOVAL_NO_REPEAT = 137; + public static final short FOVAL_NO_UNDERLINE = 138; + public static final short FOVAL_NO_WRAP = 139; + public static final short FOVAL_NON_UNIFORM = 140; public static final short FOVAL_NONE = 141; public static final short FOVAL_NORMAL = 142; public static final short FOVAL_NOT_A_KEYWORD = 143; - public final static short FOVAL_NOT_BLANK = 144; - public final static short FOVAL_NOWRAP = 145; + public static final short FOVAL_NOT_BLANK = 144; + public static final short FOVAL_NOWRAP = 145; public static final short FOVAL_OBLIQUE = 146; public static final short FOVAL_ODD = 147; - public final static short FOVAL_ODD_PAGE = 148; - public final static short FOVAL_ONCE = 149; + public static final short FOVAL_ODD_PAGE = 148; + public static final short FOVAL_ONCE = 149; public static final short FOVAL_OUTSET = 150; public static final short FOVAL_OUTSIDE = 151; - public final static short FOVAL_OVERLINE = 152; - public final static short FOVAL_PAGE = 153; - public final static short FOVAL_PAGE_SEQUENCE = 154; - public final static short FOVAL_PAGINATE = 155; - public final static short FOVAL_PERCEPTUAL = 156; - public final static short FOVAL_PORTRAIT = 157; - public final static short FOVAL_PRE = 158; - public final static short FOVAL_PRESERVE = 159; - public final static short FOVAL_REFERENCE_AREA = 160; - public final static short FOVAL_RELATIVE = 161; - public final static short FOVAL_RELATIVE_COLORIMETRIC = 162; - public final static short FOVAL_REPEAT = 163; - public final static short FOVAL_REPEAT_X = 164; - public final static short FOVAL_REPEAT_Y = 165; - public final static short FOVAL_REPLACE = 166; - public final static short FOVAL_RESAMPLE_ANY_METHOD = 167; - public final static short FOVAL_RESET_SIZE = 168; - public final static short FOVAL_REST = 169; - public final static short FOVAL_RETAIN = 170; + public static final short FOVAL_OVERLINE = 152; + public static final short FOVAL_PAGE = 153; + public static final short FOVAL_PAGE_SEQUENCE = 154; + public static final short FOVAL_PAGINATE = 155; + public static final short FOVAL_PERCEPTUAL = 156; + public static final short FOVAL_PORTRAIT = 157; + public static final short FOVAL_PRE = 158; + public static final short FOVAL_PRESERVE = 159; + public static final short FOVAL_REFERENCE_AREA = 160; + public static final short FOVAL_RELATIVE = 161; + public static final short FOVAL_RELATIVE_COLORIMETRIC = 162; + public static final short FOVAL_REPEAT = 163; + public static final short FOVAL_REPEAT_X = 164; + public static final short FOVAL_REPEAT_Y = 165; + public static final short FOVAL_REPLACE = 166; + public static final short FOVAL_RESAMPLE_ANY_METHOD = 167; + public static final short FOVAL_RESET_SIZE = 168; + public static final short FOVAL_REST = 169; + public static final short FOVAL_RETAIN = 170; public static final short FOVAL_RIDGE = 171; public static final short FOVAL_RIGHT = 172; - public final static short FOVAL_RIGHT_SIDE = 173; + public static final short FOVAL_RIGHT_SIDE = 173; // See note at "LEFTWARDS" explaining the order. - public final static short FOVAL_RIGHTWARDS = 174; - public final static short FOVAL_RL = 175; - public final static short FOVAL_RL_TB = 176; - public final static short FOVAL_RTL = 177; - public final static short FOVAL_RULE = 178; - public final static short FOVAL_SANS_SERIF = 179; - public final static short FOVAL_SATURATION = 180; - public final static short FOVAL_SCALE_TO_FIT = 181; - public final static short FOVAL_SCROLL = 182; - public final static short FOVAL_SEMI_CONDENSED = 183; - public final static short FOVAL_SEMI_EXPANDED = 184; - public final static short FOVAL_SEPARATE = 185; - public final static short FOVAL_SERIF = 186; - public final static short FOVAL_SHOW = 187; - public final static short FOVAL_SILENT = 188; - public final static short FOVAL_SLOW = 189; - public final static short FOVAL_SLOWER = 190; - public final static short FOVAL_SMALL = 191; - public final static short FOVAL_SMALL_CAPS = 192; - public final static short FOVAL_SMALLER = 193; - public final static short FOVAL_SOFT = 194; + public static final short FOVAL_RIGHTWARDS = 174; + public static final short FOVAL_RL = 175; + public static final short FOVAL_RL_TB = 176; + public static final short FOVAL_RTL = 177; + public static final short FOVAL_RULE = 178; + public static final short FOVAL_SANS_SERIF = 179; + public static final short FOVAL_SATURATION = 180; + public static final short FOVAL_SCALE_TO_FIT = 181; + public static final short FOVAL_SCROLL = 182; + public static final short FOVAL_SEMI_CONDENSED = 183; + public static final short FOVAL_SEMI_EXPANDED = 184; + public static final short FOVAL_SEPARATE = 185; + public static final short FOVAL_SERIF = 186; + public static final short FOVAL_SHOW = 187; + public static final short FOVAL_SILENT = 188; + public static final short FOVAL_SLOW = 189; + public static final short FOVAL_SLOWER = 190; + public static final short FOVAL_SMALL = 191; + public static final short FOVAL_SMALL_CAPS = 192; + public static final short FOVAL_SMALLER = 193; + public static final short FOVAL_SOFT = 194; public static final short FOVAL_SOLID = 195; - public final static short FOVAL_SPACE = 196; - public final static short FOVAL_SPELL_OUT = 197; + public static final short FOVAL_SPACE = 196; + public static final short FOVAL_SPELL_OUT = 197; public static final short FOVAL_START = 198; - public final static short FOVAL_STATIC = 199; + public static final short FOVAL_STATIC = 199; public static final short FOVAL_SUB = 200; public static final short FOVAL_SUPER = 201; - public final static short FOVAL_SUPPRESS = 202; - public final static short FOVAL_TB = 203; - public final static short FOVAL_TB_RL = 204; - public final static short FOVAL_TEXT_AFTER_EDGE = 205; - public final static short FOVAL_TEXT_BEFORE_EDGE = 206; - public final static short FOVAL_TEXT_BOTTOM = 207; - public final static short FOVAL_TEXT_TOP = 208; + public static final short FOVAL_SUPPRESS = 202; + public static final short FOVAL_TB = 203; + public static final short FOVAL_TB_RL = 204; + public static final short FOVAL_TEXT_AFTER_EDGE = 205; + public static final short FOVAL_TEXT_BEFORE_EDGE = 206; + public static final short FOVAL_TEXT_BOTTOM = 207; + public static final short FOVAL_TEXT_TOP = 208; public static final short FOVAL_THICK = 209; public static final short FOVAL_THIN = 210; public static final short FOVAL_TOP = 211; - public final static short FOVAL_TRADITIONAL = 212; + public static final short FOVAL_TRADITIONAL = 212; public static final short FOVAL_TRANSPARENT = 213; - public final static short FOVAL_TREAT_AS_SPACE = 214; - public final static short FOVAL_TREAT_AS_ZERO_WIDTH_SPACE = 215; + public static final short FOVAL_TREAT_AS_SPACE = 214; + public static final short FOVAL_TREAT_AS_ZERO_WIDTH_SPACE = 215; public static final short FOVAL_TRUE = 216; - public final static short FOVAL_ULTRA_CONDENSED = 217; - public final static short FOVAL_ULTRA_EXPANDED = 218; - public final static short FOVAL_UNBOUNDED = 219; - public final static short FOVAL_UNDERLINE = 220; - public final static short FOVAL_UNIFORM = 221; - public final static short FOVAL_UPPERCASE = 222; - public final static short FOVAL_USE_CONTENT = 223; - public final static short FOVAL_USE_FONT_METRICS = 224; - public final static short FOVAL_USE_NORMAL_STYLESHEET = 225; - public final static short FOVAL_USE_SCRIPT = 226; - public final static short FOVAL_USE_TARGET_PROCESSING_CONTEXT = 227; - public final static short FOVAL_VISIBLE = 228; - public final static short FOVAL_VISITED = 229; - public final static short FOVAL_WIDER = 230; - public final static short FOVAL_WRAP = 231; - public final static short FOVAL_X_FAST = 232; - public final static short FOVAL_X_HIGH = 233; - public final static short FOVAL_X_LARGE = 234; - public final static short FOVAL_X_LOUD = 235; - public final static short FOVAL_X_LOW = 236; - public final static short FOVAL_X_SLOW = 237; - public final static short FOVAL_X_SMALL = 238; - public final static short FOVAL_X_SOFT = 239; - public final static short FOVAL_XSL_FOLLOWING = 240; - public final static short FOVAL_XSL_PRECEDING = 241; - public final static short FOVAL_XX_LARGE = 242; - public final static short FOVAL_XX_SMALL = 243; + public static final short FOVAL_ULTRA_CONDENSED = 217; + public static final short FOVAL_ULTRA_EXPANDED = 218; + public static final short FOVAL_UNBOUNDED = 219; + public static final short FOVAL_UNDERLINE = 220; + public static final short FOVAL_UNIFORM = 221; + public static final short FOVAL_UPPERCASE = 222; + public static final short FOVAL_USE_CONTENT = 223; + public static final short FOVAL_USE_FONT_METRICS = 224; + public static final short FOVAL_USE_NORMAL_STYLESHEET = 225; + public static final short FOVAL_USE_SCRIPT = 226; + public static final short FOVAL_USE_TARGET_PROCESSING_CONTEXT = 227; + public static final short FOVAL_VISIBLE = 228; + public static final short FOVAL_VISITED = 229; + public static final short FOVAL_WIDER = 230; + public static final short FOVAL_WRAP = 231; + public static final short FOVAL_X_FAST = 232; + public static final short FOVAL_X_HIGH = 233; + public static final short FOVAL_X_LARGE = 234; + public static final short FOVAL_X_LOUD = 235; + public static final short FOVAL_X_LOW = 236; + public static final short FOVAL_X_SLOW = 237; + public static final short FOVAL_X_SMALL = 238; + public static final short FOVAL_X_SOFT = 239; + public static final short FOVAL_XSL_FOLLOWING = 240; + public static final short FOVAL_XSL_PRECEDING = 241; + public static final short FOVAL_XX_LARGE = 242; + public static final short FOVAL_XX_SMALL = 243; /** Negative values for Dimensions are invalid, so -1 indicates AUTO. */ public static final byte DIMENSION_AUTO = -1; Modified: trunk/axsl/axsl-graphic/src/java/org/axsl/graphic/GraphicServer.java =================================================================== --- trunk/axsl/axsl-graphic/src/java/org/axsl/graphic/GraphicServer.java 2006-04-28 02:37:26 UTC (rev 461) +++ trunk/axsl/axsl-graphic/src/java/org/axsl/graphic/GraphicServer.java 2006-04-28 02:54:47 UTC (rev 462) @@ -40,7 +40,8 @@ * the memory for this. (Note: This is done in the makeGraphic method so * that this decision can conceivably be made separately for each graphic.) * @return The Graphic instance. - * @exception GraphicException For errors an error occured during construction + * @exception GraphicException For errors an error occured during + * construction. */ public Graphic makeGraphic(String href, URL[] baseURLs, boolean cachingThisGraphic) throws GraphicException ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
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. |