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

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

Introduction

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

Prototype

SVGHints.Key KEY_BEGIN_GROUP

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

Click Source Link

Document

Hint key that informs the SVGGraphics2D that the caller would like to begin a new group element.

Usage

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

/**
 * Returns <code>true</code> if this key is equivalent to 
 * {@link #KEY_BEGIN_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_BEGIN_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.//from w  w  w  . j  a  va2  s .  c  o  m
 * 
 * @param key  the key (<code>null</code> not permitted)
 * 
 * @return A boolean.
 * 
 * @since 1.8
 */
public static boolean isBeginGroupKey(RenderingHints.Key key) {
    return SVGHints.KEY_BEGIN_GROUP.equals(key) || beginGroupKeys.contains(key);
}