Class XSLUtility
java.lang.Object
de.latlon.deejump.plugin.style.XSLUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreatePatternImage(int width, int extent, String pattern, String color) static Stringstatic StringgetIconURL(String icon) static StringgetImageURL(String filename, Node fill, Node stroke, int size) static StringreplaceComma(Node node) static StringtoAlphaValue(Node node) static StringtoFontFamily(Node node) static StringtoFontStyle(Node fontNode) static StringtoHexColor(Node colorNode) static StringtoWellKnowName(Node vertexStyleNode)
-
Constructor Details
-
XSLUtility
public XSLUtility()
-
-
Method Details
-
toHexColor
-
toAlphaValue
-
toFontFamily
-
toFontStyle
-
toWellKnowName
-
getImageURL
public static String getImageURL(String filename, Node fill, Node stroke, int size) throws IOException - Parameters:
filename- file containing the imagefill- node containing the fill property (svg case)stroke- node containing the stroke property (svg case)size- size of the image- Returns:
- a URL to the image (svg images will be colored and saved as image)
- Throws:
IOException- if an IOException occurs
-
fileToURL
-
replaceComma
-
getIconURL
-
createPatternImage
public static String createPatternImage(int width, int extent, String pattern, String color) throws IOException - Parameters:
width- width of the WKTFillPatternextent- extent of the WKTFillPatternpattern- name of the patterncolor- color code- Returns:
- the image url
- Throws:
IOException- if an IOException occurs
-