[FOray-commit] SF.net SVN: foray: [9907] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2007-07-02 17:36:53
|
Revision: 9907
http://svn.sourceforge.net/foray/?rev=9907&view=rev
Author: victormote
Date: 2007-07-02 10:36:55 -0700 (Mon, 02 Jul 2007)
Log Message:
-----------
Conform to axsl method name changes.
Modified Paths:
--------------
trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java
trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFOutlineParent.java
trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
Modified: trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java
===================================================================
--- trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -167,9 +167,9 @@
this.outputTarget.setApplicationNameShort(
Application.getApplicationNameShort());
this.outputTarget.setApplicationVersion(Application.getVersion());
- this.outputTarget.setDeveloperURLShort(
+ this.outputTarget.setDeveloperUrlShort(
Application.getDeveloperURLShort());
- this.outputTarget.setStrokeSVGText(getSessionConfig()
+ this.outputTarget.setStrokeText(getSessionConfig()
.optionStrokeSVGText());
this.outputTarget.setFontConsumer(this.getFontConsumer());
Modified: trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java
===================================================================
--- trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -183,14 +183,14 @@
/**
* {@inheritDoc}
*/
- public void setDeveloperURLShort(final String developerURLShort) {
+ public void setDeveloperUrlShort(final String developerURLShort) {
this.developerURLShort = developerURLShort;
}
/**
* {@inheritDoc}
*/
- public void setStrokeSVGText(final boolean stroke) {
+ public void setStrokeText(final boolean stroke) {
this.strokeSVGText = stroke;
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -125,7 +125,7 @@
* {@inheritDoc}
*/
public void setFont(final FontUse newFont, final float newFontSize) {
- final PDFFont pdfFont = this.getPDFDocument().getPDFFont(newFont);
+ final PDFFont pdfFont = this.getPDFDocument().getPdfFont(newFont);
openTextObject();
boolean anyChange = false;
anyChange |= this.getGS().setFont(newFont);
@@ -142,7 +142,7 @@
* {@inheritDoc}
*/
public void setColor(final Color newColor, final boolean stroke) {
- final PDFColor newPDFColor = this.getPDFDocument().createPDFColor(
+ final PDFColor newPDFColor = this.getPDFDocument().createPdfColor(
newColor);
if (stroke) {
if (! this.getGS().setStrokeColor(newColor)) {
@@ -256,7 +256,7 @@
// Nothing needs to change.
return;
}
- add(newLineCapStyle.getPDFValue() + " J" + EOL);
+ add(newLineCapStyle.getPdfValue() + " J" + EOL);
}
/**
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -625,7 +625,7 @@
* @param fontUse The font for which a PDFFont is needed.
* @return The appropriate PDFFont instance.
*/
- public PDFFont getPDFFont(final FontUse fontUse) {
+ public PDFFont getPdfFont(final FontUse fontUse) {
final Font font = fontUse.getFont();
/* Look for a match in the existing fonts. */
for (int i = 0; i < this.usedFonts.size(); i++) {
@@ -713,7 +713,7 @@
/**
* {@inheritDoc}
*/
- public PDFEncryption createPDFEncryption() {
+ public PDFEncryption createPdfEncryption() {
if (this.encryption == null) {
this.encryption = new org.foray.pdf.object.PDFEncryption(this);
}
@@ -723,7 +723,7 @@
/**
* {@inheritDoc}
*/
- public PDFColor createPDFColor(final Color color) {
+ public PDFColor createPdfColor(final Color color) {
org.foray.pdf.object.PDFColor pdfColor = null;
for (int i = 0; i < this.usedColors.size(); i++) {
pdfColor = this.usedColors.get(i);
@@ -739,7 +739,7 @@
/**
* {@inheritDoc}
*/
- public PDFPage createPDFPage(final int pagewidth, final int pageheight) {
+ public PDFPage createPdfPage(final int pagewidth, final int pageheight) {
return new org.foray.pdf.object.PDFPage(this, this.getResources(),
pagewidth, pageheight);
}
@@ -758,7 +758,7 @@
* {@inheritDoc}
*/
public String getFontName(final FontUse fontUse) {
- final PDFFont pdfFont = this.getPDFFont(fontUse);
+ final PDFFont pdfFont = this.getPdfFont(fontUse);
return pdfFont.getName();
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFOutlineParent.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFOutlineParent.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFOutlineParent.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -98,7 +98,7 @@
/**
* {@inheritDoc}
*/
- public PDFOutlineItem createPDFOutlineItem(
+ public PDFOutlineItem createPdfOutlineItem(
final String titleText, final String internalDestination,
final Color color, final boolean italic, final boolean bold) {
return new org.foray.pdf.object.PDFOutlineItem(this.getPDFDocument(),
Modified: trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -135,7 +135,7 @@
}
if (encrypt) {
PdfEncryption encryption = null;
- encryption = this.getPDFDocument().createPDFEncryption();
+ encryption = this.getPDFDocument().createPdfEncryption();
encryption.setOwnerPassword(oPassword);
encryption.setUserPassword(uPassword);
encryption.setAllowPrint(allowPrint);
@@ -229,11 +229,11 @@
final int h, final Color strokeColor, final Color fillColor) {
PdfPathPaint strokePaint = null;
if (strokeColor != null) {
- strokePaint = this.getPDFDocument().createPDFColor(strokeColor);
+ strokePaint = this.getPDFDocument().createPdfColor(strokeColor);
}
PdfPathPaint fillPaint = null;
if (fillColor != null) {
- fillPaint = this.getPDFDocument().createPDFColor(fillColor);
+ fillPaint = this.getPDFDocument().createPdfColor(fillColor);
}
final Rectangle2D.Float rectangle = new Rectangle2D.Float(toPoints(x),
toPoints(y), toPoints(w), toPoints(h));
@@ -448,7 +448,7 @@
getLogger().debug("Rendering single page to PDF.");
final float w = page.getWidth();
final float h = page.getHeight();
- currentPage = this.pdfDoc.createPDFPage(
+ currentPage = this.pdfDoc.createPdfPage(
Math.round(w / WKConstants.MILLIPOINTS_PER_POINT),
Math.round(h / WKConstants.MILLIPOINTS_PER_POINT));
renderRegions(page);
@@ -544,7 +544,7 @@
bold = true;
}
PdfOutlineItem pdfOutline = null;
- pdfOutline = parent.createPDFOutlineItem(title.getTitleText(),
+ pdfOutline = parent.createPdfOutlineItem(title.getTitleText(),
area.traitInternalDestination(), color, italic, bold);
// Recursively handle child bookmarks
for (int i = 0; i < area.getChildCount(); i++) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|