overflow = pList.get(PR_OVERFLOW).getEnum();
referenceOrientation = pList.get(PR_REFERENCE_ORIENTATION).getNumeric();
writingModeTraits = new WritingModeTraits(
- WritingMode.valueOf(pList.get(PR_WRITING_MODE).getEnum()));
- WritingMode.valueOf(pList.get(PR_WRITING_MODE).getEnum()),
- pList.getExplicit(PR_WRITING_MODE) != null);
++ WritingMode.valueOf(pList.get(PR_WRITING_MODE).getEnum()),
++ pList.getExplicit(PR_WRITING_MODE) != null);
}
/**
return lineHeight;
}
- /** @return the "overflow" FO trait */
- public int getOverflow() {
- return overflow;
+ public Length getAlignmentAdjust() {
+ return alignmentAdjust;
}
- /** @return the "reference-orientation" FO trait */
- public int getReferenceOrientation() {
- return referenceOrientation.getValue();
+ public int getAlignmentBaseline() {
+ return alignmentBaseline;
+ }
+
+ public Length getBaselineShift() {
+ return baselineShift;
+ }
+
+ public int getDominantBaseline() {
+ return dominantBaseline;
+ }
+
+ public WritingMode getWritingMode() {
+ return writingModeTraits.getWritingMode();
}
- * Obtain inline progression direction.
- * @return the inline progression direction
+ /**
++ * Obtain writing mode explicit indicator.
++ * @return the writing mode explicit indicator
+ */
++ public boolean getExplicitWritingMode() {
++ return writingModeTraits.getExplicitWritingMode();
++ }
++
public Direction getInlineProgressionDirection() {
return writingModeTraits.getInlineProgressionDirection();
}
return false;
}
+ @Override
+ public boolean generatesReferenceAreas() {
+ return true;
+ }
+
+ @Override
+ protected boolean isBidiBoundary(boolean propagate) {
+ return getExplicitWritingMode();
+ }
+
}