scenic.path
Interface PathWalker


public interface PathWalker

This interface is used when walking a path. Each subpath begins with a call to beginSubPath-method, which is followed with calls to lineTo-method. The endSubPath-method is called at the end of each subpath.


Method Summary
 void beginSubPath(boolean isClosed)
          Begins a new subpath.
 void endSubPath()
          Ends the subpath.
 void lineTo(double x, double y)
          Adds a new point to the subpath.
 

Method Detail

beginSubPath

void beginSubPath(boolean isClosed)
Begins a new subpath.

Parameters:
isClosed - defines is the subpath closed.

endSubPath

void endSubPath()
Ends the subpath.


lineTo

void lineTo(double x,
            double y)
Adds a new point to the subpath.

Parameters:
x - x coordinate of the point.
y - y coordinate of the point.