1

In JFreeChart, what is a winding rule?

What significance are its values?

There is no javadoc or example for its usage that could be found.

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
Blessed Geek
  • 21,058
  • 23
  • 106
  • 176
  • 1
    I don't know jfreechart, but normally in computer graphics the winding rule determines how complex self intersecting shapes are filled. – Henry Jan 22 '19 at 18:14

1 Answers1

1

As suggested here, a winding rule applies to determining the interior of a path, typically for filling or intersecting. Because a GeneralPath can have one of two different winding rules, ShapeUtils must include it in the corresponding implementation of equal(), seen here. Similarly, SerialUtils must include the attribute when serializing a GeneralPath, as seen here.

trashgod
  • 203,806
  • 29
  • 246
  • 1,045