summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Bernard West <pbwest@apache.org>2004-07-06 12:14:21 +0000
committerPeter Bernard West <pbwest@apache.org>2004-07-06 12:14:21 +0000
commitafeb3261e4a80cd9b07dba26b447b58d807702c8 (patch)
treebe2abaa1c23a9a7fb81c4bb117089e381bd13e2b
parent40f3a88deafafbaa955418b985f6bb4c0a21202f (diff)
downloadxmlgraphics-fop-afeb3261e4a80cd9b07dba26b447b58d807702c8.tar.gz
xmlgraphics-fop-afeb3261e4a80cd9b07dba26b447b58d807702c8.zip
Cosmetic changes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197755 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/fo/properties/WritingMode.java39
1 files changed, 26 insertions, 13 deletions
diff --git a/src/java/org/apache/fop/fo/properties/WritingMode.java b/src/java/org/apache/fop/fo/properties/WritingMode.java
index 1078759c0..8ab211f7a 100644
--- a/src/java/org/apache/fop/fo/properties/WritingMode.java
+++ b/src/java/org/apache/fop/fo/properties/WritingMode.java
@@ -364,6 +364,19 @@ public class WritingMode extends Property {
return leftToRight[writingMode];
}
+ /**
+ * Returns a <code>Rectangle2D</code> constructed from the normailized
+ * values of offset and dimensions expressed in terms of
+ * <i>inline-progression-direction</i> and
+ * <i>block-progression-direction</i>
+ * @param ipOffset
+ * @param bpOffset
+ * @param ipDim the <i>inline-progression-dimension</i>
+ * @param bpDim the <i>block-progression-dimension</i>
+ * @param wMode
+ * @return
+ * @throws PropertyException
+ */
public static Rectangle2D.Double rectRelToAbs(
double ipOffset, double bpOffset, double ipDim, double bpDim,
int wMode) throws PropertyException {
@@ -375,12 +388,12 @@ public class WritingMode extends Property {
/**
* Normalizes a pair of values representing an
- * <code>inline-progression-dimension</code> and a
- * <code>block-progression-dimension</code> by converting them to a
- * <code>Point2D</code> representing the corresponding X and Y values in
+ * <i>inline-progression-dimension</i> and a
+ * <i>block-progression-dimension</i> by converting them to a
+ * <i>Point2D</i> representing the corresponding X and Y values in
* Java 2D user co-ordinates.
- * @param ipDim the <code>inline-progression-dimension</code>
- * @param bpDim the <code>block-progression-dimension</code>
+ * @param ipDim the <i>inline-progression-dimension</i>
+ * @param bpDim the <i>block-progression-dimension</i>
* @param writingMode
* @return the corresponding x, y values
* @throws PropertyException
@@ -396,12 +409,12 @@ public class WritingMode extends Property {
/**
* Normalizes a pair of values representing an
- * <code>inline-progression-dimension</code> and a
- * <code>block-progression-dimension</code> by converting them to a
+ * <i>inline-progression-dimension</i> and a
+ * <i>block-progression-dimension</i> by converting them to a
* <code>Point2D</code> representing the corresponding X and Y values in
* Java 2D user co-ordinates.
- * @param ipDim the <code>inline-progression-dimension</code>
- * @param bpDim the <code>block-progression-dimension</code>
+ * @param ipDim the <i>inline-progression-dimension</i>
+ * @param bpDim the <i>block-progression-dimension</i>
* @param writingMode
* @return the corresponding x, y values
* @throws PropertyException
@@ -420,12 +433,12 @@ public class WritingMode extends Property {
/**
* Normalizes a pair of values representing an
- * <code>inline-progression-dimension</code> and a
- * <code>block-progression-dimension</code> by converting them to a
+ * <i>inline-progression-dimension</i> and a
+ * <i>block-progression-dimension</i> by converting them to a
* <code>Point2D</code> representing the corresponding X and Y values in
* Java 2D user co-ordinates.
- * @param ipDim the <code>inline-progression-dimension</code>
- * @param bpDim the <code>block-progression-dimension</code>
+ * @param ipDim the <i>inline-progression-dimension</i>
+ * @param bpDim the <i>block-progression-dimension</i>
* @param writingMode
* @return the corresponding x, y values
* @throws PropertyException