Changeset 11285 in josm
- Timestamp:
- 2016-11-19T12:52:34+01:00 (8 years ago)
- 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 756 756 } 757 757 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 */ 758 763 public void drawBoxText(Node n, BoxTextElement bs) { 759 764 if (!isShowNames() || bs == null) -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/AreaElement.java
r10760 r11285 19 19 import org.openstreetmap.josm.tools.Utils; 20 20 21 /** 22 * This is the style that defines how an area is filled. 23 */ 21 24 public class AreaElement extends StyleElement { 22 25 … … 26 29 */ 27 30 public Color color; 31 32 /** 33 * An image to cover this area. May be null to disable this feature. 34 */ 28 35 public MapImage fillImage; 36 37 /** 38 * The text that should be written on this area. 39 */ 29 40 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 */ 30 48 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 */ 31 56 public Float extentThreshold; 32 57 … … 41 66 } 42 67 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 */ 43 73 public static AreaElement create(final Environment env) { 44 74 final Cascade c = env.mc.getCascade(env.layer);
Note:
See TracChangeset
for help on using the changeset viewer.