Package armyc2.c5isr.renderer.utilities
Class Shape2SVG
java.lang.Object
armyc2.c5isr.renderer.utilities.Shape2SVG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Convert
(TextInfo textInfo, String stroke, String fill, String strokeWidth, String strokeOpacity, String fillOpacity, String dashArray) static String
Convert
(Object shape, String stroke, String fill, String strokeWidth, String strokeOpacity, String fillOpacity, String dashArray, String lineCap) static String
Convert
(String text, int x, int y, Paint font, String stroke, String fill, String strokeWidth, String strokeOpacity, String fillOpacity, String dashArray) static String
ConvertForGroup
(TextInfo textInfo, String stroke, String fill, String strokeWidth, String strokeOpacity, String fillOpacity, String dashArray) Assumes common font properties will be defined in the group.static String
makeBase64Safe
(String svg)
-
Constructor Details
-
Shape2SVG
public Shape2SVG()
-
-
Method Details
-
Convert
public static String Convert(Object shape, String stroke, String fill, String strokeWidth, String strokeOpacity, String fillOpacity, String dashArray, String lineCap) - Parameters:
shape
- likeObject
stroke
- like "#000000fill
- like "#0000FF" or "none"strokeWidth
- "#"strokeOpacity
- "1.0"fillOpacity
- "1.0"dashArray
- "4 1 2 3"- Returns:
-
Convert
-
Convert
-
ConvertForGroup
public static String ConvertForGroup(TextInfo textInfo, String stroke, String fill, String strokeWidth, String strokeOpacity, String fillOpacity, String dashArray) Assumes common font properties will be defined in the group.- Parameters:
textInfo
-stroke
-fill
-strokeWidth
-strokeOpacity
-fillOpacity
-dashArray
-- Returns:
-
makeBase64Safe
-