Package org.jfree.svg

Class SVGHints

java.lang.Object
org.jfree.svg.SVGHints

public final class SVGHints
extends Object
Defines the rendering hints that can be used with the SVGGraphics2D class. The supported hints are:
  • KEY_IMAGE_HANDLING that controls how images are handled (embedded in the SVG, or referenced externally);
  • KEY_IMAGE_HREF that allows the caller to specify the image href attribute for the next image;
  • KEY_TEXT_RENDERING that allows configuration of the preferred value of the SVG text-rendering attribute in text elements;
  • KEY_ELEMENT_ID that allows the caller to specify the element ID for the next element;
  • KEY_BEGIN_GROUP tells the SVGGraphics2D instance to start a new group element with an id equal to the hint value (which must be an instance of String). Any other Graphics2D implementation will ignore this hint;
  • KEY_END_GROUP tells the SVGGraphics2D instance to end a group element. The hint value is ignored. The caller assumes responsibility for balancing the number of KEY_BEGIN_GROUP and KEY_END_GROUP hints. Any other Graphics2D implementation will ignore this hint.