Class ViewportPath

  • All Implemented Interfaces:
    Renderable

    @Deprecated
    public final class ViewportPath
    extends Path
    Deprecated.
    Use Path.TraversalOption#PREFER_VIEWPORT instead
    Wraps around a CoordinatePath such as a RegionPath or a BresenhamPath and attempts to walk it via the viewport
    • Method Detail

      • convert

        @Nullable
        public static ViewportPath convert​(CoordinatePath path)
        Deprecated.
        Converts the provided CoordinatePath into a ViewportPath
        Parameters:
        path - a preferably non-null CoordinatePath
        Returns:
        A ViewportPath as long as path is not null
      • getVertices

        public java.util.List<Coordinate> getVertices()
        Deprecated.
        Description copied from class: Path
        Gets a list of the vertices in this path
        Specified by:
        getVertices in class Path
        Returns:
        A List
      • getNext

        @Nullable
        public Coordinate getNext()
        Deprecated.
        Specified by:
        getNext in class Path
        Returns:
        the next Locatable within the path.
      • getNext

        public Locatable getNext​(boolean preferViewportTraversal)
        Deprecated.
        Specified by:
        getNext in class Path