Example usage for org.jfree.graphics2d.svg SVGHints KEY_END_GROUP

List of usage examples for org.jfree.graphics2d.svg SVGHints KEY_END_GROUP

Introduction

In this page you can find the example usage for org.jfree.graphics2d.svg SVGHints KEY_END_GROUP.

Prototype

SVGHints.Key KEY_END_GROUP

To view the source code for org.jfree.graphics2d.svg SVGHints KEY_END_GROUP.

Click Source Link

Document

Hint key that informs the SVGGraphics2D that the caller would like to close a previously opened group element.

Usage

From source file:org.jfree.graphics2d.svg.SVGHints.java

/**
 * Returns <code>true</code> if this key is equivalent to 
 * {@link #KEY_END_GROUP}, 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_END_GROUP.  This has two benefits: (1) it avoids the 
 * necessity to make JFreeSVG a direct dependency, and (2) it makes the
 * grouping behaviour generic from the point of view of the external
 * package, rather than SVG-specific./*w  w w  .  ja va  2s . c  o  m*/
 * 
 * @param key  the key (<code>null</code> not permitted)
 * 
 * @return A boolean.
 * 
 * @since 1.8
 */
public static boolean isEndGroupKey(RenderingHints.Key key) {
    return SVGHints.KEY_END_GROUP.equals(key) || endGroupKeys.contains(key);
}