Ignore:
Timestamp:
2017-06-02T21:39:27+02:00 (7 years ago)
Author:
michael2402
Message:

Javadoc for package org.openstreetmap.josm.gui.mappaint.styleelement

File:
1 edited

Legend:

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

    r12259 r12303  
    2222     */
    2323    public enum LineImageAlignment {
     24        /**
     25         * Align it to the top side of the line
     26         */
    2427        TOP(.5),
     28        /**
     29         * Align it to the center of the line
     30         */
    2531        CENTER(0),
     32        /**
     33         * Align it to the bottom of the line
     34         */
    2635        BOTTOM(-.5);
    2736
     
    4150    }
    4251
     52    /**
     53     * The image to draw on the line repeatedly
     54     */
    4355    public MapImage pattern;
     56    /**
     57     * The offset to the side of the way
     58     */
    4459    public float offset;
     60    /**
     61     * The space between the images
     62     */
    4563    public float spacing;
     64    /**
     65     * The offset of the first image along the way
     66     */
    4667    public float phase;
     68    /**
     69     * The alignment of the image
     70     */
    4771    public LineImageAlignment align;
    4872
     
    5074            null, null};
    5175
     76    /**
     77     * Create a new image element
     78     * @param c The cascade
     79     * @param pattern The image to draw on the line repeatedly
     80     * @param offset The offset to the side of the way
     81     * @param spacing The space between the images
     82     * @param phase The offset of the first image along the way
     83     * @param align The alignment of the image
     84     */
    5285    public RepeatImageElement(Cascade c, MapImage pattern, float offset, float spacing, float phase, LineImageAlignment align) {
    5386        super(c, 2.9f);
     
    6194    }
    6295
     96    /**
     97     * Create a RepeatImageElement from the given environment
     98     * @param env The environment
     99     * @return The image style element or <code>null</code> if none should be painted
     100     */
    63101    public static RepeatImageElement create(Environment env) {
    64102        MapImage pattern = NodeElement.createIcon(env, REPEAT_IMAGE_KEYS);
Note: See TracChangeset for help on using the changeset viewer.