Examples of formatUnits()


Examples of org.geomajas.gwt.client.gfx.paintable.mapaddon.ScaleBar.formatUnits()

  public void testformatUnitsMetric() throws Exception {
    ScaleBar sb = new ScaleBar("scaleBar", null);
    sb.initialize(UnitType.METRIC, 1.0d, null);
    sb.calculateBestFit(3.779527559055119);

    Assert.assertEquals("should be same", "25 m", sb.formatUnits(25));
    Assert.assertEquals("should be same", "25.1 km", sb.formatUnits(25100));
  }
}
View Full Code Here

Examples of org.geomajas.gwt.client.gfx.paintable.mapaddon.ScaleBar.formatUnits()

    ScaleBar sb = new ScaleBar("scaleBar", null);
    sb.initialize(UnitType.METRIC, 1.0d, null);
    sb.calculateBestFit(3.779527559055119);

    Assert.assertEquals("should be same", "25 m", sb.formatUnits(25));
    Assert.assertEquals("should be same", "25.1 km", sb.formatUnits(25100));
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.