浏览代码

Minor fixup: Use superclass implementation and avoid duplicate instance member

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1722659 13f79535-47bb-0310-9956-ffa450edef68
pull/39/head
Andreas L. Delmelle 8 年前
父节点
当前提交
53c73da3b3
共有 1 个文件被更改,包括 1 次插入9 次删除
  1. 1
    9
      src/java/org/apache/fop/fo/flow/AbstractGraphics.java

+ 1
- 9
src/java/org/apache/fop/fo/flow/AbstractGraphics.java 查看文件

@@ -61,7 +61,6 @@ public abstract class AbstractGraphics extends FObj
private int displayAlign;
private int dominantBaseline;
private Length height;
private String id;
private LengthRangeProperty inlineProgressionDimension;
private KeepProperty keepWithNext;
private KeepProperty keepWithPrevious;
@@ -92,6 +91,7 @@ public abstract class AbstractGraphics extends FObj

/** {@inheritDoc} */
public void bind(PropertyList pList) throws FOPException {
super.bind(pList);
commonAccessibility = CommonAccessibility.getInstance(pList);
commonBorderPaddingBackground = pList.getBorderPaddingBackgroundProps();
alignmentAdjust = pList.get(PR_ALIGNMENT_ADJUST).getLength();
@@ -104,7 +104,6 @@ public abstract class AbstractGraphics extends FObj
displayAlign = pList.get(PR_DISPLAY_ALIGN).getEnum();
dominantBaseline = pList.get(PR_DOMINANT_BASELINE).getEnum();
height = pList.get(PR_HEIGHT).getLength();
id = pList.get(PR_ID).getString();
inlineProgressionDimension = pList.get(PR_INLINE_PROGRESSION_DIMENSION).getLengthRange();
keepWithNext = pList.get(PR_KEEP_WITH_NEXT).getKeep();
keepWithPrevious = pList.get(PR_KEEP_WITH_PREVIOUS).getKeep();
@@ -126,13 +125,6 @@ public abstract class AbstractGraphics extends FObj
return commonAccessibility;
}

/**
* @return the "id" property.
*/
public String getId() {
return id;
}

/** @return the {@link CommonBorderPaddingBackground} */
public CommonBorderPaddingBackground getCommonBorderPaddingBackground() {
return commonBorderPaddingBackground;

正在加载...
取消
保存