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

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


   *            A {@link Rectangle} object.
   * @param context
   *            A MapContext object, responsible for actual drawing.
   */
  public void paint(Paintable paintable, Object group, MapContext context) {
    Rectangle rectangle = (Rectangle) paintable;
    context.getVectorContext().drawRectangle(group, rectangle.getId(), rectangle.getBounds(),
        (ShapeStyle) rectangle.getStyle());
  }
View Full Code Here


   *            The group where the object resides in (optional).
   * @param graphics
   *            The context to paint on.
   */
  public void deleteShape(Paintable paintable, Object group, MapContext context) {
    Rectangle rectangle = (Rectangle) paintable;
    context.getVectorContext().deleteElement(group, rectangle.getId());
  }
View Full Code Here

      leftWidget = false;
      timestamp = new Date().getTime();
      begin = getScreenPosition(event);
      bounds = new Bbox(begin.getX(), begin.getY(), 0.0, 0.0);
      shift = event.isShiftKeyDown();
      rectangle = new Rectangle("selectionRectangle");
      rectangle.setStyle(rectangleStyle);
      rectangle.setBounds(bounds);
      mapWidget.render(rectangle, RenderGroup.SCREEN, RenderStatus.UPDATE);
    }
  }
View Full Code Here

      if (null != targetReticle) {
        render(targetReticle, RenderGroup.SCREEN, RenderStatus.DELETE);
        targetReticle = null;
      }
      if (null == targetRectangle) {
        targetRectangle = new Rectangle("targetRect");
        targetRectangle.setStyle(rectangleStyle);
      }
      targetRectangle.setBounds(new Bbox(viewBegin.getX(), viewBegin.getY(), width, height));
      render(targetRectangle, RenderGroup.SCREEN, RenderStatus.UPDATE);
    }
View Full Code Here

    image = new Image(id + "-img");
    image.setBounds(new Bbox(0, 0, 125, 12));
    image.setHref(Geomajas.getIsomorphicDir() + "geomajas/mapaddon/powered_by_geomajas.gif");
    image.setStyle(new PictureStyle(1));

    dummy = new Rectangle(getId() + "-dummy");
    dummy.setStyle(new ShapeStyle("#FFFFFF", 0, "#FFFFFF", 0, 0));
    dummy.setBounds(new Bbox(0, 0, 1, 1));
  }
View Full Code Here

    }

    this.unitType = unitType;
    this.unitLength = unitLength;

    backGround = new Rectangle((null == getId() ? "" : getId() + "-bg"));
    backGround.setBounds(new Bbox(0, 0, 5, MARKERHEIGHT + 2 * VERTICALPADDING));
    backGround.setStyle(STYLE_BACKGROUND);
    leftMarker = new Rectangle((null == getId() ? "" : getId() + "-lm"));
    leftMarker.setStyle(STYLE_MARKER);
    leftMarker.setBounds(new Bbox(0, 0, 1, MARKERHEIGHT));

    rightMarker = new Rectangle((null == getId() ? "" : getId() + "-rm"));
    rightMarker.setStyle(STYLE_MARKER);
    rightMarker.setBounds(new Bbox(0, 0, 1, MARKERHEIGHT));
    bottomLine = new Rectangle((null == getId() ? "" : getId() + "-bm"));
    bottomLine.setStyle(STYLE_MARKER);
    bottomLine.setBounds(new Bbox(0, 0, 0, 1));
    distance = new Text((null == getId() ? "" : getId() + "-text"));
    distance.setStyle(STYLE_FONT);

    dummy = new Rectangle(getId() + "-dummy");
    dummy.setStyle(new ShapeStyle("#FFFFFF", 0, "#FFFFFF", 0, 0));
    dummy.setBounds(new Bbox(0, 0, 1, 1));
  }
View Full Code Here

TOP

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

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.