Class RMPolygonShape

    • Constructor Detail

      • RMPolygonShape

        public RMPolygonShape()
        Creates a new empty polygon shape.
      • RMPolygonShape

        public RMPolygonShape​(RMPath aPath)
        Creates a new polygon shape for the given path.
    • Method Detail

      • getPath

        public RMPath getPath()
        Returns the path for this polygon shape.
        Overrides:
        getPath in class RMShape
      • setPath

        public void setPath​(RMPath aPath)
        Sets the path for this polygon shape.
      • superSelectable

        public boolean superSelectable()
        Editor method - indicates that this shape can be super selected.
        Overrides:
        superSelectable in class RMShape
      • getPathTransform

        public RMTransform getPathTransform()
        Returns the matrix which transforms from path space to this shape's space (path space is arbitrarily defined, and always gets scaled to fit exactly into getBoundsInside()).
      • resetPath

        public void resetPath​(RMPath newPath)
        Replace the polygon's current path with a new path, adjusting the shape's bounds to match the new path.