| | |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("CID", Integer.class)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("LID", Integer.class)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("LEVEL", Integer.class)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("COLOR", String.class)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("SYMCOLOR", Integer.class)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("SYMWEIGHT", Integer.class)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("SYMSTYLE", Integer.class)); |
| | |
| | | if (element instanceof TextElement) |
| | | { |
| | | TextElement txtElement = (TextElement) element; |
| | | double angle = txtElement.getRotationAngle(); |
| | | angle += 180.0; |
| | | angle = ((angle > 360.0)? (angle - 360.0) : (angle)); |
| | | convertDecordator.setConverter(txtElement); |
| | | Feature feature = featureType.create(new Object[]{ |
| | | convertDecordator.toGeometry(geometryFactory), |
| | |
| | | (int) fLinkage.getComponentID(), |
| | | 0, |
| | | txtElement.getLevelIndex(), |
| | | colorTable.getColorCode(txtElement.getColorIndex()), |
| | | colorTable.getColor(txtElement.getColorIndex()).getRGB(), |
| | | txtElement.getWeight(), |
| | | txtElement.getLineStyle(), |
| | |
| | | txtElement.getJustification(), |
| | | txtElement.getTextHeight(), |
| | | txtElement.getTextWidth(), |
| | | txtElement.getRotationAngle(), |
| | | angle, |
| | | txtElement.getText() |
| | | }); |
| | | return feature; |
| | |
| | | sb.append(text); |
| | | } |
| | | |
| | | double angle = nodeElement.getRotationAngle(); |
| | | angle += 180.0; |
| | | angle = ((angle > 360.0)? (angle - 360.0) : (angle)); |
| | | Feature feature = featureType.create(new Object[]{ |
| | | convertDecordator.toGeometry(geometryFactory), |
| | | (int) fLinkage.getFsc(), |
| | |
| | | (int) fLinkage.getComponentID(), |
| | | 0, |
| | | nodeElement.getLevelIndex(), |
| | | nodeElement.getColorIndex(), |
| | | colorTable.getColorCode(nodeElement.getColorIndex()), |
| | | colorTable.getColor(nodeElement.getColorIndex()).getRGB(), |
| | | nodeElement.getWeight(), |
| | | nodeElement.getLineStyle(), |
| | | nodeElement.getFontIndex(), |
| | | nodeElement.getJustification(), |
| | | nodeElement.getTextNodeHeight(), |
| | | nodeElement.getTextNodeLength(), |
| | | nodeElement.getRotationAngle(), |
| | | angle, |
| | | sb.toString() |
| | | }); |
| | | return feature; |