Package org.geomajas.gwt.client.gfx.painter

Examples of org.geomajas.gwt.client.gfx.painter.FeaturePainter


  public ImageContext getRasterContext() {
    return graphics.getRasterContext();
  }

  public ShapeStyle getLineSelectStyle() {
    FeaturePainter painter = getFeaturePainter();
    if (painter != null) {
      return painter.getLineSelectStyle();
    }
    return null;
  }
View Full Code Here


    }
    return null;
  }

  public void setLineSelectStyle(ShapeStyle lineSelectStyle) {
    FeaturePainter painter = getFeaturePainter();
    if (painter != null) {
      painter.setLineSelectStyle(lineSelectStyle);
    }
  }
View Full Code Here

      painter.setLineSelectStyle(lineSelectStyle);
    }
  }

  public ShapeStyle getPointSelectStyle() {
    FeaturePainter painter = getFeaturePainter();
    if (painter != null) {
      return painter.getPointSelectStyle();
    }
    return null;
  }
View Full Code Here

    }
    return null;
  }

  public void setPointSelectStyle(ShapeStyle pointSelectStyle) {
    FeaturePainter painter = getFeaturePainter();
    if (painter != null) {
      painter.setPointSelectStyle(pointSelectStyle);
    }
  }
View Full Code Here

      painter.setPointSelectStyle(pointSelectStyle);
    }
  }

  public ShapeStyle getPolygonSelectStyle() {
    FeaturePainter painter = getFeaturePainter();
    if (painter != null) {
      return painter.getPolygonSelectStyle();
    }
    return null;
  }
View Full Code Here

    }
    return null;
  }

  public void setPolygonSelectStyle(ShapeStyle polygonSelectStyle) {
    FeaturePainter painter = getFeaturePainter();
    if (painter != null) {
      painter.setPolygonSelectStyle(polygonSelectStyle);
    }
  }
View Full Code Here

      pixelLength = info.getPixelLength();
      graphics.setBackgroundColor(info.getBackgroundColor());
      mapModel.initialize(info);
      setNavigationAddonEnabled(info.isPanButtonsEnabled());
      setScalebarEnabled(info.isScaleBarEnabled());
      painterVisitor.registerPainter(new FeaturePainter(new ShapeStyle(info.getPointSelectStyle()),
          new ShapeStyle(info.getLineSelectStyle()), new ShapeStyle(info.getPolygonSelectStyle())));

      for (final Layer<?> layer : mapModel.getLayers()) {
        layer.addLayerChangedHandler(new LayerChangedHandler() {
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.gfx.painter.FeaturePainter

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.