|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.styling.XMLEncoder
Exports a style as a OGC SLD document. This class is does not generate namespace compliant xml, even though it does print gml prefixes. It was also written before the 1.0 filter spec, so some of it may be not up to date.
Constructor Summary | |
XMLEncoder(java.io.Writer out)
Deprecated. Constructor with writer to write filters to. |
|
XMLEncoder(java.io.Writer out,
Style style)
Deprecated. Creates a new instance of XMLEncoder |
Method Summary | |
void |
encode(Style style)
Deprecated. Encodes the filter to the current writer. |
void |
encodeCssParam(java.lang.String name,
Expression expression)
Deprecated. |
void |
visit(AnchorPoint ap)
Deprecated. Called when accept is called on a anchor point |
void |
visit(Displacement dis)
Deprecated. Called when accept is called on a displacement |
void |
visit(ExternalGraphic exgr)
Deprecated. Called when accept is called on a external graphic |
void |
visit(FeatureTypeConstraint arg0)
Deprecated. Called when accept is called on a FeatureTypeConstraint. |
void |
visit(FeatureTypeStyle fts)
Deprecated. Called when accept is called on a fetauretypestyle |
void |
visit(Fill fill)
Deprecated. Called when accept is called on a fill |
void |
visit(Graphic gr)
Deprecated. Called when accept is called on a graphic |
void |
visit(Halo halo)
Deprecated. Called when accept is called on a halo |
void |
visit(LinePlacement lp)
Deprecated. Called when accept is called on a Line Placement |
void |
visit(LineSymbolizer sym)
Deprecated. Called when accept is called on a linesymbolizer |
void |
visit(Mark mark)
Deprecated. Called when accept is called on a mark |
void |
visit(NamedLayer arg0)
Deprecated. Called when accept is called on a NamedLayer. |
void |
visit(PointPlacement pp)
Deprecated. Called when accept is called on a Point Placement |
void |
visit(PointSymbolizer sym)
Deprecated. Called when accept is called on a pointsymbolizer |
void |
visit(PolygonSymbolizer sym)
Deprecated. Called when accept is called on a polygon symbolizer |
void |
visit(RasterSymbolizer raster)
Deprecated. Called when accept is called on a rastersymbolizer |
void |
visit(Rule rule)
Deprecated. Called when accept is called on a rule |
void |
visit(Stroke stroke)
Deprecated. Called when accept is called on a stroke |
void |
visit(Style style)
Deprecated. Called when accept is called on a Style. |
void |
visit(StyledLayerDescriptor arg0)
Deprecated. Called when accept is called on a StyledLayerDescriptor. |
void |
visit(Symbolizer sym)
Deprecated. since it is impossible to create a Symbolizer this method should generate an exception or warning. |
void |
visit(TextSymbolizer sym)
Deprecated. Called when accept is called on a textsymbolizer |
void |
visit(UserLayer arg0)
Deprecated. Called when accept is called on a UserLayer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLEncoder(java.io.Writer out)
out
- where to write the xml representation of filters.public XMLEncoder(java.io.Writer out, Style style) throws java.io.IOException
out
- The writer to write to.style
- the style to encode.
java.io.IOException
- - if a problem occurs with the writerMethod Detail |
public void encode(Style style) throws java.io.IOException
style
- the filter to encode.
java.io.IOException
- if there are problems writing to out.public void encodeCssParam(java.lang.String name, Expression expression)
public void visit(Style style)
StyleVisitor
visit
in interface StyleVisitor
style
- The style to visitpublic void visit(FeatureTypeStyle fts)
StyleVisitor
visit
in interface StyleVisitor
fts
- the feature type styler to visitpublic void visit(Rule rule)
StyleVisitor
visit
in interface StyleVisitor
rule
- the rule to visitpublic void visit(Graphic gr)
StyleVisitor
visit
in interface StyleVisitor
gr
- the graphic to visitpublic void visit(PointSymbolizer sym)
StyleVisitor
visit
in interface StyleVisitor
sym
- the point symbolizer to visitpublic void visit(LineSymbolizer sym)
StyleVisitor
visit
in interface StyleVisitor
sym
- the line symbolizer to visitpublic void visit(Symbolizer sym)
StyleVisitor
visit
in interface StyleVisitor
sym
- the symbolizer to visitpublic void visit(Fill fill)
StyleVisitor
visit
in interface StyleVisitor
fill
- the fill to be visitedpublic void visit(Stroke stroke)
StyleVisitor
visit
in interface StyleVisitor
stroke
- the stroke to visitpublic void visit(TextSymbolizer sym)
StyleVisitor
visit
in interface StyleVisitor
sym
- the text symbolizer to visitpublic void visit(PolygonSymbolizer sym)
StyleVisitor
visit
in interface StyleVisitor
sym
- the polygon symbolizer to visitpublic void visit(Mark mark)
StyleVisitor
visit
in interface StyleVisitor
mark
- the mark to visitpublic void visit(ExternalGraphic exgr)
StyleVisitor
visit
in interface StyleVisitor
exgr
- the external graphic to visitpublic void visit(PointPlacement pp)
StyleVisitor
visit
in interface StyleVisitor
pp
- the point placement to visitpublic void visit(AnchorPoint ap)
StyleVisitor
visit
in interface StyleVisitor
ap
- the anchor point to visitpublic void visit(Displacement dis)
StyleVisitor
visit
in interface StyleVisitor
dis
- the displacement to visitpublic void visit(LinePlacement lp)
StyleVisitor
visit
in interface StyleVisitor
lp
- the line placement to visitpublic void visit(Halo halo)
StyleVisitor
visit
in interface StyleVisitor
halo
- the halo to visitpublic void visit(RasterSymbolizer raster)
StyleVisitor
visit
in interface StyleVisitor
raster
- the raster symbolizer to visitpublic void visit(StyledLayerDescriptor arg0)
StyleVisitor
visit
in interface StyleVisitor
arg0
- The StyledLayerDescriptor to visitpublic void visit(NamedLayer arg0)
StyleVisitor
visit
in interface StyleVisitor
arg0
- The NamedLayer to visitpublic void visit(UserLayer arg0)
StyleVisitor
visit
in interface StyleVisitor
arg0
- The UserLayer to visitpublic void visit(FeatureTypeConstraint arg0)
StyleVisitor
visit
in interface StyleVisitor
arg0
- The FeatureTypeConstraint to visit
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |