Changeset 11731 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Timestamp:
- 2017-03-13T20:29:33+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r11730 r11731 464 464 Rectangle2D nb = fontMetrics.getStringBounds(name, g); // if slow, approximate by strlen()*maxcharbounds(font) 465 465 466 Rectangle2D centeredNBounds = text.getLabelPositionSt eategy().findLabelPlacement(area, nb);466 Rectangle2D centeredNBounds = text.getLabelPositionStrategy().findLabelPlacement(area, nb); 467 467 if (centeredNBounds != null) { 468 468 Font defaultFont = g.getFont(); … … 751 751 * @since 11670 752 752 */ 753 public void drawAreaIcon(OsmPrimitive osm, MapImage img, boolean disabled, boolean selected, boolean member, double theta, PositionForAreaStrategy iconPosition) { 753 public void drawAreaIcon(OsmPrimitive osm, MapImage img, boolean disabled, boolean selected, boolean member, double theta, 754 PositionForAreaStrategy iconPosition) { 754 755 Rectangle2D.Double iconRect = new Rectangle2D.Double(-img.getWidth() / 2.0, -img.getHeight() / 2.0, img.getWidth(), img.getHeight()); 755 756 … … 1112 1113 */ 1113 1114 public void drawText(OsmPrimitive osm, TextLabel text) { 1114 PositionForAreaStrategy position = text.getLabelPositionSt eategy();1115 PositionForAreaStrategy position = text.getLabelPositionStrategy(); 1115 1116 if (position.supportsGlyphVector()) { 1116 1117 if (osm instanceof Way) {
Note:
See TracChangeset
for help on using the changeset viewer.