axsl-commit Mailing List for aXSL (Page 103)
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-03-20 01:54:42
|
Revision: 443 Author: victormote Date: 2006-03-19 17:54:37 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=443&view=rev Log Message: ----------- Add method canEncode(). Modified Paths: -------------- trunk/axsl/axsl-ps/src/java/org/axsl/ps/Encoding.java Modified: trunk/axsl/axsl-ps/src/java/org/axsl/ps/Encoding.java =================================================================== --- trunk/axsl/axsl-ps/src/java/org/axsl/ps/Encoding.java 2006-03-19 23:56:07 UTC (rev 442) +++ trunk/axsl/axsl-ps/src/java/org/axsl/ps/Encoding.java 2006-03-20 01:54:37 UTC (rev 443) @@ -102,4 +102,12 @@ */ public int getLastIndex() ; + /** + * Determine whether a given Unicode code point can be encoded by this + * Encoding. + * @param codePoint The Unicode code point to be tested. + * @return True if this Encoding can encode <code>codePoint</code>. + */ + public boolean canEncode(int codePoint) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-19 23:56:17
|
Revision: 442 Author: victormote Date: 2006-03-19 15:56:07 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=442&view=rev Log Message: ----------- Add new methods to allow external font registration. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-19 19:18:01 UTC (rev 441) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-19 23:56:07 UTC (rev 442) @@ -24,6 +24,8 @@ import org.axsl.font.output.FontOutputFactory; import org.axsl.ps.Encoding; +import java.net.URL; + /** * <p>FontServer provides some basic system-wide services such as listing * available fonts.</p> @@ -144,4 +146,23 @@ */ public String getFontFamilyForAlias(String alias) ; + /** + * Register a font for use by the system. + * @param fontID A unique ID for this font (e.g. "Courier-Bold"). + * @throws FontException If a font with this <code>fontID</code> is already + * registered. + */ + public void registerFont(String fontID, URL fontFileURL, + URL metricsFileURL, String collectionID, String embed, + String systemName) throws FontException ; + + /** + * Indicates whether a font has already been registered for use by the + * system. + * @param fontID The unique font ID for the font (e.g. "Courier-Bold"). + * @return True iff a font with ID of <code>fontID</code> is already + * registered. + */ + public boolean isRegisteredFont(String fontID) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-19 19:18:09
|
Revision: 441 Author: victormote Date: 2006-03-19 11:18:01 -0800 (Sun, 19 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=441&view=rev Log Message: ----------- Add new methods to allow external font registration. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-15 00:26:24 UTC (rev 440) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontServer.java 2006-03-19 19:18:01 UTC (rev 441) @@ -110,4 +110,38 @@ */ public boolean fontOutputFactoryAvailable(String mime); + /** + * Register a font-family for use by the system. + * @param name The name of the font-family (e.g. "Courier"). + * @throws FontException If the font-family is already registered. + */ + public void registerFontFamily(String name) throws FontException ; + + /** + * Indicates whether a font-family has already been registered for use by + * the system. + * @param name The name of the font-family (e.g. "Courier"). + * @return True iff the font-family is already registered. + */ + public boolean isRegisteredFontFamily(String name) ; + + /** + * Add a font-family alias. + * @param alias The name of the font-family alias (e.g. "sans-serif"). + * @param realFamily The name of the real font-family to which this alias + * should be associated (e.g. "Helvetica"). + * @throws FontException If the font-family alias is already registered, or + * if <code>realFamily</code> is not a registered font-family. + */ + public void registerFontFamilyAlias(String alias, String realFamily) + throws FontException; + + /** + * Finds the font-family that is associated with a given font-family alias. + * @param alias The name of the font-family alias. + * @return The name of the font-family to which the alias is pointed, or + * null if there is no font-family alias registered for <code>alias</code>. + */ + public String getFontFamilyForAlias(String alias) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-15 00:26:29
|
Revision: 440 Author: victormote Date: 2006-03-14 16:26:24 -0800 (Tue, 14 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=440&view=rev Log Message: ----------- Add some new methods. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java 2006-03-15 00:07:18 UTC (rev 439) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java 2006-03-15 00:26:24 UTC (rev 440) @@ -83,6 +83,29 @@ public void close(OutputStream stream) throws IOException ; -// public PDFFont getPDFFont(FontUse fontUse) throws PDFException ; + /** + * Looks up or creates a PDFFont for a given font. + * @param fontUse The font instance for which a PDFFont is needed. + * @return The PDFFont that is tied to <code>fontUse</code>. + */ + public PDFFont getPDFFont(FontUse fontUse) ; + /** + * Get the root Outlines object. + */ + public PDFOutlineParent getOutlineRoot() ; + + /** + * Resets the Graphics State. This should usually be done at the beginning + * of rendering a new page. + */ + public void resetGraphicsState() ; + + /** + * Writes any used but unwritten indirect objects into the stream. + * This can be done as often as desired. + * @param stream The OutputStream to which the output should be written. + */ + public void writeIndirectObjects(OutputStream stream) throws IOException ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-15 00:07:30
|
Revision: 439 Author: victormote Date: 2006-03-14 16:07:18 -0800 (Tue, 14 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=439&view=rev Log Message: ----------- Add new methods and a new interface. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java Added Paths: ----------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFLink.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-14 23:07:58 UTC (rev 438) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-15 00:07:18 UTC (rev 439) @@ -21,6 +21,7 @@ package org.axsl.pdf; import java.awt.Color; +import java.awt.geom.Rectangle2D; /** * Implementations of this class create instances of PDF-related classes. @@ -115,4 +116,39 @@ */ public PDFColor createPDFColor(Color color) ; + /** + * Create an implementation-specific PDFPage instance. + * @param document The PDFDocument for whom this instance is created. + * Implementations are at liberty to insist that this be a PDFDocument + * implementation known to the implementation. + * @param pagewidth The width of the page that should be created, in + * millipoints. + * @param pageheight The height of the page that should be created, in + * millipoints. + * @return An implementation-specific PDFPage instance. + * @throws PDFException If PDFDocument is not of a type supported by the + * implementation. + */ + public PDFPage createPDFPage(PDFDocument document, int pagewidth, + int pageheight) throws PDFException ; + + /** + * Create an implementation-specific PDFLink instance. + * @param document The PDFDocument for whom this instance is created. + * Implementations are at liberty to insist that this be a PDFDocument + * implementation known to the implementation. + * @param page The PDFPage on which this destination should be created. + * Implementations are at liberty to insist that this be a PDFPage + * implementation known to the implementation. + * @param linkRectangle The rectangle which activates the link. + * @param destination The destination to which the user should be taken + * when the link is activated. + * @return An implementation-specific PDFLink instance. + * @throws PDFException If PDFDocument is not of a type supported by the + * implementation. + */ + public PDFLink createPDFLink(PDFDocument document, PDFPage page, + Rectangle2D.Float linkRectangle, String destination) + throws PDFException ; + } Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFLink.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFLink.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFLink.java 2006-03-15 00:07:18 UTC (rev 439) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Link. + */ +public interface PDFLink { + +} Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java 2006-03-14 23:07:58 UTC (rev 438) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java 2006-03-15 00:07:18 UTC (rev 439) @@ -20,9 +20,26 @@ package org.axsl.pdf; +import java.awt.geom.Rectangle2D; + /** * A PDF Page. */ public interface PDFPage { + /** + * Create a link object in the PDF add it to this page. + * @param rect The clickable rectangle. + * @param destination The destination. + * @param externalLink Set to true to create an external link. + */ + public PDFLink makeLink(Rectangle2D.Float rect, String destination, + boolean externalLink) ; + + /** + * Return the content stream that contains the content of this page. + * @return This page's content stream. + */ + public PDFContentStream getContentStream() ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-14 23:08:07
|
Revision: 438 Author: victormote Date: 2006-03-14 15:07:58 -0800 (Tue, 14 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=438&view=rev Log Message: ----------- Add some new methods. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-14 22:56:27 UTC (rev 437) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-14 23:07:58 UTC (rev 438) @@ -108,4 +108,11 @@ PDFDocument document, String name, PDFExplicitDestination explicit) throws PDFException ; + /** + * Create an implementation-specific PDFColor instance. + * @param color The color that should be created. + * @return An implementation-specific PDFColor instance. + */ + public PDFColor createPDFColor(Color color) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-14 22:56:34
|
Revision: 437 Author: victormote Date: 2006-03-14 14:56:27 -0800 (Tue, 14 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=437&view=rev Log Message: ----------- Add some new methods. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-13 23:48:26 UTC (rev 436) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-14 22:56:27 UTC (rev 437) @@ -70,4 +70,42 @@ String internalDestination, Color color, boolean italic, boolean bold) throws PDFException ; + /** + * Create an implementation-specific PDFExplicitDestination instance. + * @param document The PDFDocument for whom this instance is created. + * Implementations are at liberty to insist that this be a PDFDocument + * implementation known to the implementation. + * @param page The PDFPage on which this destination should be created. + * Implementations are at liberty to insist that this be a PDFPage + * implementation known to the implementation. + * @param xPosition The horizontal location, on the page, of the + * destination. Position 0, 0 is the lower left corner of the page. + * @param yPosition The vertical location, on the page, of the + * destination. Position 0, 0 is the lower left corner of the page. + * @return An implementation-specific PDFExplicitDestination instance. + * @throws PDFException If PDFDocument or PDFPage are not of types + * supported by the implementation. + */ + public PDFExplicitDestination createPDFExplicitDestination( + PDFDocument document, PDFPage page, float xPosition, + float yPosition) throws PDFException ; + + /** + * Create an implementation-specific PDFNamedDestination instance. + * @param document The PDFDocument for whom this instance is created. + * Implementations are at liberty to insist that this be a PDFDocument + * implementation known to the implementation. + * @param name The name that should be assigned to this named destination. + * @param explicit The explicit destination to which <code>name</code> + * should be attached. + * Implementations are at liberty to insist that this be a + * PDFExplicitDestination implementation known to the implementation. + * @return An implementation-specific PDFExplicitDestination instance. + * @throws PDFException If PDFDocument or PDFExplicitDestination are not of + * types supported by the implementation. + */ + public PDFNamedDestination createPDFNamedDestination( + PDFDocument document, String name, PDFExplicitDestination explicit) + throws PDFException ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 23:48:38
|
Revision: 436 Author: victormote Date: 2006-03-13 15:48:26 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=436&view=rev Log Message: ----------- Bug Fix. BookmarkTreeArea extends the wrong interface. Modified Paths: -------------- trunk/axsl/axsl-area-out/src/java/org/axsl/areaOut/BookmarkTreeArea.java Modified: trunk/axsl/axsl-area-out/src/java/org/axsl/areaOut/BookmarkTreeArea.java =================================================================== --- trunk/axsl/axsl-area-out/src/java/org/axsl/areaOut/BookmarkTreeArea.java 2006-03-13 23:30:38 UTC (rev 435) +++ trunk/axsl/axsl-area-out/src/java/org/axsl/areaOut/BookmarkTreeArea.java 2006-03-13 23:48:26 UTC (rev 436) @@ -20,6 +20,6 @@ package org.axsl.areaOut; -public interface BookmarkTreeArea extends AreaFlexible { +public interface BookmarkTreeArea extends AreaNode { } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 23:30:44
|
Revision: 435 Author: victormote Date: 2006-03-13 15:30:38 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=435&view=rev Log Message: ----------- Add more methods. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-13 23:02:42 UTC (rev 434) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-13 23:30:38 UTC (rev 435) @@ -20,11 +20,17 @@ package org.axsl.pdf; +import java.awt.Color; + /** * Implementations of this class create instances of PDF-related classes. */ public interface PDFFactory { + /** + * Create an implementation-specific PDFDocument instance. + * @return An implementation-specific PDFDocument instance. + */ public PDFDocument createPDFDocument() ; /** @@ -39,4 +45,29 @@ 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 ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 23:02:50
|
Revision: 434 Author: victormote Date: 2006-03-13 15:02:42 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=434&view=rev Log Message: ----------- Add more methods. Modified Paths: -------------- trunk/axsl/axsl-pdf/.classpath trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFont.java Modified: trunk/axsl/axsl-pdf/.classpath =================================================================== --- trunk/axsl/axsl-pdf/.classpath 2006-03-13 22:16:48 UTC (rev 433) +++ trunk/axsl/axsl-pdf/.classpath 2006-03-13 23:02:42 UTC (rev 434) @@ -4,5 +4,6 @@ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry combineaccessrules="false" kind="src" path="/axslFont"/> <classpathentry combineaccessrules="false" kind="src" path="/axslGraphic"/> + <classpathentry kind="var" path="AXSL_LIB_ROOT/svg-1_1.jar"/> <classpathentry kind="output" path="build/eclipse"/> </classpath> Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java 2006-03-13 22:16:48 UTC (rev 433) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java 2006-03-13 23:02:42 UTC (rev 434) @@ -20,6 +20,11 @@ package org.axsl.pdf; +import org.axsl.font.FontUse; +import org.axsl.graphic.Graphic; + +import org.w3c.dom.svg.SVGDocument; + import java.awt.geom.Line2D; import java.awt.geom.Rectangle2D; @@ -34,4 +39,36 @@ public void drawRectangle(Rectangle2D.Float rectangle, boolean stroke, PDFPathPaint strokePaint, boolean fill, PDFPathPaint fillPaint) ; + public void drawGraphic(Rectangle2D.Float contentRectangle, + Rectangle2D.Float clipRectangle, Graphic image, + FontUse font, float fontSize, float letterSpacing, + boolean strokeSVGText) ; + + /** + * Draw an SVG document in the Content Stream. + * @param doc The SVG document to draw. + */ + public void drawSVGDocument(SVGDocument doc, + Rectangle2D.Float contentRectangle, Rectangle2D.Float clipRectangle, + FontUse font, float fontSize, float letterSpacing, + boolean strokeSVGText) ; + + public void setStrokeColor(PDFColor newStrokeColor) ; + + public void setWordSpacing(float newWordSpacing) ; + + public void setCharacterSpacing(float newCharacterSpacing) ; + + public void setCursor(float originX, float originY) ; + + public void setFont(PDFFont newFont, float newFontSize) ; + + public void drawText(String text) ; + + /** + * Closes any open logical structures in the content so that it is ready + * to be output. + */ + public void close() ; + } Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFont.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFont.java 2006-03-13 22:16:48 UTC (rev 433) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFont.java 2006-03-13 23:02:42 UTC (rev 434) @@ -20,9 +20,19 @@ package org.axsl.pdf; +import org.axsl.font.FontUse; + /** * A PDF Font. */ public interface PDFFont { + /** + * Get the internal name used for this font, typically starting with "F". + * @return This font's internal name. + */ + public String getName() ; + + public FontUse getFontUse() ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 22:16:56
|
Revision: 433 Author: victormote Date: 2006-03-13 14:16:48 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=433&view=rev Log Message: ----------- Add some methods Modified Paths: -------------- trunk/axsl/axsl-pdf/.classpath trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPathPaint.java Modified: trunk/axsl/axsl-pdf/.classpath =================================================================== --- trunk/axsl/axsl-pdf/.classpath 2006-03-13 22:00:21 UTC (rev 432) +++ trunk/axsl/axsl-pdf/.classpath 2006-03-13 22:16:48 UTC (rev 433) @@ -3,5 +3,6 @@ <classpathentry kind="src" path="src/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry combineaccessrules="false" kind="src" path="/axslFont"/> + <classpathentry combineaccessrules="false" kind="src" path="/axslGraphic"/> <classpathentry kind="output" path="build/eclipse"/> </classpath> Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java 2006-03-13 22:00:21 UTC (rev 432) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java 2006-03-13 22:16:48 UTC (rev 433) @@ -20,9 +20,18 @@ package org.axsl.pdf; +import java.awt.geom.Line2D; +import java.awt.geom.Rectangle2D; + /** * A PDF Content Stream. */ public interface PDFContentStream { + public void drawLine(Line2D.Float line, float thickness, float[] dashArray, + float dashPhase, PDFPathPaint stroke) ; + + public void drawRectangle(Rectangle2D.Float rectangle, boolean stroke, + PDFPathPaint strokePaint, boolean fill, PDFPathPaint fillPaint) ; + } Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPathPaint.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPathPaint.java 2006-03-13 22:00:21 UTC (rev 432) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPathPaint.java 2006-03-13 22:16:48 UTC (rev 433) @@ -25,4 +25,6 @@ */ public interface PDFPathPaint { + public String getColorSpaceOut(boolean fillNotStroke) ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 22:00:35
|
Revision: 432 Author: victormote Date: 2006-03-13 14:00:21 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=432&view=rev Log Message: ----------- 1. Add utility class for static conversions. 2. Add some methods to PDFDocument. Modified Paths: -------------- trunk/axsl/axsl-pdf/.classpath trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java Added Paths: ----------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFUtility.java Modified: trunk/axsl/axsl-pdf/.classpath =================================================================== --- trunk/axsl/axsl-pdf/.classpath 2006-03-13 20:47:58 UTC (rev 431) +++ trunk/axsl/axsl-pdf/.classpath 2006-03-13 22:00:21 UTC (rev 432) @@ -2,5 +2,6 @@ <classpath> <classpathentry kind="src" path="src/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry combineaccessrules="false" kind="src" path="/axslFont"/> <classpathentry kind="output" path="build/eclipse"/> </classpath> 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-13 20:47:58 UTC (rev 431) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java 2006-03-13 22:00:21 UTC (rev 432) @@ -20,9 +20,69 @@ package org.axsl.pdf; +import org.axsl.font.FontUse; + +import java.io.IOException; +import java.io.OutputStream; +import java.util.Date; + /** * A PDF document. */ public interface PDFDocument { + /** Constant indicating version 1.3 of the PDF spec. */ + public static final byte PDF_VERSION_1_3 = 0; + /** Constant indicating version 1.4 of the PDF spec. */ + public static final byte PDF_VERSION_1_4 = 1; + /** Constant indicating version 1.5 of the PDF spec. */ + public static final byte PDF_VERSION_1_5 = 2; + /** Constant indicating version 1.6 of the PDF spec. */ + public static final byte PDF_VERSION_1_6 = 3; + + public static final byte[] validVersions = { + PDF_VERSION_1_3, + PDF_VERSION_1_4, + PDF_VERSION_1_5, + PDF_VERSION_1_6 + }; + + public static final String[] versionStrings = { + "1.3", + "1.4", + "1.5", + "1.6", + }; + + /** + * Sets the PDF version that should be created when this document is + * written. + * If not set, the default value is implementation-dependent. + * Note that setting this value to a lower version will only eliminate + * features that are known to cause problems in PDF applications supporting + * a lower version. + * If a feature is not supported in a lower version, but causes no problems + * for that lower version, it will be included, so that applications + * supporting higher versions may take advantage of it. + * @param newVersion One of #PDF_VERSION_1_3, #PDF_VERSION_1_4, + * #PDF_VERSION_1_5, or #PDF_VERSION_1_6. + */ + public void setVersion(int newVersion) throws PDFException ; + + public void setProducer(String producer) ; + + public void setCreationDate(Date creationDate) ; + + public void addDefaultFilter(String filterName) ; + + /** + * Writes the PDF header. + * @param outputStream The OutputStream to write the header to. + */ + public void outputHeader(OutputStream outputStream) throws IOException ; + + public void close(OutputStream stream) throws IOException ; + +// public PDFFont getPDFFont(FontUse fontUse) throws PDFException ; + } Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFUtility.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFUtility.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFUtility.java 2006-03-13 22:00:21 UTC (rev 432) @@ -0,0 +1,54 @@ +/* + * 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: FontUtility.java 428 2006-03-13 19:18:04Z victormote $ */ + +package org.axsl.pdf; + +/** + * <p>Class containing PDF-related utility methods.</p> + */ +public class PDFUtility { + + /** + * Private Constructor. This class should never be instantiated. + */ + private PDFUtility() { + } + + /** + * For a given String, finds the version constant that represents that + * version. + * @param stringVersion The String representing the version. Valid values + * include "1.3", "1.4", "1.5", and "1.6". + * @return The integral constant used to represent + * <code>stringVersion</code>, or -1 if none exists. Valid values are + * {@link PDFDocument#PDF_VERSION_1_3}, {@link PDFDocument#PDF_VERSION_1_4}, + * {@link PDFDocument#PDF_VERSION_1_5}, and + * {@link PDFDocument#PDF_VERSION_1_6}, + */ + public static int integralVersion(String stringVersion) { + for (int i = 0; i < PDFDocument.versionStrings.length; i++) { + if (stringVersion.equals(PDFDocument.versionStrings[i])) { + return i; + } + } + return -1; + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 20:48:06
|
Revision: 431 Author: victormote Date: 2006-03-13 12:47:58 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=431&view=rev Log Message: ----------- Remove unneeded interface. Removed Paths: ------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFGraphicsState.java Deleted: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFGraphicsState.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFGraphicsState.java 2006-03-13 20:33:34 UTC (rev 430) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFGraphicsState.java 2006-03-13 20:47:58 UTC (rev 431) @@ -1,28 +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; - -/** - * A PDF Graphics State. - */ -public interface PDFGraphicsState { - -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 20:33:39
|
Revision: 430 Author: victormote Date: 2006-03-13 12:33:34 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=430&view=rev Log Message: ----------- Add needed methods. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFEncryption.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFEncryption.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFEncryption.java 2006-03-13 19:46:23 UTC (rev 429) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFEncryption.java 2006-03-13 20:33:34 UTC (rev 430) @@ -25,4 +25,48 @@ */ public interface PDFEncryption { + /** + * Sets the owner password for the PDF. + * @param value The owner password. + */ + public void setOwnerPassword(String value) ; + + /** + * Sets the user password for the PDF. + * @param value The user password. + */ + public void setUserPassword(String value) ; + + /** + * Sets whether the document will allow printing. + * @param value Set to true to allow printing. + */ + public void setAllowPrint(boolean value) ; + + /** + * Sets whether the document will allow the content to be extracted from + * the PDF document. + * @param value Set to true to allow content extraction. + */ + public void setAllowCopyContent(boolean value) ; + + /** + * Sets whether the document will allow its content to be edited. + * @param value Set to true to allow the document content to be edited. + */ + public void setAllowEditContent(boolean value) ; + + /** + * Sets whether the document will its annotations to be edited. + * @param value Set to true to allow the document annotations to be edited. + */ + public void setAllowEditAnnotation(boolean value) ; + + /** + * Initializes the encryption algorithms and values. This method should be + * run only after the various "set" methods have been called. + * TODO: This method should probably be removed. + */ + public void init() ; + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 19:46:28
|
Revision: 429 Author: victormote Date: 2006-03-13 11:46:23 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=429&view=rev Log Message: ----------- Add some javadoc. Modified Paths: -------------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java Modified: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-13 19:18:04 UTC (rev 428) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-13 19:46:23 UTC (rev 429) @@ -27,6 +27,16 @@ public PDFDocument createPDFDocument() ; - public PDFEncryption createPDFEncryption(PDFDocument document); + /** + * 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; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 19:18:10
|
Revision: 428 Author: victormote Date: 2006-03-13 11:18:04 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=428&view=rev Log Message: ----------- Fix some javadoc problems. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/FontUse.java trunk/axsl/axsl-font/src/java/org/axsl/font/FontUtility.java 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-13 19:14:05 UTC (rev 427) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontUse.java 2006-03-13 19:18:04 UTC (rev 428) @@ -367,7 +367,7 @@ /** * Indicates whether any characters registered use. * Character use is registered at {@link #registerCharUsed(int)} and - * {@link #registerCharsUsed(String)}. + * {@link #registerCharsUsed(CharSequence)}. * @return True if any characters were actually registered as used. */ public boolean wasUsed() ; Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontUtility.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontUtility.java 2006-03-13 19:14:05 UTC (rev 427) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontUtility.java 2006-03-13 19:18:04 UTC (rev 428) @@ -40,7 +40,7 @@ /** * Converts a CSS2-style String input for font-style into a value expected * by {@link FontConsumer#selectFontCSS(String[], int, int, int, int, int, - * char)}. + * int)}. * @param input The CSS2-style String to be converted. * @param lowerCaseOnly Set to true to insist that all input values be * lowercase. @@ -50,7 +50,7 @@ * {@link Font#FONT_STYLE_ITALIC}, {@link Font#FONT_STYLE_OBLIQUE}, * or {@link Font#FONT_STYLE_BACKSLANT}. * For invalid input, -1. - * @see FontConsumer#selectFontCSS(String[], int, int, int, int, int, char) + * @see FontConsumer#selectFontCSS(String[], int, int, int, int, int, int) */ public static byte cssFontStyle(String input, boolean lowerCaseOnly) { if (input == null) { @@ -94,7 +94,7 @@ /** * Converts a CSS2-style String input for font-weight into a value expected * by {@link FontConsumer#selectFontCSS(String[], int, int, int, int, int, - * char)}. + * int)}. * @param input The CSS2-style String to be converted. * @param lowerCaseOnly Set to true to insist that all input values be * lowercase. @@ -108,7 +108,7 @@ * {@link Font#FONT_WEIGHT_900}, {@link Font#FONT_WEIGHT_NORMAL}, * and {@link Font#FONT_WEIGHT_BOLD}. * For invalid input, -1. - * @see FontConsumer#selectFontCSS(String[], int, int, int, int, int, char) + * @see FontConsumer#selectFontCSS(String[], int, int, int, int, int, int) */ public static short cssFontWeight(String input, boolean lowerCaseOnly) { if (input == null) { @@ -166,7 +166,7 @@ /** * Converts a CSS2-style String input for font-variant into a value expected * by {@link FontConsumer#selectFontCSS(String[], int, int, int, int, int, - * char)}. + * int)}. * @param input The CSS2-style String to be converted. * @param lowerCaseOnly Set to true to insist that all input values be * lowercase. @@ -175,7 +175,7 @@ * @return For valid input, one of {@link Font#FONT_VARIANT_NORMAL} or * {@link Font#FONT_VARIANT_SMALL_CAPS}. * For invalid input, -1. - * @see FontConsumer#selectFontCSS(String[], int, int, int, int, int, char) + * @see FontConsumer#selectFontCSS(String[], int, int, int, int, int, int) */ public static byte cssFontVariant(String input, boolean lowerCaseOnly) { if (input == null) { @@ -206,7 +206,7 @@ /** * Converts a CSS2-style String input for font-stretch into a value expected * by {@link FontConsumer#selectFontCSS(String[], int, int, int, int, int, - * char)}. + * int)}. * @param input The CSS2-style String to be converted. * @param lowerCaseOnly Set to true to insist that all input values be * lowercase. @@ -223,7 +223,7 @@ * {@link Font#FONT_STRETCH_EXTRA_EXPANDED}, * {@link Font#FONT_STRETCH_ULTRA_EXPANDED}. * For invalid input, -1. - * @see FontConsumer#selectFontCSS(String[], int, int, int, int, int, char) + * @see FontConsumer#selectFontCSS(String[], int, int, int, int, int, int) */ public static byte cssFontStretch(String input, boolean lowerCaseOnly) { if (input == null) { @@ -275,14 +275,14 @@ /** * Converts a CSS2-style String input for font-family into a value expected * by {@link FontConsumer#selectFontCSS(String[], int, int, int, int, int, - * char)}. + * int)}. * @param input The CSS2-style font-family String to be converted. * This is a comma-delimited String containing one or more potential * font-family items to be selected. Consult the CSS2 standard for * details. * @return A String array with the parsed font-family items in it, or null * if none were found. - * @see FontConsumer#selectFontCSS(String[], int, int, int, int, int, char) + * @see FontConsumer#selectFontCSS(String[], int, int, int, int, int, int) */ public static String[] cssFontFamily(String input) { /* There may be a better way to do this ... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 19:14:12
|
Revision: 427 Author: victormote Date: 2006-03-13 11:14:05 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=427&view=rev Log Message: ----------- Include pdf package in build. Modified Paths: -------------- trunk/axsl/scripts/build.xml Modified: trunk/axsl/scripts/build.xml =================================================================== --- trunk/axsl/scripts/build.xml 2006-03-13 19:08:52 UTC (rev 426) +++ trunk/axsl/scripts/build.xml 2006-03-13 19:14:05 UTC (rev 427) @@ -69,6 +69,7 @@ <src path="${project.root}/axsl-text/src/java"/> <src path="${project.root}/axsl-fotree/src/java"/> <src path="${project.root}/axsl-area-out/src/java"/> + <src path="${project.root}/axsl-pdf/src/java"/> </javac> </target> @@ -133,6 +134,7 @@ <pathelement path="${project.root}/axsl-fotree/src/java"/> <pathelement path="${project.root}/axsl-area-in/src/java"/> <pathelement path="${project.root}/axsl-area-out/src/java"/> + <pathelement path="${project.root}/axsl-pdf/src/java"/> </sourcepath> <group title="The aXSL Common Module"> <package name="org.axsl.common"/> @@ -166,6 +168,10 @@ <package name="org.axsl.areaOut"/> <package name="org.axsl.areaOut.*"/> </group> + <group title="The aXSL PDF Module"> + <package name="org.axsl.pdf"/> + <package name="org.axsl.pdf.*"/> + </group> </javadoc> </target> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 19:09:11
|
Revision: 426 Author: victormote Date: 2006-03-13 11:08:52 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=426&view=rev Log Message: ----------- Add empty interfaces for classes that are known to be needed. Added Paths: ----------- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFColor.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFEncryption.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/PDFFont.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFGraphicsState.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFNamedDestination.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineItem.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineParent.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPathPaint.java Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFColor.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFColor.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFColor.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Color. + */ +public interface PDFColor extends PDFPathPaint { + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFContentStream.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Content Stream. + */ +public interface PDFContentStream { + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFDocument.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF document. + */ +public interface PDFDocument { + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFEncryption.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFEncryption.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFEncryption.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * Encryption-related items for a PDFDocument. + */ +public interface PDFEncryption { + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFExplicitDestination.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFExplicitDestination.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFExplicitDestination.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Explicit Destination. + */ +public interface PDFExplicitDestination { + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFactory.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,32 @@ +/* + * 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 create instances of PDF-related classes. + */ +public interface PDFFactory { + + public PDFDocument createPDFDocument() ; + + public PDFEncryption createPDFEncryption(PDFDocument document); + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFont.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFont.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFFont.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Font. + */ +public interface PDFFont { + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFGraphicsState.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFGraphicsState.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFGraphicsState.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Graphics State. + */ +public interface PDFGraphicsState { + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFNamedDestination.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFNamedDestination.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFNamedDestination.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Named Destination. + */ +public interface PDFNamedDestination { + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineItem.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineItem.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineItem.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Outline Item. + */ +public interface PDFOutlineItem extends PDFOutlineParent { + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineParent.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineParent.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFOutlineParent.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Outline Parent. + */ +public interface PDFOutlineParent { + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPage.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Page. + */ +public interface PDFPage { + +} Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPathPaint.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPathPaint.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFPathPaint.java 2006-03-13 19:08:52 UTC (rev 426) @@ -0,0 +1,28 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* $Id$ */ + +package org.axsl.pdf; + +/** + * A PDF Path. + */ +public interface PDFPathPaint { + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-13 18:29:13
|
Revision: 425 Author: victormote Date: 2006-03-13 10:29:01 -0800 (Mon, 13 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=425&view=rev Log Message: ----------- Add new project for PDF output. Added Paths: ----------- trunk/axsl/axsl-pdf/ trunk/axsl/axsl-pdf/.classpath trunk/axsl/axsl-pdf/.project trunk/axsl/axsl-pdf/src/ trunk/axsl/axsl-pdf/src/java/ trunk/axsl/axsl-pdf/src/java/org/ trunk/axsl/axsl-pdf/src/java/org/axsl/ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFException.java Property changes on: trunk/axsl/axsl-pdf ___________________________________________________________________ Name: svn:ignore + build zzlocal Added: trunk/axsl/axsl-pdf/.classpath =================================================================== --- trunk/axsl/axsl-pdf/.classpath (rev 0) +++ trunk/axsl/axsl-pdf/.classpath 2006-03-13 18:29:01 UTC (rev 425) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src/java"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="output" path="build/eclipse"/> +</classpath> Added: trunk/axsl/axsl-pdf/.project =================================================================== --- trunk/axsl/axsl-pdf/.project (rev 0) +++ trunk/axsl/axsl-pdf/.project 2006-03-13 18:29:01 UTC (rev 425) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>axslPDF</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> Added: trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFException.java =================================================================== --- trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFException.java (rev 0) +++ trunk/axsl/axsl-pdf/src/java/org/axsl/pdf/PDFException.java 2006-03-13 18:29:01 UTC (rev 425) @@ -0,0 +1,58 @@ +/* + * 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: GraphicException.java 396 2006-02-23 18:22:25Z victormote $ */ + +package org.axsl.pdf; + +/** + * Exception thrown when an axslPDF implementation has a problem. + */ +public class PDFException extends Exception { + + static final long serialVersionUID = 953694784526821314L; + + /** + * Create a new PDFException. + * Identical to {@link Exception#Exception(java.lang.String)} + * @see Exception#Exception(java.lang.String) + */ + public PDFException(String message) { + super(message); + } + + /** + * Create a new PDFException. + * Identical to {@link Exception#Exception(java.lang.Throwable)} + * @see Exception#Exception(java.lang.Throwable) + */ + public PDFException(Throwable cause) { + super(cause); + } + + /** + * Create a new PDFException. + * Identical to {@link Exception#Exception(java.lang.String, + * java.lang.Throwable)} + * @see Exception#Exception(java.lang.String, java.lang.Throwable) + */ + public PDFException(String message, Throwable cause) { + super(message, cause); + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-07 23:17:48
|
Revision: 424 Author: victormote Date: 2006-03-07 15:17:42 -0800 (Tue, 07 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=424&view=rev Log Message: ----------- Clarify doc for optimizeFonts(). Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java 2006-03-04 22:58:01 UTC (rev 423) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java 2006-03-07 23:17:42 UTC (rev 424) @@ -138,16 +138,31 @@ public FontUse[] getUsedFontUses(); /** - * Optimizes fonts in preparation for embedding. + * <p>Optimizes the fonts used by this FontConsumer. + * This is only useful if two passes are made at the document contents, one + * before running this method, the other after doing so. + * To be effective, the fonts must be selected and the characters registered + * identically between the two passes. + * The first pass tells the system what fonts and characters will be used. + * Then running this method allows the system to take the "big picture" + * view of the document contents, and optimize things like encodings and + * character sets before actually processing the document contents.</p> + * + * <p>Note that implementations are free to make this method a no-op, that + * is to do nothing at all. + * Even if something is done, there is no guarantee that it is worth the + * extra cost of processing the document twice. + * Consult implementation documentation for details.</p> * - * Caveat: The timing of when this process should be run is very critical. + * <p>Caveat: The timing of when this process should be run is very + * critical. * It should only be run <i>after </i>all glyph indices that are used by * the FontConsumer have been registered. * It should also only be run <i>before </i>any glyph indices have been * written to actual document output. If the client runs the registration * and writing tasks concurrently, it should not use this method, as doing * so will corrupt the logical connection between the glyph indices used to - * embed the font and those used to write the document contents. + * embed the font and those used to write the document contents.</p> */ public void optimizeFonts(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-04 22:58:16
|
Revision: 423 Author: victormote Date: 2006-03-04 14:58:01 -0800 (Sat, 04 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=423&view=rev Log Message: ----------- Change some more char interfaces to code points. Modified Paths: -------------- trunk/axsl/axsl-area-out/src/java/org/axsl/areaOut/Area.java trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FObj.java Modified: trunk/axsl/axsl-area-out/src/java/org/axsl/areaOut/Area.java =================================================================== --- trunk/axsl/axsl-area-out/src/java/org/axsl/areaOut/Area.java 2006-03-04 17:03:24 UTC (rev 422) +++ trunk/axsl/axsl-area-out/src/java/org/axsl/areaOut/Area.java 2006-03-04 22:58:01 UTC (rev 423) @@ -80,7 +80,7 @@ public FontUse getPrimaryFont() ; - public FontUse getSecondaryFont(char c) ; + public FontUse getSecondaryFont(int codePoint) ; public int getAscender() ; Modified: trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java =================================================================== --- trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java 2006-03-04 17:03:24 UTC (rev 422) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontConsumer.java 2006-03-04 22:58:01 UTC (rev 423) @@ -85,7 +85,7 @@ * boolean)} to convert String input into the value expected here. * @param size The size (in millipoints) of the font. * This is only meaningful for bitmapped fonts. - * @param c The first character to be painted using the selected + * @param codePoint The first character to be painted using the selected * {@link FontUse}. * This allows the selection process to avoid selecting a {@link FontUse} * that cannot even paint the first character. @@ -95,7 +95,7 @@ * @throws FontException if there is no matching font. */ public FontUse selectFontXSL(String[] familyList, int style, int weight, - int variant, int stretch, int size, char c) + int variant, int stretch, int size, int codePoint) throws FontException; /** @@ -120,7 +120,7 @@ * @throws FontException if there is no matching font. */ public FontUse selectFontCSS(String[] familyList, int style, int weight, - int variant, int stretch, int size, char c) + int variant, int stretch, int size, int codePoint) throws FontException; /** Modified: trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FObj.java =================================================================== --- trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FObj.java 2006-03-04 17:03:24 UTC (rev 422) +++ trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FObj.java 2006-03-04 22:58:01 UTC (rev 423) @@ -1094,14 +1094,14 @@ /** * Provides a resolved font that can be used as the secondary font for a * specific character in this object. - * @param c The char for whom a secondary font should be found. + * @param codePoint The character for whom a secondary font should be found. * This char is really the content of an fo:character object, and * presumably has no glyph in the font returned by * {@link #getPrimaryFont()}. * @return The best secondary {@link FontUse} instance that has a glyph * for <em>c</em>. */ - public FontUse getSecondaryFont(char c) ; + public FontUse getSecondaryFont(int codePoint) ; public int getFauxSmallCapFontSize() ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-04 17:03:35
|
Revision: 422 Author: victormote Date: 2006-03-04 09:03:24 -0800 (Sat, 04 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=422&view=rev Log Message: ----------- 1. Convert a Font method param from String to CharSequence. 2. Convert a LineBreaker method param from char to int, to handle 21-bit codePoints. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java trunk/axsl/axsl-text/src/java/org/axsl/text/line/LineBreaker.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-04 15:33:31 UTC (rev 421) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/Font.java 2006-03-04 17:03:24 UTC (rev 422) @@ -197,7 +197,7 @@ /** * Calculates the width of a given String, considering letter spacing, * word spacing, and kerning. - * @param string The String whose width should be computed. + * @param chars The String whose width should be computed. * @param fontSize The size, in millipoints, of the font. * @param letterSpacing The size, in millipoints, of any letter-spacing. * @param wordSpacing The size, in millipoints, of any word-spacing. @@ -213,7 +213,7 @@ * If there is no glyph for a character in <code>string </code>, the width * returned will be that of the "missing glyph". */ - public int width(String string, int fontSize, int letterSpacing, + public int width(CharSequence chars, int fontSize, int letterSpacing, int wordSpacing); /** Modified: trunk/axsl/axsl-text/src/java/org/axsl/text/line/LineBreaker.java =================================================================== --- trunk/axsl/axsl-text/src/java/org/axsl/text/line/LineBreaker.java 2006-03-04 15:33:31 UTC (rev 421) +++ trunk/axsl/axsl-text/src/java/org/axsl/text/line/LineBreaker.java 2006-03-04 17:03:24 UTC (rev 422) @@ -88,14 +88,14 @@ public int getResults() throws TextException ; - public int getCharWidth(LineText lineText, char c) ; + public int getCharWidth(LineText lineText, int codePoint) ; - public boolean isLowerCase(char c) ; + public boolean isLowerCase(int codePoint) ; public int getHyphenWidth(LineText lineText) ; public void setCurrentLine(LineOutput line) ; - public int getWordWidth(LineText lineText, String word) ; + public int getWordWidth(LineText lineText, CharSequence word) ; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-04 15:33:36
|
Revision: 421 Author: victormote Date: 2006-03-04 07:33:31 -0800 (Sat, 04 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=421&view=rev Log Message: ----------- Remove char[] variants of the "unavailable" methods. The CharSequence variants are considered adequate for now. Modified Paths: -------------- trunk/axsl/axsl-font/src/java/org/axsl/font/FontUse.java 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-03 20:07:48 UTC (rev 420) +++ trunk/axsl/axsl-font/src/java/org/axsl/font/FontUse.java 2006-03-04 15:33:31 UTC (rev 421) @@ -130,21 +130,6 @@ public int unavailableChar(CharSequence chars, int beginIndex) ; /** - * <p>Examines each character in a specified portion of a char array to - * determine whether a glyph can be encoded for that character. - * If a glyph cannot be encoded, either because the Font does not have - * a glyph for the character, or because the FontUse encoding cannot - * encode the character, the character's index in the char array is - * returned.</p> - * @param chars The char array to be examined. - * @param beginIndex The first index in <code>chars</code> to be examined. - * @return The first index into <code>chars</code> at or after - * <code>beginIndex</code> which contains an unencodable character. - * If all characters in <code>chars</code> can be encoded, -1 is returned. - */ - public int unavailableChar(char[] chars, int beginIndex) ; - - /** * <p>Examines each character in a specified portion of a String or other * CharSequence to determine whether a glyph can be encoded for that * character. @@ -162,21 +147,6 @@ public int[] unavailableChars(CharSequence chars, int beginIndex) ; /** - * <p>Examines each character in a specified portion of a char array to - * determine whether a glyph can be encoded for that character. - * If a glyph cannot be encoded, either because the Font does not have - * a glyph for the character, or because the FontUse encoding cannot - * encode the character, it is included in an array of indexes that is - * returned.</p> - * @param chars The char array to be examined. - * @param beginIndex The first index in <code>chars</code> to be examined. - * @return An int array, each element of which contains the index to one - * char in <code>chars</code> for which no glyph can be encoded. - * If all characters in <code>chars</code> can be encoded, null is returned. - */ - public int[] unavailableChars(char[] chars, int beginIndex) ; - - /** * <p>Reports whether a glyph can be encoded for a given character.</p> * <p>Note that, even if the Font has a glyph for the character, this method * will return false if the character cannot be encoded with this FontUse's This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-03 20:07:56
|
Revision: 420 Author: victormote Date: 2006-03-03 12:07:48 -0800 (Fri, 03 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=420&view=rev Log Message: ----------- Standardize path. Modified Paths: -------------- trunk/axsl/axsl-font/.classpath Modified: trunk/axsl/axsl-font/.classpath =================================================================== --- trunk/axsl/axsl-font/.classpath 2006-03-03 14:51:59 UTC (rev 419) +++ trunk/axsl/axsl-font/.classpath 2006-03-03 20:07:48 UTC (rev 420) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> - <classpathentry excluding=".#*" kind="src" path="src/java"/> + <classpathentry kind="src" path="src/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="src" path="/axslPS"/> <classpathentry kind="src" path="/axslCommon"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
|
From: <vic...@us...> - 2006-03-03 14:52:05
|
Revision: 419 Author: victormote Date: 2006-03-03 06:51:59 -0800 (Fri, 03 Mar 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=419&view=rev Log Message: ----------- Change footer color. Modified Paths: -------------- trunk/axsl/doc/web/00-rsrc/include/style-axsl.css Modified: trunk/axsl/doc/web/00-rsrc/include/style-axsl.css =================================================================== --- trunk/axsl/doc/web/00-rsrc/include/style-axsl.css 2006-03-03 14:45:20 UTC (rev 418) +++ trunk/axsl/doc/web/00-rsrc/include/style-axsl.css 2006-03-03 14:51:59 UTC (rev 419) @@ -6,4 +6,8 @@ { background-color: #E8BB7D; } +div.footer + { background-color: #E8BB7D; + } + /* Last Line of aXSL web site stylesheet */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |