Changeset 27253 in osm for applications/editors


Ignore:
Timestamp:
2011-12-17T00:32:45+01:00 (13 years ago)
Author:
kpastor
Message:

Added support for layer opacity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintableMapView.java

    r27252 r27253  
    2626import static org.openstreetmap.josm.tools.I18n.tr;
    2727
     28import java.awt.AlphaComposite;
    2829import java.awt.Color;
    2930import java.awt.Dimension;
     
    185186                    Main.map.mapView = this;
    186187                }
     188                if (l.getOpacity() < 1) {
     189                    g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,(float)l.getOpacity()));
     190                }
    187191                l.paint(g2d, this, box);
     192                g2d.setPaintMode();
    188193            }
    189194            finally {
Note: See TracChangeset for help on using the changeset viewer.