Procházet zdrojové kódy

More work on corresponding properties;

Changes to interface CorrespodingProperties
Work on Padding properties


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197543 13f79535-47bb-0310-9956-ffa450edef68
tags/Defoe_export
Peter Bernard West před 20 roky
rodič
revize
7541898783
35 změnil soubory, kde provedl 219 přidání a 105 odebrání
  1. 0
    8
      src/java/org/apache/fop/fo/properties/AbstractCorrespondingProperty.java
  2. 8
    1
      src/java/org/apache/fop/fo/properties/BorderAfterWidthLength.java
  3. 7
    1
      src/java/org/apache/fop/fo/properties/BorderBeforeWidthLength.java
  4. 0
    4
      src/java/org/apache/fop/fo/properties/BorderBottomColor.java
  5. 0
    5
      src/java/org/apache/fop/fo/properties/BorderBottomStyle.java
  6. 0
    4
      src/java/org/apache/fop/fo/properties/BorderBottomWidth.java
  7. 0
    7
      src/java/org/apache/fop/fo/properties/BorderColorCorresponding.java
  8. 0
    4
      src/java/org/apache/fop/fo/properties/BorderColorCorrespondingRelative.java
  9. 0
    5
      src/java/org/apache/fop/fo/properties/BorderCommonStyle.java
  10. 0
    4
      src/java/org/apache/fop/fo/properties/BorderCommonStyleRelative.java
  11. 0
    5
      src/java/org/apache/fop/fo/properties/BorderCommonWidth.java
  12. 0
    4
      src/java/org/apache/fop/fo/properties/BorderCommonWidthRelative.java
  13. 7
    2
      src/java/org/apache/fop/fo/properties/BorderEndWidthLength.java
  14. 0
    4
      src/java/org/apache/fop/fo/properties/BorderLeftColor.java
  15. 0
    4
      src/java/org/apache/fop/fo/properties/BorderLeftStyle.java
  16. 0
    4
      src/java/org/apache/fop/fo/properties/BorderLeftWidth.java
  17. 0
    4
      src/java/org/apache/fop/fo/properties/BorderRightColor.java
  18. 0
    4
      src/java/org/apache/fop/fo/properties/BorderRightStyle.java
  19. 0
    4
      src/java/org/apache/fop/fo/properties/BorderRightWidth.java
  20. 0
    4
      src/java/org/apache/fop/fo/properties/BorderStartStyle.java
  21. 8
    1
      src/java/org/apache/fop/fo/properties/BorderStartWidthLength.java
  22. 0
    4
      src/java/org/apache/fop/fo/properties/BorderTopColor.java
  23. 0
    4
      src/java/org/apache/fop/fo/properties/BorderTopStyle.java
  24. 0
    4
      src/java/org/apache/fop/fo/properties/BorderTopWidth.java
  25. 0
    2
      src/java/org/apache/fop/fo/properties/CorrespondingProperty.java
  26. 8
    1
      src/java/org/apache/fop/fo/properties/PaddingAfter.java
  27. 8
    1
      src/java/org/apache/fop/fo/properties/PaddingAfterLength.java
  28. 8
    1
      src/java/org/apache/fop/fo/properties/PaddingBefore.java
  29. 8
    1
      src/java/org/apache/fop/fo/properties/PaddingBeforeLength.java
  30. 63
    0
      src/java/org/apache/fop/fo/properties/PaddingCorrespondingAbsolute.java
  31. 62
    0
      src/java/org/apache/fop/fo/properties/PaddingCorrespondingRelative.java
  32. 8
    1
      src/java/org/apache/fop/fo/properties/PaddingEnd.java
  33. 8
    1
      src/java/org/apache/fop/fo/properties/PaddingEndLength.java
  34. 8
    1
      src/java/org/apache/fop/fo/properties/PaddingStart.java
  35. 8
    1
      src/java/org/apache/fop/fo/properties/PaddingStartLength.java

+ 0
- 8
src/java/org/apache/fop/fo/properties/AbstractCorrespondingProperty.java Zobrazit soubor

throw new PropertyException("Called from superclass"); throw new PropertyException("Called from superclass");
} }


/**
* @return
* @throws PropertyException
*/
public boolean overridesCorresponding()
throws PropertyException {
throw new PropertyException("Called from superclass");
}
} }

+ 8
- 1
src/java/org/apache/fop/fo/properties/BorderAfterWidthLength.java Zobrazit soubor

package org.apache.fop.fo.properties; package org.apache.fop.fo.properties;


