Package provided.owlMaps.general
Class SVGSymbolPath
java.lang.Object
provided.owlMaps.general.SVGSymbolPath
- All Implemented Interfaces:
ISymbolPath
public class SVGSymbolPath extends java.lang.Object implements ISymbolPath
Representation of an SVG vector path defining a symbol shape.
See https://www.w3.org/TR/SVG/paths.html#PathData
- Author:
- swong
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
path
The SVG path as a string -
Constructor Summary
Constructors Constructor Description SVGSymbolPath(java.lang.String path)
Construct a new instance -
Method Summary
Modifier and Type Method Description <R, P> R
execute(ISymbolPathAlgo<R,P> algo, P... params)
Standard visitor pattern "accept" method for ISymbolPath processing visitor algorithms.java.lang.String
getPath()
Accessor for the stored SVG path stringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
path
private java.lang.String pathThe SVG path as a string
-
-
Constructor Details
-
SVGSymbolPath
public SVGSymbolPath(java.lang.String path)Construct a new instance- Parameters:
path
- An SVG path string
-
-
Method Details
-
getPath
public java.lang.String getPath()Accessor for the stored SVG path string- Returns:
- The stored SVG path string
-
execute
Description copied from interface:ISymbolPath
Standard visitor pattern "accept" method for ISymbolPath processing visitor algorithms.- Specified by:
execute
in interfaceISymbolPath
- Type Parameters:
R
- The return type of the algorithmP
- The parameter type of the algorithm- Parameters:
algo
- The visitor algorithm to executeparams
- Vararg parameter values for the algorithm- Returns:
- The return value of the algorithm
-