Examples of OtherText


Examples of org.geotools.styling.OtherText

            Expression abxtract = null;
            Date fromDate = null;
            Date toDate = null;
            Date timestamp = null;
            for (TextSymbolizer2 ts : textSymbolizers) {
                final OtherText ot = ts.getOtherText();
                if(ot != null && ot.getTarget() != null && ot.getText() != null) {
                    if(ot.getTarget().toLowerCase().equals("kml:fromdate"))
                        fromDate = ot.getText().evaluate(feature, Date.class);
                    else if(ot.getTarget().toLowerCase().equals("kml:todate"))
                        toDate = ot.getText().evaluate(feature, Date.class);
                    else if(ot.getTarget().toLowerCase().equals("kml:timestamp"))
                        timestamp = ot.getText().evaluate(feature, Date.class);
                }
            }
            try {
                if(fromDate != null || toDate != null)
                    encodeKmlTimeSpan(fromDate, toDate);
View Full Code Here

Examples of org.geotools.styling.OtherText

    return symbol;
  }

  protected OtherText parseOtherText(Node root) {
    // TODO: add methods to the factory to create OtherText instances
    OtherText ot = new OtherTextImpl();
    final Node targetAttribute = root.getAttributes()
        .getNamedItem("target");
    if (targetAttribute == null)
      throw new IllegalArgumentException(
          "OtherLocation does not have the "
              + "required 'target' attribute");
    String target = targetAttribute.getNodeValue();
    Expression text = parseCssParameter(root, true);
    ot.setTarget(target);
    ot.setText(text);
    return ot;
  }
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.