Changeset 12259 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint
- Timestamp:
- 2017-05-26T01:12:46+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleKeys.java
r11760 r12259 2 2 package org.openstreetmap.josm.gui.mappaint; 3 3 4 /** 5 * Interface defining string constants (MapCSS property keys). 6 * 7 * For the implementation of the <code>@supports</code> feature, the list of 8 * supported keys is loaded from this interface using reflection. 9 * @see org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource#evalSupportsDeclCondition(java.lang.String, java.lang.Object) 10 */ 4 11 public interface StyleKeys { 5 12 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/CSSColors.java
r10001 r12259 6 6 import java.util.Map; 7 7 8 /** 9 * List of named CSS colors as per CSS Color Module Level 3. 10 * 11 * @see <a href="https://drafts.csswg.org/css-color-3/">CSS Color Module Level 3</a> 12 */ 8 13 public final class CSSColors { 9 14 private static final Map<String, Color> CSS_COLORS = new HashMap<>(); -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Instruction.java
r10600 r12259 11 11 import org.openstreetmap.josm.gui.mappaint.StyleKeys; 12 12 13 /** 14 * A MapCSS Instruction. 15 * 16 * For example a simple assignment like <code>width: 3;</code>, but may also 17 * be a set instruction (<code>set highway;</code>). 18 * A MapCSS {@link MapCSSRule.Declaration} is a list of instructions. 19 */ 13 20 @FunctionalInterface 14 21 public interface Instruction extends StyleKeys { 15 22 23 /** 24 * Execute the instruction in the given environment. 25 * @param env the environment 26 */ 16 27 void execute(Environment env); 17 28 -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/RepeatImageElement.java
r11809 r12259 13 13 import org.openstreetmap.josm.tools.CheckParameterUtil; 14 14 15 /** 16 * Style element that displays a repeated image pattern along a way. 17 */ 15 18 public class RepeatImageElement extends StyleElement { 16 19 -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/StyleElement.java
r11452 r12259 16 16 import org.openstreetmap.josm.gui.mappaint.mapcss.Instruction.RelativeFloat; 17 17 18 /** 19 * Class that defines how objects ({@link OsmPrimitive}) should be drawn on the map. 20 * 21 * Several subclasses of this abstract class implement different drawing features, 22 * like icons for a node or area fill. This class and all its subclasses are immutable 23 * and tend to get shared when multiple objects have the same style (in order to 24 * save memory, see {@link org.openstreetmap.josm.gui.mappaint.StyleCache#intern()}). 25 */ 18 26 public abstract class StyleElement implements StyleKeys { 19 27 … … 32 40 public boolean defaultSelectedHandling; 33 41 42 /** 43 * Construct a new StyleElement 44 * @param majorZindex like z-index, but higher priority 45 * @param zIndex order the objects are drawn 46 * @param objectZindex like z-index, but lower priority 47 * @param isModifier if false, a default line or node symbol is generated 48 * @param defaultSelectedHandling true if default behavior for selected objects 49 * is enabled, false if a style for selected state is given explicitly 50 */ 34 51 public StyleElement(float majorZindex, float zIndex, float objectZindex, boolean isModifier, boolean defaultSelectedHandling) { 35 52 this.majorZIndex = majorZindex;
Note:
See TracChangeset
for help on using the changeset viewer.