public class DncGeosymImageUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
cgmBoundsPattern |
static Pattern |
cgmScalePattern |
static double |
geosymSvgDpi
The SVG coordinates were generated in 1/100th pixel units assuming this DPI.
|
static Color |
transparentWhite |
Constructor and Description |
---|
DncGeosymImageUtils() |
Modifier and Type | Method and Description |
---|---|
static int[] |
extractCgmBounds(String cgmText,
String cgmLocation) |
static double |
extractCgmScale(String cgmText,
String cgmLocation) |
static String |
loadAsString(StreamOpener opener,
String location,
Charset charset) |
static AnchoredImage |
loadGeosymImage(String symbolId,
String cgmDir,
String svgDir,
double screenDpi) |
static String |
removeSvgTransparency(String svgText) |
public static final double geosymSvgDpi
public static final Color transparentWhite
public static final Pattern cgmBoundsPattern
public static final Pattern cgmScalePattern
public static AnchoredImage loadGeosymImage(String symbolId, String cgmDir, String svgDir, double screenDpi) throws IOException, com.kitfox.svg.SVGException
IOException
com.kitfox.svg.SVGException
public static String loadAsString(StreamOpener opener, String location, Charset charset) throws IOException
IOException
public static int[] extractCgmBounds(String cgmText, String cgmLocation) throws com.kitfox.svg.SVGException
com.kitfox.svg.SVGException
public static double extractCgmScale(String cgmText, String cgmLocation) throws com.kitfox.svg.SVGException
com.kitfox.svg.SVGException
Copyright © 2016 Metron, Inc.. All rights reserved.