private LineType convertFlowLineStyle(final LayoutFlowFactsType flowLayout) { final LineType lineType = ANF_FACTORY.createLineType(); lineType.setWidth(new BigDecimal(DEFAULT_LINE_SIZE)); for (final JAXBElement<?> obj : flowLayout.getAttributes().getAutosizeOrBackgroundColorOrBendable()) { if (obj.getName().getLocalPart().equalsIgnoreCase(LINE_STYLE)) { lineType.setWidth(new BigDecimal((BigInteger) obj.getValue())); } } return lineType; }
private Collection<PositionType> convertFlowPositions(final LayoutFlowFactsType flowLayout) throws ParseException { final ArrayList<PositionType> positions = new ArrayList<PositionType>(); for (final JAXBElement<?> obj : flowLayout.getAttributes().getAutosizeOrBackgroundColorOrBendable()) { if (obj.getValue() instanceof LayoutPointsType) { final LayoutPointsType points = (LayoutPointsType) obj.getValue(); for (final LayoutPointType point : points.getValue()) { final PositionType position = ANF_FACTORY.createPositionType(); position.setX(convertToBigDecimal(point.getX())); position.setY(convertToBigDecimal(point.getY())); positions.add(position); } } } return positions; }