Ignore:
Timestamp:
2017-03-13T20:29:33+01:00 (7 years ago)
Author:
michael2402
Message:

Clean icon drawing code style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r11730 r11731  
    464464            Rectangle2D nb = fontMetrics.getStringBounds(name, g); // if slow, approximate by strlen()*maxcharbounds(font)
    465465
    466             Rectangle2D centeredNBounds = text.getLabelPositionSteategy().findLabelPlacement(area, nb);
     466            Rectangle2D centeredNBounds = text.getLabelPositionStrategy().findLabelPlacement(area, nb);
    467467            if (centeredNBounds != null) {
    468468                Font defaultFont = g.getFont();
     
    751751     * @since 11670
    752752     */
    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) {
    754755        Rectangle2D.Double iconRect = new Rectangle2D.Double(-img.getWidth() / 2.0, -img.getHeight() / 2.0, img.getWidth(), img.getHeight());
    755756
     
    11121113     */
    11131114    public void drawText(OsmPrimitive osm, TextLabel text) {
    1114         PositionForAreaStrategy position = text.getLabelPositionSteategy();
     1115        PositionForAreaStrategy position = text.getLabelPositionStrategy();
    11151116        if (position.supportsGlyphVector()) {
    11161117            if (osm instanceof Way) {
Note: See TracChangeset for help on using the changeset viewer.