[prev in list] [next in list] [prev in thread] [next in thread]
List: fop-cvs
Subject: cvs commit: xml-fop/src/java/org/apache/fop/area Area.java
From: pbwest () apache ! org
Date: 2004-06-29 7:37:16
Message-ID: 20040629073716.41768.qmail () minotaur ! apache ! org
[Download RAW message or body]
pbwest 2004/06/29 00:37:16
Modified: src/java/org/apache/fop/area Tag: FOP_0-20-0_Alt-Design
Area.java
Log:
Added contentRotation and frameRotation fields to represent reference-orientation \
for content-rectangle and framing rectangles respectively. WIP for integrating \
reference-orientation.
Revision Changes Path
No revision
No revision
1.1.2.22 +8 -1 xml-fop/src/java/org/apache/fop/area/Area.java
Index: Area.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/Area.java,v
retrieving revision 1.1.2.21
retrieving revision 1.1.2.22
diff -u -r1.1.2.21 -r1.1.2.22
--- Area.java 17 Jun 2004 11:28:22 -0000 1.1.2.21
+++ Area.java 29 Jun 2004 07:37:16 -0000 1.1.2.22
@@ -29,7 +29,7 @@
import org.apache.fop.fo.properties.WritingMode;
/**
- * The base class for all gemetrical areas. <code>Area</code> extends
+ * The base class for all geometrical areas. <code>Area</code> extends
* <code>AreaNode</code> because all areas will find themselves in a tree of
* some kind. It represents its geometry with a
* <code>Rectangle2D.Double</code>, whose dimensions are expressed in Java
@@ -121,6 +121,8 @@
/** True if the the <code>writing-mode</code> of the content area is
* left-to-right */
protected boolean contentLeftToRight = true;
+ /** The rotation trait for the content rectangle of this area */
+ protected int contentRotation = 0;
/** The writing-mode of the parent of the generating FO. This may
* differ from the writing mode of the generating FO if this is a
* <code>reference-area</code>. */
@@ -133,6 +135,8 @@
* left-to-right. May differ from contentIsHorizontal if this is a
* <code>reference-area</code>. */
protected boolean frameLeftToRight = true;
+ /** The rotation trait for the framing rectangles of this area */
+ protected int frameRotation = 0;
protected void setup() {
@@ -140,10 +144,13 @@
contentWritingMode = generatedBy.getWritingMode();
contentIsHorizontal = WritingMode.isHorizontal(contentWritingMode);
contentLeftToRight = WritingMode.isLeftToRight(contentWritingMode);
+ contentRotation = generatedBy.getRefOrientation();
frameWritingMode =
((FONode)generatedBy.getParent()).getWritingMode();
frameIsHorizontal = WritingMode.isHorizontal(frameWritingMode);
frameLeftToRight = WritingMode.isLeftToRight(frameWritingMode);
+ frameRotation =
+ ((FONode)generatedBy.getParent()).getRefOrientation();
} catch (PropertyException e) {
throw new RuntimeException(e.getMessage());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic