org.geotools.gui.swing.sldeditor.util
Class StyleCloner

java.lang.Object
  extended byorg.geotools.gui.swing.sldeditor.util.StyleCloner

public class StyleCloner
extends java.lang.Object

A utility class to clone Style objects, ideally it'd better to be inside those Style class itself. follow Sean's work, made another half of this class, have a look on the clone method parameters with checking the classes in the styling packge you will get a clue, what have done, how deep the clone goes, and what left untouched. For your interest, adding your clone method to clone those haven't been done and also please modify the places where other clone methods use them

Author:
Sean Geoghegan, Jianhui Jin

Constructor Summary
StyleCloner(StyleFactory styleFactory)
          DOCUMENT ME!
 
Method Summary
 FeatureTypeStyle clone(FeatureTypeStyle toClone)
          DOCUMENT ME!
 FeatureTypeStyle[] clone(FeatureTypeStyle[] toClone)
          DOCUMENT ME!
 Fill clone(Fill oldF)
           
 float[] clone(float[] d)
           
 Graphic clone(Graphic g)
           
 LineSymbolizer clone(LineSymbolizer l)
           
 Mark clone(Mark oldM)
           
 Mark[] clone(Mark[] oldM)
           
 PointSymbolizer clone(PointSymbolizer p)
           
 PolygonSymbolizer clone(PolygonSymbolizer p)
           
 Rule clone(Rule toClone)
          DOCUMENT ME!
 Rule[] clone(Rule[] toClone)
          DOCUMENT ME!
 Stroke clone(Stroke oldS)
           
 Style clone(Style toClone)
          DOCUMENT ME!
 Symbolizer clone(Symbolizer s)
           
 Symbolizer[] clone(Symbolizer[] toClone)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleCloner

public StyleCloner(StyleFactory styleFactory)
DOCUMENT ME!

Parameters:
styleFactory -
Method Detail

clone

public Style clone(Style toClone)
DOCUMENT ME!

Parameters:
toClone -
Returns:

clone

public FeatureTypeStyle[] clone(FeatureTypeStyle[] toClone)
DOCUMENT ME!

Parameters:
toClone -
Returns:

clone

public FeatureTypeStyle clone(FeatureTypeStyle toClone)
DOCUMENT ME!

Parameters:
toClone -
Returns:

clone

public Rule[] clone(Rule[] toClone)
DOCUMENT ME!

Parameters:
toClone -
Returns:

clone

public Rule clone(Rule toClone)
DOCUMENT ME!

Parameters:
toClone -
Returns:

clone

public Symbolizer[] clone(Symbolizer[] toClone)
DOCUMENT ME!

Parameters:
toClone -
Returns:

clone

public Symbolizer clone(Symbolizer s)

clone

public PointSymbolizer clone(PointSymbolizer p)

clone

public LineSymbolizer clone(LineSymbolizer l)

clone

public PolygonSymbolizer clone(PolygonSymbolizer p)

clone

public Graphic clone(Graphic g)

clone

public Mark[] clone(Mark[] oldM)

clone

public Mark clone(Mark oldM)

clone

public Fill clone(Fill oldF)

clone

public Stroke clone(Stroke oldS)

clone

public float[] clone(float[] d)


Copyright © GeoTools. All Rights Reserved.