Package org.geomajas.gwt.client.gfx.paintable

Examples of org.geomajas.gwt.client.gfx.paintable.GfxGeometry


    if (featureTransaction.getNewFeatures() != null && featureTransaction.getNewFeatures().length > 0
        && tempLine1 == null) {
      Coordinate position = getPanPosition(event);
      Geometry geom = getGeometryIndex().getGeometry(featureTransaction);
      LineString lineString = geom.getGeometryFactory().createLineString(new Coordinate[] { position, position });
      tempLine1 = new GfxGeometry("LineStringEditController.updateLine1");
      tempLine1.setGeometry(lineString);
      tempLine1.setStyle(new ShapeStyle("#FFFFFF", 0, "#FF3322", 1, 1));
      mapWidget.render(tempLine1, RenderGroup.VECTOR, RenderStatus.ALL);
      tempLine2 = new GfxGeometry("LineStringEditController.updateLine2");
      tempLine2.setGeometry(lineString);
      tempLine2.setStyle(new ShapeStyle("#FFFFFF", 0, "#FF3322", 1, 1));
      mapWidget.render(tempLine2, RenderGroup.VECTOR, RenderStatus.ALL);
    }
  }
View Full Code Here


  // Constructor:
  // -------------------------------------------------------------------------

  public MeasureDistanceController(MapWidget mapWidget) {
    super(mapWidget);
    distanceLine = new GfxGeometry("measureDistanceLine");
    distanceLine.setStyle(lineStyle1);
    lineSegment = new GfxGeometry("measureDistanceLineSegment");
    lineSegment.setStyle(lineStyle2);
  }
View Full Code Here

      GeometryFactory factory = mapWidget.getMapModel().getGeometryFactory();
      LinearRing hole = factory.createLinearRing(new Bbox(layer.getLayerInfo().getMaxExtent()));
      LinearRing shell = factory.createLinearRing(mapWidget.getMapModel().getMapView().getMaxBounds());
      Polygon polygon = factory.createPolygon(shell, new LinearRing[] { hole });

      maxExtent = new GfxGeometry("maxExtent");
      maxExtent.setGeometry(polygon);
      maxExtent.setStyle(new ShapeStyle("#000000", .6f, "#990000", 1, 2));
      mapWidget.registerWorldPaintable(maxExtent);
    }
  }
View Full Code Here

  public void setDrawTargetMaxExtent(boolean drawTargetMaxExtent) {
    this.drawTargetMaxExtent = drawTargetMaxExtent;

    // Immediately draw or remove the max extent rectangle:
    if (drawTargetMaxExtent) {
      targetMaxExtentRectangle = new GfxGeometry("targetMaxExtentRectangle");
      targetMaxExtentRectangle.setStyle(targetMaxExtentRectangleStyle);

      Bbox targetMaxExtent = getOverviewMaxBounds();

      Bbox box = getMapModel().getMapView().getWorldViewTransformer().worldToView(targetMaxExtent);
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.gfx.paintable.GfxGeometry

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.