/[Apache-SVN]
ViewVC logotype

Revision 197380


Jump to revision: Previous Next
Author: bckfnn
Date: Thu Feb 26 15:33:42 2004 UTC (20 years, 2 months ago)
Changed paths: 23
Log Message:
Support for percentages in property expression.

The different length properties all implement a Length interface
and all clients of the property subsystem must use the Length interface
when retrieving lengths.

The two different numerics (absolute and relative) both implement a
Numeric interface and all property calculations are done in terms of
the Numeric interface.

Lengths can be cast to numeric and can thus participate in expresions and
numerics can be cast to length (when dimension is 1) and can thus be used
as a length by the clients.

The call to Length.getValue() will cause relative lengths to be resolved
against their base length, and care must be taken to ensure that
getLength() is only called after all baselength has been assigned to the
FO elements.

PR: 26778 (first part).


Changed paths

Path Details
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/Length.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/LengthBase.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/Numeric.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/PercentBase.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/AbsFunction.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/BodyStartFunction.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/LabelEndFunction.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/MaxFunction.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/MinFunction.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/NumericOp.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/NumericProperty.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PropertyParser.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/RelativeNumericProperty.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/AutoLength.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CondLengthProperty.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/FixedLength.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/IndentPropertyMaker.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/LengthProperty.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/NumberProperty.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PercentLength.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/Property.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/TableColLength.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26