Examples of GraphicsController


Examples of org.geomajas.gwt.client.controller.GraphicsController

    VLayout labelLayout = new VLayout();
    final Label label = new Label();
    labelLayout.addMember(label);

    // Create the custom controller:
    GraphicsController customController = new AbstractGraphicsController(map) {
     
      public void onMouseMove(MouseMoveEvent event) {
        Coordinate screenPosition = getScreenPosition(event);
        Coordinate worldPosition = getWorldPosition(event);
        String x = NumberFormat.getFormat("0.000").format(worldPosition.getX());
View Full Code Here

Examples of org.geomajas.gwt.client.controller.GraphicsController

    // Map with ID wmsMap is defined in the XML configuration. (mapWms.xml)
    final MapWidget map = new MapWidget("mapOsm", "gwt-samples");

    // Create the custom controller:
    final GraphicsController customController = new AbstractGraphicsController(map) {

      public void onMouseOver(MouseOverEvent event) {
        // When the mouse hovers over the image, make it transparent:
        map.getVectorContext().drawRectangle(map.getGroup(RenderGroup.SCREEN), "rectangle", rectangle,
            hoverStyle);
View Full Code Here

Examples of org.geomajas.gwt.client.controller.GraphicsController

    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);

    // Create a custom controller that will be enabled/disabled by a button in the toolbar:
    final GraphicsController customController = new AbstractGraphicsController(map) {

      public void onMouseUp(MouseUpEvent event) {
        Coordinate screenPosition = getScreenPosition(event);
        Coordinate worldPosition = getWorldPosition(event);
        SC.say(I18nProvider.getSampleMessages().customControllerScreenCoordinates() + " = " + screenPosition
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.