This class makes use of an internal stack to story the copied result, retrieve with a call to getCopy() after visiting:
DuplicatingStyleVisitor copyStyle = new DuplicatingStyleVisitor(); rule.accepts( copyStyle ); Rule rule = (Rule) copyStyle.getCopy();
This class is often used as a base for an anoymous subclass where a style transformation is needed (such as removing PointSymbolizers or changing the scale - see RescaleStyleVisitor for an example).
@author Jesse Eichar @source $URL$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|