List of usage examples for org.jfree.graphics2d.svg SVGHints KEY_ELEMENT_TITLE
SVGHints.Key KEY_ELEMENT_TITLE
To view the source code for org.jfree.graphics2d.svg SVGHints KEY_ELEMENT_TITLE.
Click Source Link
SVGGraphics2D
that the caller would like to add a title element to the output (with the hint value being a string containing the title text). From source file:org.jfree.graphics2d.svg.SVGHints.java
/** * Returns <code>true</code> if this key is equivalent to * {@link #KEY_ELEMENT_TITLE}, and <code>false</code> otherwise. The * purpose of this method is to allow certain keys from external packages * (such as Orson Charts) to use their own keys to drive the behaviour of * SVGHints.KEY_ELEMENT_TITLE. This has two benefits: (1) it avoids the * necessity to make JFreeSVG a direct dependency, and (2) it makes the * element title behaviour generic from the point of view of the external * package, rather than SVG-specific./*from w ww. j a v a2 s. c o m*/ * * @param key the key (<code>null</code> not permitted) * * @return A boolean. * * @since 1.9 */ public static boolean isElementTitleKey(RenderingHints.Key key) { return SVGHints.KEY_ELEMENT_TITLE.equals(key) || elementTitleKeys.contains(key); }