aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow/AbstractGraphics.java
diff options
context:
space:
mode:
authorManuel Mall <manuel@apache.org>2005-10-07 08:55:22 +0000
committerManuel Mall <manuel@apache.org>2005-10-07 08:55:22 +0000
commit2ae0a968ee9de3880e0cf03a1c505e2f296108a5 (patch)
treed21fa15aa17ff4247a5fae927b9a9c393a91ba87 /src/java/org/apache/fop/fo/flow/AbstractGraphics.java
parente4796389dec62db384cee2610c5ec7011341ba2c (diff)
downloadxmlgraphics-fop-2ae0a968ee9de3880e0cf03a1c505e2f296108a5.tar.gz
xmlgraphics-fop-2ae0a968ee9de3880e0cf03a1c505e2f296108a5.zip
Update to support border and padding and alignments on inline fos
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@307055 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/AbstractGraphics.java')
-rw-r--r--src/java/org/apache/fop/fo/flow/AbstractGraphics.java44
1 files changed, 32 insertions, 12 deletions
diff --git a/src/java/org/apache/fop/fo/flow/AbstractGraphics.java b/src/java/org/apache/fop/fo/flow/AbstractGraphics.java
index b9f360c2c..493738b12 100644
--- a/src/java/org/apache/fop/fo/flow/AbstractGraphics.java
+++ b/src/java/org/apache/fop/fo/flow/AbstractGraphics.java
@@ -30,6 +30,7 @@ import org.apache.fop.fo.properties.CommonMarginInline;
import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.fo.properties.KeepProperty;
import org.apache.fop.fo.properties.LengthRangeProperty;
+import org.apache.fop.fo.properties.SpaceProperty;
/**
* Common base class for instream-foreign-object and external-graphics
@@ -59,12 +60,11 @@ public abstract class AbstractGraphics extends FObj {
private LengthRangeProperty inlineProgressionDimension;
private KeepProperty keepWithNext;
private KeepProperty keepWithPrevious;
- private Length lineHeight;
+ private SpaceProperty lineHeight;
private int overflow;
private int scaling;
private int scalingMethod;
private int textAlign;
- private int verticalAlign; // shorthand!!!
private Length width;
// End of property values
@@ -101,12 +101,11 @@ public abstract class AbstractGraphics extends FObj {
inlineProgressionDimension = pList.get(PR_INLINE_PROGRESSION_DIMENSION).getLengthRange();
keepWithNext = pList.get(PR_KEEP_WITH_NEXT).getKeep();
keepWithPrevious = pList.get(PR_KEEP_WITH_PREVIOUS).getKeep();
- lineHeight = pList.get(PR_LINE_HEIGHT).getLength();
+ lineHeight = pList.get(PR_LINE_HEIGHT).getSpace();
overflow = pList.get(PR_OVERFLOW).getEnum();
scaling = pList.get(PR_SCALING).getEnum();
scalingMethod = pList.get(PR_SCALING_METHOD).getEnum();
textAlign = pList.get(PR_TEXT_ALIGN).getEnum();
- verticalAlign = pList.get(PR_VERTICAL_ALIGN).getEnum();
width = pList.get(PR_WIDTH).getLength();
}
@@ -177,7 +176,7 @@ public abstract class AbstractGraphics extends FObj {
/**
* @return the "line-height" property.
*/
- public Length getLineHeight() {
+ public SpaceProperty getLineHeight() {
return lineHeight;
}
@@ -231,13 +230,6 @@ public abstract class AbstractGraphics extends FObj {
}
/**
- * @return the "vertical-align" property.
- */
- public int getVerticalAlign() {
- return verticalAlign;
- }
-
- /**
* @return the "overflow" property.
*/
public int getOverflow() {
@@ -245,6 +237,34 @@ public abstract class AbstractGraphics extends FObj {
}
/**
+ * @return the "alignment-adjust" property
+ */
+ public Length getAlignmentAdjust() {
+ return alignmentAdjust;
+ }
+
+ /**
+ * @return the "alignment-baseline" property
+ */
+ public int getAlignmentBaseline() {
+ return alignmentBaseline;
+ }
+
+ /**
+ * @return the "baseline-shift" property
+ */
+ public Length getBaselineShift() {
+ return baselineShift;
+ }
+
+ /**
+ * @return the "dominant-baseline" property
+ */
+ public int getDominantBaseline() {
+ return dominantBaseline;
+ }
+
+ /**
* @see org.apache.fop.fo.IntrinsicSizeAccess#getIntrinsicWidth()
*/
public abstract int getIntrinsicWidth();