import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.properties.BorderCommonWidth;
public class BorderAfterWidth extends BorderCommonWidth {
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(MEDIUM);
+ return getMappedLength(null, MEDIUM);
}
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
- return getMappedLength (PropNames.BORDER_AFTER_WIDTH, enum);
+ return getMappedLength(node, PropNames.BORDER_AFTER_WIDTH, enum);
}
public static final int inherited = NO;
throws PropertyException
{
return getMappedLength
- (PropNames.BORDER_AFTER_WIDTH_LENGTH, MEDIUM);
+ (null, PropNames.BORDER_AFTER_WIDTH_LENGTH, MEDIUM);
}
public static final int inherited = NO;
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.properties.BorderCommonWidth;
public class BorderBeforeWidth extends BorderCommonWidth {
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(MEDIUM);
+ return getMappedLength(null, MEDIUM);
}
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
- return getMappedLength(PropNames.BORDER_BEFORE_WIDTH, enum);
+ return getMappedLength(node, PropNames.BORDER_BEFORE_WIDTH, enum);
}
public static final int inherited = NO;
throws PropertyException
{
return getMappedLength
- (PropNames.BORDER_BEFORE_WIDTH_LENGTH, MEDIUM);
+ (null, PropNames.BORDER_BEFORE_WIDTH_LENGTH, MEDIUM);
}
public static final int inherited = NO;
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.properties.BorderCommonWidth;
public class BorderBottomWidth extends BorderCommonWidth {
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(MEDIUM);
+ return getMappedLength(null, MEDIUM);
}
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
- return getMappedLength(PropNames.BORDER_BOTTOM_WIDTH, enum);
+ return getMappedLength(node, PropNames.BORDER_BOTTOM_WIDTH, enum);
}
public static final int inherited = NO;
import org.apache.fop.fo.properties.Property;
import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.Numeric;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.expr.PropertyException;
/**
* @return <tt>Numeric[]</tt> containing the values corresponding
* to the MappedNumeric enumeration constants for border width
*/
- public Numeric getMappedLength(int property, int enum)
+ public Numeric getMappedLength(FONode node, int property, int enum)
throws PropertyException
{
return
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.datatypes.Numeric;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.properties.BorderCommonWidth;
public class BorderEndWidth extends BorderCommonWidth {
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(MEDIUM);
+ return getMappedLength(null, MEDIUM);
}
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
- return getMappedLength(PropNames.BORDER_END_WIDTH, enum);
+ return getMappedLength(node, PropNames.BORDER_END_WIDTH, enum);
}
public static final int inherited = NO;
throws PropertyException
{
return getMappedLength
- (PropNames.BORDER_END_WIDTH_LENGTH, MEDIUM);
+ (null, PropNames.BORDER_END_WIDTH_LENGTH, MEDIUM);
}
public static final int inherited = NO;
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.properties.BorderCommonWidth;
public class BorderLeftWidth extends BorderCommonWidth {
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(MEDIUM);
+ return getMappedLength(null, MEDIUM);
}
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
- return getMappedLength(PropNames.BORDER_LEFT_WIDTH, enum);
+ return getMappedLength(node, PropNames.BORDER_LEFT_WIDTH, enum);
}
public static final int inherited = NO;
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.properties.BorderCommonWidth;
public class BorderRightWidth extends BorderCommonWidth {
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(MEDIUM);
+ return getMappedLength(null, MEDIUM);
}
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
- return getMappedLength(PropNames.BORDER_RIGHT_WIDTH, enum);
+ return getMappedLength(node, PropNames.BORDER_RIGHT_WIDTH, enum);
}
public static final int inherited = NO;
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.properties.BorderCommonWidth;
public class BorderStartWidth extends BorderCommonWidth {
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(MEDIUM);
+ return getMappedLength(null, MEDIUM);
}
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
- return getMappedLength(PropNames.BORDER_START_WIDTH, enum);
+ return getMappedLength(node, PropNames.BORDER_START_WIDTH, enum);
}
public static final int inherited = NO;
throws PropertyException
{
return getMappedLength
- (PropNames.BORDER_START_WIDTH_LENGTH, MEDIUM);
+ (null, PropNames.BORDER_START_WIDTH_LENGTH, MEDIUM);
}
public static final int inherited = NO;
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.datatypes.Numeric;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.properties.BorderCommonWidth;
public class BorderTopWidth extends BorderCommonWidth {
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(MEDIUM);
+ System.out.println("In BorderTopWidth geInitialValue.");
+ return getMappedLength(null, MEDIUM);
}
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
- return getMappedLength(PropNames.BORDER_TOP_WIDTH, enum);
+ return getMappedLength(node, PropNames.BORDER_TOP_WIDTH, enum);
}
public static final int inherited = NO;
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.fo.properties.WordSpacingCommon;
public class WordSpacing extends WordSpacingCommon {
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(NORMAL); //normal
+ return getMappedLength(null, NORMAL); //null imples initial value
}
public static final int inherited = NO;
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
if (enum != NORMAL)
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.datatypes.Numeric;
import org.apache.fop.datatypes.Length;
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(NORMAL);
+ return getMappedLength(null, NORMAL); // null implies initial value
}
public static final int inherited = COMPUTED;
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
if (enum != NORMAL)
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.datatypes.Numeric;
import org.apache.fop.datatypes.Length;
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(WordSpacing.NORMAL);
+ return getMappedLength(null, NORMAL); // null implies initial value
}
public static final int inherited = COMPUTED;
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
if (enum != NORMAL)
import org.apache.fop.fo.expr.PropertyException;
import org.apache.fop.fo.PropNames;
+import org.apache.fop.fo.FONode;
import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.datatypes.Numeric;
import org.apache.fop.datatypes.Length;
public PropertyValue getInitialValue(int property)
throws PropertyException
{
- return getMappedLength(WordSpacing.NORMAL);
+ return getMappedLength(null, NORMAL); // null implies initial value
}
public static final int inherited = COMPUTED;
- public Numeric getMappedLength(int enum)
+ public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
{
if (enum != NORMAL)