Changeset 11285 in josm


Ignore:
Timestamp:
2016-11-19T12:52:34+01:00 (3 years ago)
Author:
michael2402
Message:

More Javadoc for AreaElement

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r11190 r11285  
    756756    }
    757757
     758    /**
     759     * Draw a text onto a node
     760     * @param n The node to draw the text on
     761     * @param bs The text and it's alignment.
     762     */
    758763    public void drawBoxText(Node n, BoxTextElement bs) {
    759764        if (!isShowNames() || bs == null)
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/AreaElement.java

    r10760 r11285  
    1919import org.openstreetmap.josm.tools.Utils;
    2020
     21/**
     22 * This is the style that defines how an area is filled.
     23 */
    2124public class AreaElement extends StyleElement {
    2225
     
    2629     */
    2730    public Color color;
     31
     32    /**
     33     * An image to cover this area. May be null to disable this feature.
     34     */
    2835    public MapImage fillImage;
     36
     37    /**
     38     * The text that should be written on this area.
     39     */
    2940    public TextLabel text;
     41
     42    /**
     43     * Fill the area only partially from the borders
     44     * <p>
     45     * Public access is discouraged.
     46     * @see StyledMapRenderer#drawArea(Way, Color, MapImage, Float, Float, boolean, TextLabel)
     47     */
    3048    public Float extent;
     49
     50    /**
     51     * Areas smaller than this are filled no matter what value {@link #extent} has.
     52     * <p>
     53     * Public access is discouraged.
     54     * @see StyledMapRenderer#drawArea(Way, Color, MapImage, Float, Float, boolean, TextLabel)
     55     */
    3156    public Float extentThreshold;
    3257
     
    4166    }
    4267
     68    /**
     69     * Create a new {@link AreaElement}
     70     * @param env The current style definitions
     71     * @return The area element or <code>null</code> if the area should not be filled.
     72     */
    4373    public static AreaElement create(final Environment env) {
    4474        final Cascade c = env.mc.getCascade(env.layer);
Note: See TracChangeset for help on using the changeset viewer.