Package org.geomajas.puregwt.client

Examples of org.geomajas.puregwt.client.GeomajasTestModule


  /**
   * Creates polygons with a single hole in them.
   */
  @Before
  public void setUp() {
    Injector myInjector = Guice.createInjector(new GeomajasTestModule());
    gwtFactory = myInjector.getInstance(GeometryFactory.class);
    LinearRing gwtShell = gwtFactory.createLinearRing(new Coordinate[] { new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0), new Coordinate(10.0, 10.0) });
    LinearRing gwtHole = gwtFactory.createLinearRing(new Coordinate[] { new Coordinate(12.0, 12.0),
        new Coordinate(18.0, 12.0), new Coordinate(18.0, 18.0), new Coordinate(12.0, 12.0) });
View Full Code Here


  // Constructor, initializes the 2 MultiPolygon geometries:
  // -------------------------------------------------------------------------

  @Before
  public void setUp() {
    Injector myInjector = Guice.createInjector(new GeomajasTestModule());
    gwtFactory = myInjector.getInstance(GeometryFactory.class);
    LinearRing gwtRing1 = gwtFactory.createLinearRing(new Coordinate[] { new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0), new Coordinate(10.0, 10.0) });
    Polygon gwtPolygon1 = gwtFactory.createPolygon(gwtRing1, null);
    LinearRing gwtRing2 = gwtFactory.createLinearRing(new Coordinate[] { new Coordinate(10.0, 20.0),
View Full Code Here

  // Constructor, initializes the 2 MultiLineString geometries:
  // -------------------------------------------------------------------------

  @Before
  public void setUp() {
    Injector myInjector = Guice.createInjector(new GeomajasTestModule());
    gwtFactory = myInjector.getInstance(GeometryFactory.class);
    LineString gwtLine1 = gwtFactory.createLineString(new Coordinate[] { new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0) });
    LineString gwtLine2 = gwtFactory.createLineString(new Coordinate[] { new Coordinate(10.0, 20.0),
        new Coordinate(30.0, 10.0), new Coordinate(40.0, 10.0) });
View Full Code Here

  private GeometryFactory factory;

  @Before
  public void setUp() {
    Injector myInjector = Guice.createInjector(new GeomajasTestModule());
    factory = myInjector.getInstance(GeometryFactory.class);
    empty = factory.createBbox(0, 0, 0, 0);
    origin = factory.createBbox(0, 0, 10, 10);
    movedEmpty = factory.createBbox(-10, -10, 0, 0);
    movedEmpty2 = factory.createBbox(5, 5, 0, 0);
View Full Code Here

  // Constructor, initializes the 2 point geometries:
  // -------------------------------------------------------------------------

  @Before
  public void setUp() {
    Injector myInjector = Guice.createInjector(new GeomajasTestModule());
    gwtFactory = myInjector.getInstance(GeometryFactory.class);
    Point point1 = gwtFactory.createPoint(new Coordinate(10.0, 10.0));
    Point point2 = gwtFactory.createPoint(new Coordinate(10.0, 20.0));
    Point point3 = gwtFactory.createPoint(new Coordinate(20.0, 20.0));
    gwt = gwtFactory.createMultiPoint(new Point[] {point1, point2, point3});
View Full Code Here

  // Constructor, initializes the 2 LineString geometries:
  // -------------------------------------------------------------------------

  @Before
  public void setUp() {
    Injector myInjector = Guice.createInjector(new GeomajasTestModule());
    gwtFactory = myInjector.getInstance(GeometryFactory.class);
    gwt = gwtFactory.createLinearRing(new Coordinate[] { new Coordinate(10.0, 10.0), new Coordinate(20.0, 10.0),
        new Coordinate(20.0, 20.0), new Coordinate(10.0, 10.0) });

    jtsFactory = new com.vividsolutions.jts.geom.GeometryFactory(new PrecisionModel(), SRID);
View Full Code Here

  private MathService service;

  @Before
  public void setup() {
    Injector myInjector = Guice.createInjector(new GeomajasTestModule());
    service = myInjector.getInstance(MathService.class);
  }
View Full Code Here

  // Constructor, initializes the 2 point geometries:
  // -------------------------------------------------------------------------

  @Before
  public void setUp() {
    Injector myInjector = Guice.createInjector(new GeomajasTestModule());
    gwtFactory = myInjector.getInstance(GeometryFactory.class);
    gwt = gwtFactory.createPoint(new Coordinate(10.0, 10.0));
    empty = gwtFactory.createPoint(null);

    jtsFactory = new com.vividsolutions.jts.geom.GeometryFactory(new PrecisionModel(), SRID);
View Full Code Here

  // Constructor, initializes the 2 LineString geometries:
  // -------------------------------------------------------------------------

  @Before
  public void setUp() {
    Injector myInjector = Guice.createInjector(new GeomajasTestModule());
    gwtFactory = myInjector.getInstance(GeometryFactory.class);
    gwt = gwtFactory.createLineString(new Coordinate[] { new Coordinate(10.0, 10.0), new Coordinate(20.0, 10.0),
        new Coordinate(20.0, 20.0) });
    empty = gwtFactory.createLineString(null);
View Full Code Here

TOP

Related Classes of org.geomajas.puregwt.client.GeomajasTestModule

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.