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
  • 200,320
  • 28
  • 229
  • 974
Blessed Geek
  • 20,045
  • 22
  • 102
  • 171
  • 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
  • 200,320
  • 28
  • 229
  • 974