Package org.geomajas.gwt.client.controller

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


    // 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

    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

Related Classes of org.geomajas.gwt.client.controller.GraphicsController

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.