@Test public void testHEXcolors() throws FileNotFoundException, IOException, SAXException, ParserConfigurationException { GradientColorMapGenerator colorMapGenerator = GradientColorMapGenerator.getColorMapGenerator("#0000ff;#00ffff;#ffff00;#ff0000"); testBlueAcquaYellowRed(colorMapGenerator); }
public static GradientColorMapGenerator getColorMapGenerator(final File file) throws SAXException, IOException, ParserConfigurationException { GradientColorMapGenerator generator = null; Utilities.ensureNonNull("file", file); final String identifier = file.getAbsolutePath(); synchronized (cache) { if (cache.containsKey(identifier)) { generator = cache.get(identifier); } else { generator = parseSVG(file); cache.put(identifier, generator); } } return generator; }
GradientColorMapGenerator { public static GradientColorMapGenerator getColorMapGenerator(final File file) throws SAXException, IOException, ParserConfigurationException { GradientColorMapGenerator generator = null; Utilities.ensureNonNull("file", file); final String identifier = file.getAbsolutePath(); synchronized (cache) { if (cache.containsKey(identifier)) { generator = cache.get(identifier); } else { generator = parseSVG(file); cache.put(identifier, generator); } } return generator; } }
GradientColorMapGenerator { public static GradientColorMapGenerator getColorMapGenerator(final File file) throws SAXException, IOException, ParserConfigurationException { GradientColorMapGenerator generator = null; Utilities.ensureNonNull("file", file); final String identifier = file.getAbsolutePath(); synchronized (cache) { if (cache.containsKey(identifier)) { generator = cache.get(identifier); } else { generator = parseSVG(file); cache.put(identifier, generator); } } return generator; } private  GradientColorMapGenerator(LinearGradientEntry[] entries); }
GradientColorMapGenerator { public static GradientColorMapGenerator getColorMapGenerator(final File file) throws SAXException, IOException, ParserConfigurationException { GradientColorMapGenerator generator = null; Utilities.ensureNonNull("file", file); final String identifier = file.getAbsolutePath(); synchronized (cache) { if (cache.containsKey(identifier)) { generator = cache.get(identifier); } else { generator = parseSVG(file); cache.put(identifier, generator); } } return generator; } private  GradientColorMapGenerator(LinearGradientEntry[] entries); void setBeforeColor(Color color); void setBeforeColor(String color); void setAfterColor(Color color); void setAfterColor(String color); ColorMap generateColorMap(double min, double max); static GradientColorMapGenerator getColorMapGenerator(final File file); static GradientColorMapGenerator getColorMapGenerator(String colorValues); static Color hex2Rgb(String colorStr); }
GradientColorMapGenerator { public static GradientColorMapGenerator getColorMapGenerator(final File file) throws SAXException, IOException, ParserConfigurationException { GradientColorMapGenerator generator = null; Utilities.ensureNonNull("file", file); final String identifier = file.getAbsolutePath(); synchronized (cache) { if (cache.containsKey(identifier)) { generator = cache.get(identifier); } else { generator = parseSVG(file); cache.put(identifier, generator); } } return generator; } private  GradientColorMapGenerator(LinearGradientEntry[] entries); void setBeforeColor(Color color); void setBeforeColor(String color); void setAfterColor(Color color); void setAfterColor(String color); ColorMap generateColorMap(double min, double max); static GradientColorMapGenerator getColorMapGenerator(final File file); static GradientColorMapGenerator getColorMapGenerator(String colorValues); static Color hex2Rgb(String colorStr); static final String RGB_INLINEVALUE_MARKER; static final String RGBA_INLINEVALUE_MARKER; static final String HEX_INLINEVALUE_MARKER; static final String HEX2_INLINEVALUE_MARKER; }