public TextSymbolizer createTextSymbolizer( Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName) { TextSymbolizer tSymb = new TextSymbolizerImpl(filterFactory); tSymb.setFill(fill); if (fonts != null) { tSymb.fonts().addAll(Arrays.asList(fonts)); } tSymb.setGeometryPropertyName(geometryPropertyName); tSymb.setHalo(halo); tSymb.setLabel(label); tSymb.setLabelPlacement(labelPlacement); return tSymb; }
symbol.setLabelPlacement(parseLabelPlacement(child)); } else if (childName.equalsIgnoreCase("Halo")) { symbol.setHalo(parseHalo(child)); } else if (childName.equalsIgnoreCase("Graphic")) { if (LOGGER.isLoggable(Level.FINEST))
@Override public void handle(YamlObject<?> obj, YamlParseContext context) { sym.setHalo(halo); YamlMap map = obj.map(); context.push( new FillParser(factory) { @Override protected void fill(Fill fill) { halo.setFill(fill); } }); if (map.has("radius")) { halo.setRadius(Util.expression(map.str("radius"), factory)); } } }
ts.setHalo(halo);
symbol.setHalo((Halo) value[i].getValue());
public void visit(TextSymbolizer text) { TextSymbolizer copy = sf.createTextSymbolizer(); copy.setFill(copy(text.getFill())); copy.fonts().clear(); copy.fonts().addAll(copyFonts(text.fonts())); copy.setGeometry(copy(text.getGeometry())); copy.setUnitOfMeasure(text.getUnitOfMeasure()); copy.setHalo(copy(text.getHalo())); copy.setLabel(copy(text.getLabel())); copy.setLabelPlacement(copy(text.getLabelPlacement())); copy.setPriority(copy(text.getPriority())); copy.getOptions().putAll(text.getOptions()); if (text instanceof TextSymbolizer2) { TextSymbolizer2 text2 = (TextSymbolizer2) text; TextSymbolizer2 copy2 = (TextSymbolizer2) copy; copy2.setGraphic(copy(text2.getGraphic())); copy2.setSnippet(copy(text2.getSnippet())); copy2.setFeatureDescription(copy(text2.getFeatureDescription())); copy2.setOtherText(copy(text2.getOtherText())); } if (STRICT && !copy.equals(text)) { throw new IllegalStateException( "Was unable to duplicate provided TextSymbolizer:" + text); } pages.push(copy); }
ts.setHalo((Halo) node.getChildValue("Halo"));
symbol.setHalo(parseHalo(child));
symbol.setPlacement(parseLabelPlacement(child)); } else if (childName.equalsIgnoreCase("Halo")) { symbol.setHalo(parseHalo(child)); } else if (childName.equalsIgnoreCase("Graphic")) { if (LOGGER.isLoggable(Level.FINEST))
public TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName) { TextSymbolizer tSymb = new TextSymbolizerImpl(filterFactory); tSymb.setFill(fill); tSymb.setFonts(fonts); tSymb.setGeometryPropertyName(geometryPropertyName); tSymb.setHalo(halo); tSymb.setLabel(label); tSymb.setPlacement(labelPlacement); return tSymb; }
public TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName) { TextSymbolizer tSymb = new TextSymbolizerImpl(); tSymb.setFill(fill); tSymb.setFonts(fonts); tSymb.setGeometryPropertyName(geometryPropertyName); tSymb.setHalo(halo); tSymb.setLabel(label); tSymb.setPlacement(labelPlacement); return tSymb; }
@Override public void handle(YamlObject<?> obj, YamlParseContext context) { sym.setHalo(halo); YamlMap map = obj.map(); context.push( new FillParser(factory) { @Override protected void fill(Fill fill) { halo.setFill(fill); } }); if (map.has("radius")) { halo.setRadius(Util.expression(map.str("radius"), factory)); } } }
ts.setHalo(halo);
ts.setHalo(halo);
public void apply() { if (symbol != null) { symbol.setFill(guiFill.getEdited()); symbol.setLabel(guiLabel.getExpression()); symbol.setGeometryPropertyName(guiGeom.getGeom()); symbol.setFonts(guiFonts.getEdited()); symbol.setHalo(guiHalo.getEdited()); symbol.setPlacement(guiPlacement.getEdited()); } }
copy.setHalo(copy(text.getHalo())); copy.setLabel(copy(text.getLabel())); copy.setLabelPlacement(copy(text.getLabelPlacement()));
public void visit(TextSymbolizer text) { TextSymbolizer copy = sf.createTextSymbolizer(); copy.setFill( copy( text.getFill())); copy.setFont( copy( text.getFont())); copy.setGeometry(copy(text.getGeometry())); copy.setUnitOfMeasure(text.getUnitOfMeasure()); copy.setHalo( copy( text.getHalo() )); copy.setLabel( copy( text.getLabel())); copy.setLabelPlacement( copy( text.getLabelPlacement())); copy.setPriority( copy( text.getPriority())); copy.getOptions().putAll(text.getOptions()); if (text instanceof TextSymbolizer2){ TextSymbolizer2 text2 = (TextSymbolizer2) text; TextSymbolizer2 copy2 = (TextSymbolizer2) copy; copy2.setGraphic( copy(text2.getGraphic())); copy2.setSnippet(copy(text2.getSnippet())); copy2.setFeatureDescription(copy(text2.getFeatureDescription())); copy2.setOtherText(copy(text2.getOtherText())); } if( STRICT && !copy.equals( text )){ throw new IllegalStateException("Was unable to duplicate provided TextSymbolizer:"+text ); } pages.push(copy); }
ts.setHalo((Halo) node.getChildValue("Halo"));
ts.setHalo((Halo) node.getChildValue("Halo"));