Examples of PictureStyle


Examples of org.geomajas.gwt.client.gfx.style.PictureStyle

    map.getVectorContext().drawGroup(group, this);

    Coordinate c = getUpperLeftCorner();
    map.getVectorContext().drawImage(this, "zoom-rect-img",
        Geomajas.getIsomorphicDir() + "geomajas/mapaddon/zoom_rectangle.png",
        new Bbox(c.getX(), c.getY(), 20, 20), new PictureStyle(1));

    if (firstTime) {
      map.getVectorContext().setController(this, "zoom-rect-img", new ActivateRectangleController(map),
          Event.MOUSEEVENTS);
      map.getVectorContext().setCursor(this, "zoom-rect-img", Cursor.POINTER.getValue());
View Full Code Here

Examples of org.geomajas.gwt.client.gfx.style.PictureStyle

   */
  public PanButton(String id, MapWidget map, PanButtonDirection direction) {
    super(id, 18, 18);
    this.direction = direction;
    this.map = map;
    style = new PictureStyle(0.7);
    applyDirection();
  }
View Full Code Here

Examples of org.geomajas.gwt.client.gfx.style.PictureStyle

        element.getStyle().setProperty("color", fontStyle.getFillColor());
        element.getStyle().setProperty("fontFamily", fontStyle.getFontFamily());
        element.getStyle().setProperty("fontWeight", fontStyle.getFontWeight());
        element.getStyle().setProperty("fontStyle", fontStyle.getFontStyle());
      } else if (style instanceof PictureStyle) {
        PictureStyle picturStyle = (PictureStyle) style;
        if (SC.isIE()) { //TODO: it's a VML decoder, why make this check?
          element.getStyle().setProperty("filter", "alpha(opacity=" + 100 * picturStyle.getOpacity() + ")");
        } else {
          element.setAttribute("style", "opacity:" + picturStyle.getOpacity() + ";");
        }
      }
    }
  }
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.