MCPcopy Create free account
hub / github.com/apache/xmlgraphics-fop / bind

Method bind

fop-core/src/main/java/org/apache/fop/fo/flow/Block.java:107–141  ·  view source on GitHub ↗

{@inheritDoc}

(PropertyList pList)

Source from the content-addressed store, hash-verified

105
106 /** {@inheritDoc} */
107 public void bind(PropertyList pList) throws FOPException {
108 super.bind(pList);
109 commonAccessibility = CommonAccessibility.getInstance(pList);
110 commonBorderPaddingBackground = pList.getBorderPaddingBackgroundProps();
111 commonFont = pList.getFontProps();
112 commonHyphenation = pList.getHyphenationProps();
113 commonMarginBlock = pList.getMarginBlockProps();
114 commonRelativePosition = pList.getRelativePositionProps();
115
116 breakAfter = pList.get(PR_BREAK_AFTER).getEnum();
117 breakBefore = pList.get(PR_BREAK_BEFORE).getEnum();
118 color = pList.get(PR_COLOR).getColor(getUserAgent());
119 hyphenationKeep = pList.get(PR_HYPHENATION_KEEP).getEnum();
120 hyphenationLadderCount = pList.get(PR_HYPHENATION_LADDER_COUNT).getNumeric();
121 intrusionDisplace = pList.get(PR_INTRUSION_DISPLACE).getEnum();
122 keepTogether = pList.get(PR_KEEP_TOGETHER).getKeep();
123 keepWithNext = pList.get(PR_KEEP_WITH_NEXT).getKeep();
124 keepWithPrevious = pList.get(PR_KEEP_WITH_PREVIOUS).getKeep();
125 lastLineEndIndent = pList.get(PR_LAST_LINE_END_INDENT).getLength();
126 linefeedTreatment = pList.get(PR_LINEFEED_TREATMENT).getEnum();
127 lineHeight = pList.get(PR_LINE_HEIGHT).getSpace();
128 lineHeightShiftAdjustment = pList.get(PR_LINE_HEIGHT_SHIFT_ADJUSTMENT).getEnum();
129 lineStackingStrategy = pList.get(PR_LINE_STACKING_STRATEGY).getEnum();
130 orphans = pList.get(PR_ORPHANS).getNumeric();
131 whiteSpaceTreatment = pList.get(PR_WHITE_SPACE_TREATMENT).getEnum();
132 span = pList.get(PR_SPAN).getEnum();
133 textAlign = pList.get(PR_TEXT_ALIGN).getEnum();
134 textAlignLast = pList.get(PR_TEXT_ALIGN_LAST).getEnum();
135 textIndent = pList.get(PR_TEXT_INDENT).getLength();
136 whiteSpaceCollapse = pList.get(PR_WHITE_SPACE_COLLAPSE).getEnum();
137 widows = pList.get(PR_WIDOWS).getNumeric();
138 wrapOption = pList.get(PR_WRAP_OPTION).getEnum();
139 disableColumnBalancing = pList.get(PR_X_DISABLE_COLUMN_BALANCING).getEnum();
140 visibility = pList.get(PR_VISIBILITY).getEnum();
141 }
142
143 /** {@inheritDoc} */
144 public void startOfNode() throws FOPException {

Callers 1

testMethod · 0.95

Calls 14

getInstanceMethod · 0.95
getFontPropsMethod · 0.80
getHyphenationPropsMethod · 0.80
getMarginBlockPropsMethod · 0.80
getEnumMethod · 0.65
getColorMethod · 0.65
getUserAgentMethod · 0.65
getMethod · 0.45
getNumericMethod · 0.45
getKeepMethod · 0.45

Tested by 1

testMethod · 0.76