Ignore:
Timestamp:
2011-02-05T18:28:47+01:00 (13 years ago)
Author:
bastiK
Message:

mapcss: support for opacity & icon-image

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/MapPaintSettings.java

    r3691 r3858  
    108108    }
    109109
     110    public Color getSelectedColor(int alpha) {
     111        return new Color(selectedColor.getRGB() & 0x00ffffff | (alpha << 24), true);
     112    }
     113
    110114    public Color getRelationSelectedColor() {
    111115        return relationSelectedColor;
    112116    }
    113117
     118    public Color getRelationSelectedColor(int alpha) {
     119        return new Color(relationSelectedColor.getRGB() & 0x00ffffff | (alpha << 24), true);
     120    }
     121
    114122    public Color getHighlightColor() {
    115123        return highlightColor;
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPainter.java

    r3841 r3858  
    277277    protected void drawArea(Polygon polygon, Color color, String name) {
    278278
    279         /* set the opacity (alpha) level of the filled polygon */
    280         g.setColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), fillAlpha));
     279        g.setColor(color);
    281280
    282281        if (outlineOnly) {
Note: See TracChangeset for help on using the changeset viewer.