Package org.geotools.styling

Examples of org.geotools.styling.Graphic.graphicalSymbols()


        Mark mark = styleFactory.getCircleMark();
        mark.setStroke(styleFactory.createStroke(filterFactory.literal(strokeColor), filterFactory.literal(2)));
        mark.setFill(styleFactory.createFill(filterFactory.literal(fillColor)));

        Graphic gr = styleFactory.createDefaultGraphic();
        gr.graphicalSymbols().clear();
        gr.graphicalSymbols().add(mark);
        gr.setSize(filterFactory.literal(5));

        /*
         * Setting the geometryPropertyName arg to null signals that we want to
View Full Code Here


        mark.setStroke(styleFactory.createStroke(filterFactory.literal(strokeColor), filterFactory.literal(2)));
        mark.setFill(styleFactory.createFill(filterFactory.literal(fillColor)));

        Graphic gr = styleFactory.createDefaultGraphic();
        gr.graphicalSymbols().clear();
        gr.graphicalSymbols().add(mark);
        gr.setSize(filterFactory.literal(5));

        /*
         * Setting the geometryPropertyName arg to null signals that we want to
         * draw the default geomettry of features
View Full Code Here

            }
            Graphic g = rule.symbolizers.get(0).getGraphic();
            if (g == null) {
                return null;
            }
            if (g.graphicalSymbols().size() != 1) {
                return null;
            }
            GraphicalSymbol gSym = g.graphicalSymbols().get(0);
            if (! (gSym instanceof ExternalGraphic)) {
                return null;
View Full Code Here

                return null;
            }
            if (g.graphicalSymbols().size() != 1) {
                return null;
            }
            GraphicalSymbol gSym = g.graphicalSymbols().get(0);
            if (! (gSym instanceof ExternalGraphic)) {
                return null;
            }
            ExternalGraphic exGraphic = (ExternalGraphic) gSym;
            try {
View Full Code Here

      if (childName.equalsIgnoreCase("ExternalGraphic")) {
        if (LOGGER.isLoggable(Level.FINEST))
          LOGGER.finest("parsing extgraphic " + child);
        if (firstGraphic) {
          graphic.graphicalSymbols().clear();
          firstGraphic = false;
        }
        graphic.graphicalSymbols().add(parseExternalGraphic(child));
      } else if (childName.equalsIgnoreCase("Mark")) {
        if (firstGraphic) {
View Full Code Here

          LOGGER.finest("parsing extgraphic " + child);
        if (firstGraphic) {
          graphic.graphicalSymbols().clear();
          firstGraphic = false;
        }
        graphic.graphicalSymbols().add(parseExternalGraphic(child));
      } else if (childName.equalsIgnoreCase("Mark")) {
        if (firstGraphic) {
          graphic.graphicalSymbols().clear();
          firstGraphic = false;
        }
View Full Code Here

          firstGraphic = false;
        }
        graphic.graphicalSymbols().add(parseExternalGraphic(child));
      } else if (childName.equalsIgnoreCase("Mark")) {
        if (firstGraphic) {
          graphic.graphicalSymbols().clear();
          firstGraphic = false;
        }
        graphic.graphicalSymbols().add(parseMark(child));
      } else if (childName.equalsIgnoreCase(opacityString)) {
        graphic.setOpacity(parseCssParameter(child));
View Full Code Here

      } else if (childName.equalsIgnoreCase("Mark")) {
        if (firstGraphic) {
          graphic.graphicalSymbols().clear();
          firstGraphic = false;
        }
        graphic.graphicalSymbols().add(parseMark(child));
      } else if (childName.equalsIgnoreCase(opacityString)) {
        graphic.setOpacity(parseCssParameter(child));
      } else if (childName.equalsIgnoreCase("size")) {
        graphic.setSize(parseCssParameter(child));
      } else if (childName.equalsIgnoreCase("displacement")) {
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.