Package org.locationtech.udig.mapgraphic

Examples of org.locationtech.udig.mapgraphic.MapGraphic


  @Override
  public void run(Layer layer) {
    try{
    if (layer.hasResource(MapGraphic.class)){
      MapGraphic mg = layer.getResource(MapGraphic.class, null);
      if (mg == null){
        return;
      }else if (!(mg instanceof LegendGraphic)){
        return;
      }
View Full Code Here


            Graphics2D copy = (Graphics2D) cache.createGraphics();
            //final NonDisposableGraphics graphics = new NonDisposableGraphics(copy);
            try {
                if( !l.getLayer().isVisible() )
                    continue;
                MapGraphic mg = l.getGeoResource().resolve(MapGraphic.class, null);
                MapGraphicContext mgContext = new MapGraphicContextImpl(l, copy);
                mg.draw(mgContext);
            } catch (IOException e) {
                exceptions.add(e);
            }finally{
                copy.dispose();
            }
View Full Code Here

            Graphics2D copy = (Graphics2D) destination.create();
            // final NonDisposableGraphics graphics = new NonDisposableGraphics(copy);
            try {
                if (!l.getLayer().isVisible())
                    continue;
                MapGraphic mg = l.getGeoResource().resolve(MapGraphic.class, null);
                MapGraphicContext mgContext = new MapGraphicContextImpl(l, destination);
                mg.draw(mgContext);
            } catch (IOException e) {
                exceptions.add(e);
            } finally {
                copy.dispose();
            }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.mapgraphic.MapGraphic

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.