Changeset 12376 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-06-09T21:45:12+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/PaintColors.java
r11553 r12376 14 14 import org.openstreetmap.josm.gui.mappaint.StyleSource; 15 15 16 /** 17 * The colors used to paint the map, especially with the wireframe renderer 18 * <p> 19 * This enum stores the colors to be set in the preferences 20 */ 16 21 public enum PaintColors { 17 22 23 /** 24 * Inactive objects 25 */ 18 26 INACTIVE(marktr("inactive"), Color.darkGray), 27 /** 28 * Currently selected objects 29 */ 19 30 SELECTED(marktr("selected"), Color.red), 31 /** 32 * Objects that are part of a selected relation 33 */ 20 34 RELATIONSELECTED(marktr("Relation: selected"), Color.magenta), 35 /** 36 * Normal nodes 37 */ 21 38 NODE(marktr("Node: standard"), Color.yellow), 39 /** 40 * Connected nodes 41 */ 22 42 CONNECTION(marktr("Node: connection"), Color.yellow), 43 /** 44 * A tagged node 45 */ 23 46 TAGGED(marktr("Node: tagged"), new Color(204, 255, 255)), // light cyan 47 /** 48 * Default way color 49 */ 24 50 DEFAULT_WAY(marktr("way"), new Color(0, 0, 128)), // dark blue 51 /** 52 * Relation color 53 */ 25 54 RELATION(marktr("relation"), new Color(0, 128, 128)), // teal 55 /** 56 * Color for untagged way 57 */ 26 58 UNTAGGED_WAY(marktr("untagged way"), new Color(0, 128, 0)), // dark green 59 /** 60 * Background of the map 61 */ 27 62 BACKGROUND(marktr("background"), Color.BLACK), 63 /** 64 * Highlight around a selected node/way, MapCSS renderer 65 */ 28 66 HIGHLIGHT(marktr("highlight"), SELECTED.get()), 67 /** 68 * Highlight around a selected node/way, Wireframe renderer 69 */ 29 70 HIGHLIGHT_WIREFRAME(marktr("highlight wireframe"), Color.orange), 30 71 72 /** 73 * Untagged way 74 */ 31 75 UNTAGGED(marktr("untagged"), Color.GRAY), 76 /** 77 * Default text color 78 */ 32 79 TEXT(marktr("text"), Color.WHITE), 80 /** 81 * Default text color for areas 82 */ 33 83 AREA_TEXT(marktr("areatext"), Color.LIGHT_GRAY); 34 84 85 /** 86 * The name of the color 87 */ 35 88 private final String name; 36 89 private final Color defaultColor; -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r12285 r12376 913 913 } 914 914 915 /** 916 * Draw a turn restriction 917 * @param r The turn restriction relation 918 * @param icon The icon to draw at the turn point 919 * @param disabled draw using disabled style 920 */ 915 921 public void drawRestriction(Relation r, MapImage icon, boolean disabled) { 916 922 Way fromWay = null; … … 1525 1531 } 1526 1532 1533 /** 1534 * Check if icons should be rendered 1535 * @return <code>true</code> to display icons 1536 */ 1527 1537 public boolean isShowIcons() { 1528 1538 return showIcons; 1529 1539 } 1530 1540 1541 /** 1542 * Test if names should be rendered 1543 * @return <code>true</code> to display names 1544 */ 1531 1545 public boolean isShowNames() { 1532 1546 return showNames;
Note:
See TracChangeset
for help on using the changeset viewer.