Changeset 12285 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement
- Timestamp:
- 2017-05-31T17:07:52+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement
- Files:
-
- 1 deleted
- 2 edited
-
AreaElement.java (modified) (2 diffs)
-
LineTextElement.java (deleted)
-
TextLabel.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/AreaElement.java
r11811 r12285 40 40 */ 41 41 public MapImage fillImage; 42 43 /**44 * The text that should be written on this area.45 * @deprecated Use {@link TextElement} instead.46 */47 @Deprecated48 public TextLabel text;49 42 50 43 /** … … 127 120 } 128 121 } 129 painter.drawArea((Way) osm, myColor, fillImage, extent, extentThreshold, painter.isInactiveMode() || osm.isDisabled() , text);122 painter.drawArea((Way) osm, myColor, fillImage, extent, extentThreshold, painter.isInactiveMode() || osm.isDisabled()); 130 123 } else if (osm instanceof Relation) { 131 124 if (color != null && (selected || outermember)) { 132 125 myColor = paintSettings.getRelationSelectedColor(color.getAlpha()); 133 126 } 134 painter.drawArea((Relation) osm, myColor, fillImage, extent, extentThreshold, painter.isInactiveMode() || osm.isDisabled() , text);127 painter.drawArea((Relation) osm, myColor, fillImage, extent, extentThreshold, painter.isInactiveMode() || osm.isDisabled()); 135 128 } 136 129 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/TextLabel.java
r12082 r12285 15 15 import org.openstreetmap.josm.gui.mappaint.styleelement.LabelCompositionStrategy.StaticLabelCompositionStrategy; 16 16 import org.openstreetmap.josm.gui.mappaint.styleelement.LabelCompositionStrategy.TagLookupCompositionStrategy; 17 import org.openstreetmap.josm.gui.mappaint.styleelement.placement.CompletelyInsideAreaStrategy;18 17 import org.openstreetmap.josm.gui.mappaint.styleelement.placement.PositionForAreaStrategy; 19 18 import org.openstreetmap.josm.tools.CheckParameterUtil; … … 61 60 */ 62 61 private final PositionForAreaStrategy labelPositionStrategy; 63 64 /**65 * Creates a new text element66 *67 * @param strategy the strategy indicating how the text is composed for a specific {@link OsmPrimitive} to be rendered.68 * If null, no label is rendered.69 * @param font the font to be used. Must not be null.70 * @param xOffset x offset71 * @param yOffset y offset72 * @param color the color to be used. Must not be null73 * @param haloRadius halo radius74 * @param haloColor halo color75 * @deprecated since 11722, To be removed in mid-201776 */77 @Deprecated78 public TextLabel(LabelCompositionStrategy strategy, Font font, int xOffset, int yOffset, Color color, Float haloRadius, Color haloColor) {79 this(strategy, font, xOffset, yOffset, color, haloRadius, haloColor, CompletelyInsideAreaStrategy.INSTANCE);80 }81 62 82 63 /**
Note:
See TracChangeset
for help on using the changeset viewer.
