Package org.geomajas.sld

Examples of org.geomajas.sld.MarkInfo


        // SLD has no selection concept + no default: what to do ?
        image.setSelectionHref(href);
        image.setHeight((int) Float.parseFloat(getParameterValue(graphic.getSize())));
        symbol.setImage(image);
      } else if (choice.ifMark()) {
        MarkInfo mark = choice.getMark();
        String name = mark.getWellKnownName().getWellKnownName();
        if (name.equalsIgnoreCase("square")) {
          RectInfo rect = new RectInfo();
          rect.setH(Float.parseFloat(getParameterValue(graphic.getSize())));
          rect.setW(Float.parseFloat(getParameterValue(graphic.getSize())));
          symbol.setRect(rect);
        } else {
          // should treat everything else as circle ?!
          CircleInfo circle = new CircleInfo();
          circle.setR(0.5F * Float.parseFloat(getParameterValue(graphic.getSize())));
          symbol.setCircle(circle);
        }
        convertFill(featureStyleInfo, mark.getFill());
        convertStroke(featureStyleInfo, mark.getStroke());
      }
    }
    featureStyleInfo.setSymbol(symbol);
  }
View Full Code Here


        GraphicInfo graphic = fill.getGraphicFill().getGraphic();
        for (GraphicInfo.ChoiceInfo choice : graphic.getChoiceList()) {
          if (choice.ifExternalGraphic()) {
            // can't handle this
          } else if (choice.ifMark()) {
            MarkInfo mark = (MarkInfo) choice.getMark();
            if (mark.getFill() != null) {
              convertFill(featureStyleInfo, mark.getFill());
            }
            if (mark.getStroke() != null) {
              convertStroke(featureStyleInfo, mark.getStroke());
            }
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.geomajas.sld.MarkInfo

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.