import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class BorderAfterWidthLength extends BorderCommonWidth {
public class BorderAfterWidthLength extends BorderCommonWidthRelative {
public static final int dataTypes = LENGTH; public static final int dataTypes = LENGTH;


public int getDataTypes() { public int getDataTypes() {
return inherited; return inherited;
} }


public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingWidthProperty(
foNode, WritingMode.AFTER);
}



} }



+ 7
- 1
src/java/org/apache/fop/fo/properties/BorderBeforeWidthLength.java Zobrazit soubor

package org.apache.fop.fo.properties; package org.apache.fop.fo.properties;


import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class BorderBeforeWidthLength extends BorderCommonWidth {
public class BorderBeforeWidthLength extends BorderCommonWidthRelative {
public static final int dataTypes = LENGTH; public static final int dataTypes = LENGTH;


public int getDataTypes() { public int getDataTypes() {
return inherited; return inherited;
} }


public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingWidthProperty(
foNode, WritingMode.BEFORE);
}


} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderBottomColor.java Zobrazit soubor

foNode, WritingMode.BOTTOM); foNode, WritingMode.BOTTOM);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 0
- 5
src/java/org/apache/fop/fo/properties/BorderBottomStyle.java Zobrazit soubor

foNode, WritingMode.BOTTOM); foNode, WritingMode.BOTTOM);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}


} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderBottomWidth.java Zobrazit soubor

foNode, WritingMode.BOTTOM); foNode, WritingMode.BOTTOM);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 0
- 7
src/java/org/apache/fop/fo/properties/BorderColorCorresponding.java Zobrazit soubor

throws PropertyException { throws PropertyException {
throw new PropertyException("Called from superclass"); throw new PropertyException("Called from superclass");
} }
/* (non-Javadoc)
* @see org.apache.fop.fo.properties.CorrespondingProperty#overridesCorresponding(org.apache.fop.fo.FONode)
*/
public boolean overridesCorresponding(FONode foNode)
throws PropertyException {
throw new PropertyException("Called from superclass");
}
} }

+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderColorCorrespondingRelative.java Zobrazit soubor

return absBorderColorProps[absEdge]; return absBorderColorProps[absEdge];
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

public boolean isCorrespondingRelative() { public boolean isCorrespondingRelative() {
return true; return true;
} }

+ 0
- 5
src/java/org/apache/fop/fo/properties/BorderCommonStyle.java Zobrazit soubor

import java.util.HashMap; import java.util.HashMap;


import org.apache.fop.datatypes.Ints; import org.apache.fop.datatypes.Ints;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


