Changeset 11722 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/AreaElement.java
- Timestamp:
- 2017-03-13T17:04:29+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/AreaElement.java
r11720 r11722 10 10 import org.openstreetmap.josm.data.osm.Way; 11 11 import org.openstreetmap.josm.data.osm.visitor.paint.MapPaintSettings; 12 import org.openstreetmap.josm.data.osm.visitor.paint.PaintColors;13 12 import org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer; 14 13 import org.openstreetmap.josm.data.preferences.IntegerProperty; 15 14 import org.openstreetmap.josm.gui.mappaint.Cascade; 16 15 import org.openstreetmap.josm.gui.mappaint.Environment; 17 import org.openstreetmap.josm.gui.mappaint.Keyword;18 16 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles.IconReference; 19 17 import org.openstreetmap.josm.gui.util.RotationAngle; … … 120 118 } 121 119 122 TextLabel text = null; 123 Keyword textPos = c.get(TEXT_POSITION, null, Keyword.class); 124 if (textPos == null || "center".equals(textPos.val)) { 125 text = TextLabel.create(env, PaintColors.AREA_TEXT.get(), true); 126 } 120 TextLabel text = null; // <- text is handled by TextElement 127 121 MapImage iconImage = NodeElement.createIcon(env); 128 122 RotationAngle rotationAngle = NodeElement.createRotationAngle(env); 129 123 130 if (iconImage != null || text != null) {124 if (iconImage != null) { 131 125 // fake a transparent color. 132 126 color = new Color(0, 0, 0, 0);
Note:
See TracChangeset
for help on using the changeset viewer.