Changeset 12376 in josm for trunk/src/org/openstreetmap


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

See #14794: Document package osm.visitor.paint

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  
    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;
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r12285 r12376  
    913913    }
    914914
     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     */
    915921    public void drawRestriction(Relation r, MapImage icon, boolean disabled) {
    916922        Way fromWay = null;
     
    15251531    }
    15261532
     1533    /**
     1534     * Check if icons should be rendered
     1535     * @return <code>true</code> to display icons
     1536     */
    15271537    public boolean isShowIcons() {
    15281538        return showIcons;
    15291539    }
    15301540
     1541    /**
     1542     * Test if names should be rendered
     1543     * @return <code>true</code> to display names
     1544     */
    15311545    public boolean isShowNames() {
    15321546        return showNames;
Note: See TracChangeset for help on using the changeset viewer.