/** * Null safe fill copy * * @param graphic * @return copy of graphic or null if not provided */ protected Fill copy(Fill fill) { if (fill == null) return null; fill.accept(this); return (Fill) pages.pop(); }
@Override public void visit(Halo halo) { if (halo.getFill() != null) { halo.getFill().accept(this); } }
/** @see org.geotools.styling.StyleVisitor#visit(org.geotools.styling.Halo) */ public void visit(Halo halo) { if (halo.getFill() != null) { halo.getFill().accept(this); } if (halo.getRadius() != null) { halo.getRadius().accept(this, null); } }
@Override public void visit(Mark mark) { // if (mark.getExternalMark() != null) { // mark.getExternalMark().accept(this, null); // } if (mark.getFill() != null) { mark.getFill().accept(this); } if (mark.getStroke() != null) { mark.getStroke().accept(this); } }
public void visit(PolygonSymbolizer poly) { if (isAcceptable(poly)) { if (poly.getStroke() != null) poly.getStroke().accept(this); if (poly.getFill() != null) poly.getFill().accept(this); } }
public void visit(Halo halo) { start("Halo"); if (halo.getRadius() != null) { encodeValue("Radius", null, halo.getRadius(), null); } if (halo.getFill() != null) { halo.getFill().accept(this); } end("Halo"); }
/** @see org.geotools.styling.StyleVisitor#visit(org.geotools.styling.PolygonSymbolizer) */ public void visit(PolygonSymbolizer poly) { if (symbolizerGeometriesVisitEnabled) { if (poly.getGeometry() != null) { poly.getGeometry().accept(this, null); } else { this.defaultGeometryUsed = true; // they want the default geometry (see GEOS-469) } } if (poly.getStroke() != null) { poly.getStroke().accept(this); } if (poly.getFill() != null) { poly.getFill().accept(this); } }
public void visit(PolygonSymbolizer poly) { // adds the uom attribute according to the OGC SE specification AttributesImpl atts = new AttributesImpl(); Unit<Length> uom = poly.getUnitOfMeasure(); if (uom != null) atts.addAttribute("", "uom", "uom", "", UomOgcMapping.get(uom).getSEString()); start("PolygonSymbolizer", atts); encodeGeometryExpression(poly.getGeometry()); if (poly.getFill() != null) { poly.getFill().accept(this); } if (poly.getStroke() != null) { poly.getStroke().accept(this); } if (poly.getOptions() != null) { encodeVendorOptions(poly.getOptions()); } end("PolygonSymbolizer"); }
public void visit(Mark mark) { start("Mark"); if (mark.getWellKnownName() != null && (!"square".equals(mark.getWellKnownName().evaluate(null)) || isExportDefaultValues())) { encodeValue("WellKnownName", null, mark.getWellKnownName(), null); } if (mark.getFill() != null) { mark.getFill().accept(this); } if (mark.getStroke() != null) { mark.getStroke().accept(this); } end("Mark"); }
@Override public void visit(PolygonSymbolizer poly) { if (poly.getDescription() != null) { poly.getDescription().accept(this); } if (poly.getDisplacement() != null) { poly.getDisplacement().accept(this); } if (poly.getFill() != null) { poly.getFill().accept(this); } if (poly.getStroke() != null) { poly.getStroke().accept(this); } }
@Override public void visit(TextSymbolizer text) { if (text.getDescription() != null) { text.getDescription().accept(this); } if (text.getFill() != null) { text.getFill().accept(this); } if (text.getHalo() != null) { text.getHalo().accept(this); } if (text.getLabelPlacement() != null) { text.getLabelPlacement().accept(this); } }
/** @see org.geotools.styling.StyleVisitor#visit(org.geotools.styling.Mark) */ public void visit(Mark mark) { if (mark.getFill() != null) { mark.getFill().accept(this); } if (mark.getStroke() != null) { mark.getStroke().accept(this); } if (mark.getWellKnownName() != null) { if (mark.getWellKnownName() instanceof Literal) { visitCqlExpression(mark.getWellKnownName().evaluate(null, String.class)); } else { mark.getWellKnownName().accept(this, null); } } }
text.getFill().accept(this);
text.getFill().accept(this);
/** * @see org.geotools.styling.StyleVisitor#visit(org.geotools.styling.PolygonSymbolizer) */ public void visit(PolygonSymbolizer poly) { if (poly.getStroke() != null) { poly.getStroke().accept(this); } if (poly.getFill() != null) { poly.getFill().accept(this); } }
/** * @see org.geotools.styling.StyleVisitor#visit(org.geotools.styling.PolygonSymbolizer) */ public void visit(PolygonSymbolizer poly) { if (poly.getStroke() != null) { poly.getStroke().accept(this); } if (poly.getFill() != null) { poly.getFill().accept(this); } }
/** * @see org.geotools.styling.StyleVisitor#visit(org.geotools.styling.Halo) */ public void visit(Halo halo) { if (halo.getFill() != null) { halo.getFill().accept(this); } if (halo.getRadius() != null) { halo.getRadius().accept(this,null); } }
text.getFill().accept(this);
public void visit(PolygonSymbolizer poly) { start("PolygonSymbolizer"); encodeGeometryProperty(poly.getGeometryPropertyName()); if (poly.getFill() != null) { poly.getFill().accept(this); } if (poly.getStroke() != null) { poly.getStroke().accept(this); } end("PolygonSymbolizer"); }
public void visit(Halo halo) { start("Halo"); if (halo.getRadius() != null) { start("Radius"); filterTranslator.encode(halo.getRadius()); end("Radius"); } if (halo.getFill() != null) { halo.getFill().accept(this); } end("Halo"); }