edu.neu.ccs.gui
Interface Path.Strategy

Enclosing interface:
Path

public static interface Path.Strategy

The Strategy interface requires one method that returns a GeneralPath given its input parameters.


Method Summary
 GeneralPath makePath(float[][] vertex, float[][] tangent, ClosureMode mode, WindingRule windingrule)
          Returns a GeneralPath given a vertex array, a tangent array, a choice of ClosureMode, and a choice of WindingRule.
 

Method Detail

makePath

public GeneralPath makePath(float[][] vertex,
                            float[][] tangent,
                            ClosureMode mode,
                            WindingRule windingrule)

Returns a GeneralPath given a vertex array, a tangent array, a choice of ClosureMode, and a choice of WindingRule.

The vertex array must have the form float[N][2] or else an empty GeneralPath will be returned.

If the method uses the tangent array then the tangent array must have the form float[N][2] for the same N as the vertex array or else an empty GeneralPath will be returned.

If the method does not use the tangent array, this fact must be documented. In this case, it must be acceptable to pass null as the tangent parameter.

Parameters:
vertex - the array of vertex data
tangent - the array of corresponding tangent data
windingrule - the winding rule