Package org.geomajas.gwt.client.map.event

Examples of org.geomajas.gwt.client.map.event.LayerChangedHandler


    LayerTreeWithLegendInfo ltwli = WidgetInfoHelper.getClientWidgetInfo(LayerTreeWithLegendInfo.IDENTIFIER,
        mapWidget);
    setIconSize(ltwli == null ? DEFAULT_ICONSIZE : ltwli.getIconSize());

    for (Layer<?> layer : mapModel.getLayers()) {
      registrations.add(layer.addLayerChangedHandler(new LayerChangedHandler() {
        public void onLabelChange(LayerLabeledEvent event) {
          GWT.log("Legend: onLabelChange() - " + event.getLayer().getLabel());
          // find the node & update the icon
          for (TreeNode node : tree.getAllNodes()) {
            if (node.getName().equals(event.getLayer().getLabel())) {
View Full Code Here


  /** Called when the MapModel configuration has been loaded. */
  private void initialize() {
    addChild(widget);
    for (Layer<?> layer : mapModel.getLayers()) {
      registrations.add(layer.addLayerChangedHandler(new LayerChangedHandler() {

        public void onLabelChange(LayerLabeledEvent event) {
        }

        public void onVisibleChange(LayerShownEvent event) {
View Full Code Here

    treeGrid.addLeafClickHandler(this);
    treeGrid.addFolderClickHandler(this);

    // -- add eventlisteners to layers
    for (Layer<?> layer : mapModel.getLayers()) {
      registrations.add(layer.addLayerChangedHandler(new LayerChangedHandler() {
        public void onLabelChange(LayerLabeledEvent event) {
        }

        public void onVisibleChange(LayerShownEvent event) {
          GWT.log("Legend: onVisibleChange() - " + event.getLayer().getLabel());
View Full Code Here

      setScalebarEnabled(info.isScaleBarEnabled());
      painterVisitor.registerPainter(new FeaturePainter(new ShapeStyle(info.getPointSelectStyle()),
          new ShapeStyle(info.getLineSelectStyle()), new ShapeStyle(info.getPolygonSelectStyle())));

      for (final Layer<?> layer : mapModel.getLayers()) {
        layer.addLayerChangedHandler(new LayerChangedHandler() {

          public void onLabelChange(LayerLabeledEvent event) {
            render(layer, null, RenderStatus.ALL);
          }
View Full Code Here

    visibleCount = 0;
    labelCount = 0;
    filterCount = 0;

    vLayer.addLayerChangedHandler(new LayerChangedHandler() {

      public void onVisibleChange(LayerShownEvent event) {
        visibleCount++;
      }
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.map.event.LayerChangedHandler

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.