Ignore:
Timestamp:
2017-03-05T00:23:56+01:00 (7 years ago)
Author:
michael2402
Message:

Add Javadoc to icon drawing functions. Fix AreaElement#equals/hashCode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/AreaElement.java

    r11670 r11674  
    6262    private final MapImage iconImage;
    6363
     64    /**
     65     * The rotation of the {@link #iconImageAngle}
     66     */
    6467    private final RotationAngle iconImageAngle;
    6568
     
    175178                Objects.equals(text, that.text) &&
    176179                Objects.equals(extent, that.extent) &&
    177                 Objects.equals(extentThreshold, that.extentThreshold);
     180                Objects.equals(extentThreshold, that.extentThreshold) &&
     181                Objects.equals(iconImage, that.iconImage) &&
     182                Objects.equals(iconImageAngle, that.iconImageAngle);
    178183    }
    179184
    180185    @Override
    181186    public int hashCode() {
    182         return Objects.hash(super.hashCode(), color, fillImage, text, extent, extentThreshold);
     187        return Objects.hash(super.hashCode(), color, fillImage, text, extent, extentThreshold, iconImage, iconImageAngle);
    183188    }
    184189
     
    186191    public String toString() {
    187192        return "AreaElemStyle{" + super.toString() + "color=" + Utils.toString(color) +
    188                 " fillImage=[" + fillImage + "]}";
     193                " fillImage=[" + fillImage + "] iconImage=[" + iconImage + "] iconImageAngle=[" + iconImageAngle + "]}";
    189194    }
    190195}
Note: See TracChangeset for help on using the changeset viewer.