Class SmoothVoronoiCellShape

  • All Implemented Interfaces:
    java.awt.Shape, java.io.Serializable, java.lang.Cloneable

    public class SmoothVoronoiCellShape
    extends java.awt.geom.Path2D.Float
    This class represents a smooth voronoi cell outline shape. It extends a Path2D with a stored area and a list of vertexes (or vertexes)
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.awt.geom.Path2D

        java.awt.geom.Path2D.Double, java.awt.geom.Path2D.Float
    • Field Summary

      • Fields inherited from class java.awt.geom.Path2D

        WIND_EVEN_ODD, WIND_NON_ZERO
    • Constructor Summary

      Constructors 
      Constructor Description
      SmoothVoronoiCellShape​(java.awt.Shape shape, double area, java.util.List<Vertex> vertexes, java.util.List<SmoothedSegment> smoothedSegments)
      Creates a SmoothVoronoiCellShape.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getArea()
      Returns the area of this shape.
      SmoothedSegment getSegment​(Vertex startVertex, Vertex endVertex)  
      java.util.List<SmoothedSegment> getSmoothedSegments()  
      java.util.List<Vertex> getVertexes()
      Returns the vertexes (or vertexes) of this shape.
      java.lang.String toString()  
      • Methods inherited from class java.awt.geom.Path2D.Float

        append, clone, curveTo, curveTo, getBounds2D, getPathIterator, lineTo, lineTo, moveTo, moveTo, quadTo, quadTo, transform, trimToSize
      • Methods inherited from class java.awt.geom.Path2D

        append, closePath, contains, contains, contains, contains, contains, contains, contains, contains, createTransformedShape, getBounds, getCurrentPoint, getPathIterator, getWindingRule, intersects, intersects, intersects, intersects, reset, setWindingRule
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SmoothVoronoiCellShape

        public SmoothVoronoiCellShape​(java.awt.Shape shape,
                                      double area,
                                      java.util.List<Vertex> vertexes,
                                      java.util.List<SmoothedSegment> smoothedSegments)
        Creates a SmoothVoronoiCellShape.
        Parameters:
        shape - the smooth outline shape of the voronoi cell
        area - the area of the cell
        vertexes - the vertexes (or vertexes) of the cell
        smoothedSegments - the smoothed segments
    • Method Detail

      • getArea

        public double getArea()
        Returns the area of this shape.
        Returns:
        the area of this shape
      • getVertexes

        public java.util.List<Vertex> getVertexes()
        Returns the vertexes (or vertexes) of this shape.
        Returns:
        the vertexes (or vertexes) of this shape
      • getSmoothedSegments

        public java.util.List<SmoothedSegment> getSmoothedSegments()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object