/** /**
return rwEnums[index]; return rwEnums[index];
} }


public boolean overridesCorresponding(FONode foNode)
throws PropertyException {
throw new PropertyException("Called within superclass");
}
} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderCommonStyleRelative.java Zobrazit soubor

return absBorderStyleProps[absEdge]; return absBorderStyleProps[absEdge];
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

public boolean isCorrespondingRelative() { public boolean isCorrespondingRelative() {
return true; return true;
} }

+ 0
- 5
src/java/org/apache/fop/fo/properties/BorderCommonWidth.java Zobrazit soubor

return rwEnums[index]; return rwEnums[index];
} }


public boolean overridesCorresponding(FONode foNode)
throws PropertyException {
throw new PropertyException("Called within superclass");
}

} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderCommonWidthRelative.java Zobrazit soubor

return absBorderWidthProps[absEdge]; return absBorderWidthProps[absEdge];
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

public boolean isCorrespondingRelative() { public boolean isCorrespondingRelative() {
return true; return true;
} }

+ 7
- 2
src/java/org/apache/fop/fo/properties/BorderEndWidthLength.java Zobrazit soubor

package org.apache.fop.fo.properties; package org.apache.fop.fo.properties;


import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class BorderEndWidthLength extends BorderCommonWidth {
public class BorderEndWidthLength extends BorderCommonWidthRelative {
public static final int dataTypes = LENGTH; public static final int dataTypes = LENGTH;


public int getDataTypes() { public int getDataTypes() {
public int getInherited() { public int getInherited() {
return inherited; return inherited;
} }

public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingWidthProperty(
foNode, WritingMode.END);
}


} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderLeftColor.java Zobrazit soubor

foNode, WritingMode.LEFT); foNode, WritingMode.LEFT);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderLeftStyle.java Zobrazit soubor

foNode, WritingMode.LEFT); foNode, WritingMode.LEFT);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderLeftWidth.java Zobrazit soubor

foNode, WritingMode.LEFT); foNode, WritingMode.LEFT);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderRightColor.java Zobrazit soubor

foNode, WritingMode.RIGHT); foNode, WritingMode.RIGHT);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderRightStyle.java Zobrazit soubor

foNode, WritingMode.RIGHT); foNode, WritingMode.RIGHT);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderRightWidth.java Zobrazit soubor

foNode, WritingMode.RIGHT); foNode, WritingMode.RIGHT);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderStartStyle.java Zobrazit soubor

foNode, WritingMode.START); foNode, WritingMode.START);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 8
- 1
src/java/org/apache/fop/fo/properties/BorderStartWidthLength.java Zobrazit soubor

package org.apache.fop.fo.properties; package org.apache.fop.fo.properties;


import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class BorderStartWidthLength extends BorderCommonWidth {
public class BorderStartWidthLength extends BorderCommonWidthRelative {
public static final int dataTypes = LENGTH; public static final int dataTypes = LENGTH;


public int getDataTypes() { public int getDataTypes() {
return inherited; return inherited;
} }


public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingWidthProperty(
foNode, WritingMode.END);
}

} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderTopColor.java Zobrazit soubor

foNode, WritingMode.TOP); foNode, WritingMode.TOP);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderTopStyle.java Zobrazit soubor

foNode, WritingMode.TOP); foNode, WritingMode.TOP);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 0
- 4
src/java/org/apache/fop/fo/properties/BorderTopWidth.java Zobrazit soubor

foNode, WritingMode.TOP); foNode, WritingMode.TOP);
} }


public boolean overridesCorresponding(FONode foNode) {
return false;
}

} }



+ 0
- 2
src/java/org/apache/fop/fo/properties/CorrespondingProperty.java Zobrazit soubor

throws PropertyException; throws PropertyException;
public int getCorrespondingProperty(FONode foNode) public int getCorrespondingProperty(FONode foNode)
throws PropertyException; throws PropertyException;
public boolean overridesCorresponding(FONode foNode)
throws PropertyException;
} }

+ 8
- 1
src/java/org/apache/fop/fo/properties/PaddingAfter.java Zobrazit soubor



import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class PaddingAfter extends Property {
public class PaddingAfter extends PaddingCorrespondingRelative {
public static final int dataTypes = public static final int dataTypes =
COMPOUND | PERCENTAGE | LENGTH | INHERIT; COMPOUND | PERCENTAGE | LENGTH | INHERIT;


return inherited; return inherited;
} }


public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingPaddingProperty(
foNode, WritingMode.AFTER);
}

} }



+ 8
- 1
src/java/org/apache/fop/fo/properties/PaddingAfterLength.java Zobrazit soubor



import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class PaddingAfterLength extends Property {
public class PaddingAfterLength extends PaddingCorrespondingRelative {
public static final int dataTypes = PERCENTAGE | LENGTH; public static final int dataTypes = PERCENTAGE | LENGTH;


public int getDataTypes() { public int getDataTypes() {
return inherited; return inherited;
} }


public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingPaddingProperty(
foNode, WritingMode.AFTER);
}

} }



+ 8
- 1
src/java/org/apache/fop/fo/properties/PaddingBefore.java Zobrazit soubor



import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class PaddingBefore extends Property {
public class PaddingBefore extends PaddingCorrespondingRelative {
public static final int dataTypes = public static final int dataTypes =
COMPOUND |PERCENTAGE | LENGTH | INHERIT; COMPOUND |PERCENTAGE | LENGTH | INHERIT;


return inherited; return inherited;
} }


public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingPaddingProperty(
foNode, WritingMode.BEFORE);
}

} }



+ 8
- 1
src/java/org/apache/fop/fo/properties/PaddingBeforeLength.java Zobrazit soubor



import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class PaddingBeforeLength extends Property {
public class PaddingBeforeLength extends PaddingCorrespondingRelative {
public static final int dataTypes = LENGTH; public static final int dataTypes = LENGTH;


public int getDataTypes() { public int getDataTypes() {
return inherited; return inherited;
} }


public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingPaddingProperty(
foNode, WritingMode.BEFORE);
}

} }



+ 63
- 0
src/java/org/apache/fop/fo/properties/PaddingCorrespondingAbsolute.java Zobrazit soubor

/*
*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Created on 29/04/2004
* $Id$
*/
package org.apache.fop.fo.properties;

import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException;

