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

Clean icon drawing code style.

File:
1 edited

Legend:

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

    r11722 r11731  
    5959     * The position strategy for this text label.
    6060     */
    61     private final PositionForAreaStrategy labelPositionSteategy;
     61    private final PositionForAreaStrategy labelPositionStrategy;
    6262
    6363    /**
     
    9090     * @param haloRadius halo radius
    9191     * @param haloColor halo color
    92      * @param labelPositionSteategy The position in the area.
    93      */
    94     protected TextLabel(LabelCompositionStrategy strategy, Font font, int xOffset, int yOffset, Color color, Float haloRadius, Color haloColor, PositionForAreaStrategy labelPositionSteategy) {
     92     * @param labelPositionStrategy The position in the area.
     93     */
     94    protected TextLabel(LabelCompositionStrategy strategy, Font font, int xOffset, int yOffset, Color color, Float haloRadius,
     95            Color haloColor, PositionForAreaStrategy labelPositionStrategy) {
    9596        this.labelCompositionStrategy = strategy;
    9697        this.font = Objects.requireNonNull(font, "font");
     
    100101        this.haloRadius = haloRadius;
    101102        this.haloColor = haloColor;
    102         this.labelPositionSteategy = Objects.requireNonNull(labelPositionSteategy, "labelPositionSteategy");
     103        this.labelPositionStrategy = Objects.requireNonNull(labelPositionStrategy, "labelPositionStrategy");
    103104    }
    104105
     
    116117        this.haloColor = other.haloColor;
    117118        this.haloRadius = other.haloRadius;
    118         this.labelPositionSteategy = other.labelPositionSteategy;
     119        this.labelPositionStrategy = other.labelPositionStrategy;
    119120    }
    120121
     
    123124     *
    124125     * @param other the other element.
    125      * @param labelPositionSteategy the position
    126      */
    127     private TextLabel(TextLabel other, PositionForAreaStrategy labelPositionSteategy) {
     126     * @param labelPositionStrategy the position
     127     */
     128    private TextLabel(TextLabel other, PositionForAreaStrategy labelPositionStrategy) {
    128129        this.labelCompositionStrategy = other.labelCompositionStrategy;
    129130        this.font = other.font;
     
    133134        this.haloColor = other.haloColor;
    134135        this.haloRadius = other.haloRadius;
    135         this.labelPositionSteategy = labelPositionSteategy;
     136        this.labelPositionStrategy = labelPositionStrategy;
    136137    }
    137138
     
    242243     * @since 11722
    243244     */
    244     public PositionForAreaStrategy getLabelPositionSteategy() {
    245         return labelPositionSteategy;
    246     }
    247 
    248     public TextLabel withPosition(PositionForAreaStrategy labelPositionSteategy) {
    249         return new TextLabel(this, labelPositionSteategy);
     245    public PositionForAreaStrategy getLabelPositionStrategy() {
     246        return labelPositionStrategy;
     247    }
     248
     249    public TextLabel withPosition(PositionForAreaStrategy labelPositionStrategy) {
     250        return new TextLabel(this, labelPositionStrategy);
    250251    }
    251252
Note: See TracChangeset for help on using the changeset viewer.