Ignore:
Timestamp:
2017-06-09T21:45:12+02:00 (7 years ago)
Author:
michael2402
Message:

See #14794: Document package osm.visitor.paint

File:
1 edited

Legend:

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

    r11553 r12376  
    1414import org.openstreetmap.josm.gui.mappaint.StyleSource;
    1515
     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 */
    1621public enum PaintColors {
    1722
     23    /**
     24     * Inactive objects
     25     */
    1826    INACTIVE(marktr("inactive"), Color.darkGray),
     27    /**
     28     * Currently selected objects
     29     */
    1930    SELECTED(marktr("selected"), Color.red),
     31    /**
     32     * Objects that are part of a selected relation
     33     */
    2034    RELATIONSELECTED(marktr("Relation: selected"), Color.magenta),
     35    /**
     36     * Normal nodes
     37     */
    2138    NODE(marktr("Node: standard"), Color.yellow),
     39    /**
     40     * Connected nodes
     41     */
    2242    CONNECTION(marktr("Node: connection"), Color.yellow),
     43    /**
     44     * A tagged node
     45     */
    2346    TAGGED(marktr("Node: tagged"), new Color(204, 255, 255)), // light cyan
     47    /**
     48     * Default way color
     49     */
    2450    DEFAULT_WAY(marktr("way"), new Color(0, 0, 128)), // dark blue
     51    /**
     52     * Relation color
     53     */
    2554    RELATION(marktr("relation"), new Color(0, 128, 128)), // teal
     55    /**
     56     * Color for untagged way
     57     */
    2658    UNTAGGED_WAY(marktr("untagged way"), new Color(0, 128, 0)), // dark green
     59    /**
     60     * Background of the map
     61     */
    2762    BACKGROUND(marktr("background"), Color.BLACK),
     63    /**
     64     * Highlight around a selected node/way, MapCSS renderer
     65     */
    2866    HIGHLIGHT(marktr("highlight"), SELECTED.get()),
     67    /**
     68     * Highlight around a selected node/way, Wireframe renderer
     69     */
    2970    HIGHLIGHT_WIREFRAME(marktr("highlight wireframe"), Color.orange),
    3071
     72    /**
     73     * Untagged way
     74     */
    3175    UNTAGGED(marktr("untagged"), Color.GRAY),
     76    /**
     77     * Default text color
     78     */
    3279    TEXT(marktr("text"), Color.WHITE),
     80    /**
     81     * Default text color for areas
     82     */
    3383    AREA_TEXT(marktr("areatext"), Color.LIGHT_GRAY);
    3484
     85    /**
     86     * The name of the color
     87     */
    3588    private final String name;
    3689    private final Color defaultColor;
Note: See TracChangeset for help on using the changeset viewer.