Class BoundedVoronoiBuildOptions


  • public class BoundedVoronoiBuildOptions
    extends Object
    Specifies options for building a bounded Voronoi Diagram
    • Constructor Detail

      • BoundedVoronoiBuildOptions

        public BoundedVoronoiBuildOptions()
        Standard constructor.
    • Method Detail

      • setBounds

        public void setBounds​(Rectangle2D bounds)
        Sets the bounds for the Bounded Voronoi Diagram. The domain of a true Voronoi Diagram is the entire coordinate plane. For practical purposes the bounded Voronoi Diagram class limits the bounds to a finite domain. By default, the constructor will create bounds that are slightly larger than the bounds of the input sample data set. However, if an application has a specific need, it can specify an alternate bounds.

        Note: The alternate bounds must be at least as large as the size of the sample data set.

        Parameters:
        bounds - a valid rectangle.
      • enableAutomaticColorAssignment

        public void enableAutomaticColorAssignment​(boolean status)
        Enable the automatic assignment of color values to input vertices.
        Parameters:
        status - true if automatic coloring is enabled; otherwise false.