aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/PropertyList.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-01-25 10:55:48 +0000
committerJeremias Maerki <jeremias@apache.org>2005-01-25 10:55:48 +0000
commitc62eb56cc396af640a5323b1198b940d2b8afdb0 (patch)
tree44d97f476e33e3d68f76919783bcc91216740614 /src/java/org/apache/fop/fo/PropertyList.java
parent885db48aa4c07ce26f526752904fd9fd736b278b (diff)
downloadxmlgraphics-fop-c62eb56cc396af640a5323b1198b940d2b8afdb0.tar.gz
xmlgraphics-fop-c62eb56cc396af640a5323b1198b940d2b8afdb0.zip
First version of text-decoration support (no colors, yet, PDF rendering may not be optimal, yet, but the rest seems to work)
This change may kill what text-decoration support already was in the RTF renderer. This will need to be fixed later. Some javadoc and style touch-ups. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198314 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/PropertyList.java')
-rw-r--r--src/java/org/apache/fop/fo/PropertyList.java29
1 files changed, 24 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/fo/PropertyList.java b/src/java/org/apache/fop/fo/PropertyList.java
index cd7a37b0d..0a0c50ae4 100644
--- a/src/java/org/apache/fop/fo/PropertyList.java
+++ b/src/java/org/apache/fop/fo/PropertyList.java
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,6 +35,7 @@ import org.apache.fop.fo.properties.CommonHyphenation;
import org.apache.fop.fo.properties.CommonMarginBlock;
import org.apache.fop.fo.properties.CommonMarginInline;
import org.apache.fop.fo.properties.CommonRelativePosition;
+import org.apache.fop.fo.properties.CommonTextDecoration;
import org.apache.fop.fo.properties.Property;
import org.apache.fop.fo.properties.PropertyMaker;
@@ -396,6 +397,7 @@ abstract public class PropertyList {
/**
* @param propId ID of property
* @return new Property object
+ * @throws PropertyException if there's a problem while processing the property
*/
private Property getShorthand(int propId) throws PropertyException {
PropertyMaker propertyMaker = findMaker(propId);
@@ -411,7 +413,7 @@ abstract public class PropertyList {
/**
* @param propID ID of property
* @return new Property object
- * @throws FOPException for errors in the input
+ * @throws PropertyException if there's a problem while processing the property
*/
private Property makeProperty(int propId) throws PropertyException {
PropertyMaker propertyMaker = findMaker(propId);
@@ -457,16 +459,17 @@ abstract public class PropertyList {
/**
* Constructs a BorderAndPadding object.
* @return a BorderAndPadding object
+ * @throws PropertyException if there's a problem while processing the properties
*/
- public CommonBorderPaddingBackground getBorderPaddingBackgroundProps() throws PropertyException {
+ public CommonBorderPaddingBackground getBorderPaddingBackgroundProps()
+ throws PropertyException {
return new CommonBorderPaddingBackground(this, getFObj());
}
-
-
/**
* Constructs a HyphenationProps objects.
* @return a HyphenationProps object
+ * @throws PropertyException if there's a problem while processing the properties
*/
public CommonHyphenation getHyphenationProps() throws PropertyException {
return new CommonHyphenation(this);
@@ -475,6 +478,7 @@ abstract public class PropertyList {
/**
* Constructs a MarginProps objects.
* @return a MarginProps object
+ * @throws PropertyException if there's a problem while processing the properties
*/
public CommonMarginBlock getMarginBlockProps() throws PropertyException {
return new CommonMarginBlock(this);
@@ -483,6 +487,7 @@ abstract public class PropertyList {
/**
* Constructs a MarginInlineProps objects.
* @return a MarginInlineProps object
+ * @throws PropertyException if there's a problem while processing the properties
*/
public CommonMarginInline getMarginInlineProps() throws PropertyException {
return new CommonMarginInline(this);
@@ -491,6 +496,7 @@ abstract public class PropertyList {
/**
* Constructs a AccessibilityProps objects.
* @return a AccessibilityProps object
+ * @throws PropertyException if there's a problem while processing the properties
*/
public CommonAccessibility getAccessibilityProps() throws PropertyException {
return new CommonAccessibility(this);
@@ -499,6 +505,7 @@ abstract public class PropertyList {
/**
* Constructs a AuralProps objects.
* @return a AuralProps object
+ * @throws PropertyException if there's a problem while processing the properties
*/
public CommonAural getAuralProps() throws PropertyException {
CommonAural props = new CommonAural(this);
@@ -508,6 +515,7 @@ abstract public class PropertyList {
/**
* Constructs a RelativePositionProps objects.
* @return a RelativePositionProps object
+ * @throws PropertyException if there's a problem while processing the properties
*/
public CommonRelativePosition getRelativePositionProps() throws PropertyException {
return new CommonRelativePosition(this);
@@ -516,6 +524,7 @@ abstract public class PropertyList {
/**
* Constructs a AbsolutePositionProps objects.
* @return a AbsolutePositionProps object
+ * @throws PropertyException if there's a problem while processing the properties
*/
public CommonAbsolutePosition getAbsolutePositionProps() throws PropertyException {
return new CommonAbsolutePosition(this);
@@ -525,9 +534,19 @@ abstract public class PropertyList {
/**
* Constructs a CommonFont object.
* @return A CommonFont object
+ * @throws PropertyException if there's a problem while processing the properties
*/
public CommonFont getFontProps() throws PropertyException {
return new CommonFont(this);
}
+
+ /**
+ * Constructs a CommonTextDecoration object.
+ * @return a CommonTextDecoration object
+ * @throws PropertyException if there's a problem while processing the properties
+ */
+ public CommonTextDecoration getTextDecorationProps() throws PropertyException {
+ return CommonTextDecoration.createFromPropertyList(this);
+ }
}