/**
* @author pbw
* @version $Revision$ $Name$
*/
public abstract class PaddingCorrespondingAbsolute
extends AbstractCorrespondingProperty {

/** Array of relative padding properties,
* indexed by relative edge constants */
private static int[] relPaddingProps = {
PropNames.NO_PROPERTY
,PropNames.PADDING_BEFORE
,PropNames.PADDING_AFTER
,PropNames.PADDING_START
,PropNames.PADDING_END
};

/**
* Gets the relative padding property corresponding to the given
* absolute edge
* @param foNode the node on which the property is being defined
* @param absoluteEdge
* @return the relative padding property index
* @throws PropertyException
*/
protected int getCorrespondingPaddingProperty(
FONode foNode, int absoluteEdge)
throws PropertyException {
int relEdge = WritingMode.getCorrespondingRelativeEdge(
getWritingMode(foNode), absoluteEdge);
return relPaddingProps[relEdge];
}

public boolean isCorrespondingAbsolute() {
return true;
}

}

+ 62
- 0
src/java/org/apache/fop/fo/properties/PaddingCorrespondingRelative.java Zobrazit soubor

/*
*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Created on 29/04/2004
* $Id$
*/
package org.apache.fop.fo.properties;

import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException;

/**
* @author pbw
* @version $Revision$ $Name$
*/
public abstract class PaddingCorrespondingRelative extends AbstractCorrespondingProperty {

/** Array of absolute padding properties,
* indexed by absolute edge constants */
private static int[] absPaddingProps = {
PropNames.NO_PROPERTY
,PropNames.PADDING_TOP
,PropNames.PADDING_BOTTOM
,PropNames.PADDING_LEFT
,PropNames.PADDING_RIGHT
};

/**
* Gets the absolute padding property corresponding to the given
* relative edge
* @param foNode the node on which the property is being defined
* @param relativeEdge
* @return the absolute padding property index
* @throws PropertyException
*/
protected int getCorrespondingPaddingProperty(
FONode foNode, int relativeEdge)
throws PropertyException {
int relEdge = WritingMode.getCorrespondingAbsoluteEdge(
getWritingMode(foNode), relativeEdge);
return absPaddingProps[relEdge];
}

public boolean isCorrespondingRelative() {
return true;
}

}

+ 8
- 1
src/java/org/apache/fop/fo/properties/PaddingEnd.java Zobrazit soubor



import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class PaddingEnd extends Property {
public class PaddingEnd extends PaddingCorrespondingRelative {
public static final int dataTypes = public static final int dataTypes =
COMPOUND | PERCENTAGE | LENGTH | INHERIT; COMPOUND | PERCENTAGE | LENGTH | INHERIT;


return inherited; return inherited;
} }


public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingPaddingProperty(
foNode, WritingMode.END);
}

} }



+ 8
- 1
src/java/org/apache/fop/fo/properties/PaddingEndLength.java Zobrazit soubor



import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class PaddingEndLength extends Property {
public class PaddingEndLength extends PaddingCorrespondingRelative {
public static final int dataTypes = PERCENTAGE | LENGTH; public static final int dataTypes = PERCENTAGE | LENGTH;


public int getDataTypes() { public int getDataTypes() {
return inherited; return inherited;
} }


public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingPaddingProperty(
foNode, WritingMode.END);
}

} }



+ 8
- 1
src/java/org/apache/fop/fo/properties/PaddingStart.java Zobrazit soubor



import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class PaddingStart extends Property {
public class PaddingStart extends PaddingCorrespondingRelative {
public static final int dataTypes = public static final int dataTypes =
COMPOUND | PERCENTAGE | LENGTH | INHERIT; COMPOUND | PERCENTAGE | LENGTH | INHERIT;


return inherited; return inherited;
} }


public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingPaddingProperty(
foNode, WritingMode.START);
}

} }



+ 8
- 1
src/java/org/apache/fop/fo/properties/PaddingStartLength.java Zobrazit soubor



import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.PropertyValue;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropNames; import org.apache.fop.fo.PropNames;
import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyException;


public class PaddingStartLength extends Property {
public class PaddingStartLength extends PaddingCorrespondingRelative {
public static final int dataTypes = PERCENTAGE | LENGTH; public static final int dataTypes = PERCENTAGE | LENGTH;


public int getDataTypes() { public int getDataTypes() {
return inherited; return inherited;
} }


public int getCorrespondingProperty(FONode foNode)
throws PropertyException {
return getCorrespondingPaddingProperty(
foNode, WritingMode.START);
}

} }



Načítá se…
Zrušit
Uložit