edu.neu.ccs.gui
Class ClosureMode

java.lang.Object
  extended byedu.neu.ccs.gui.ClosureMode

public abstract class ClosureMode
extends Object

Class ClosureMode encapsulates the choices for the closure mode of a polygon or bezier cubic curve.

Class ClosureMode cannot be instantiated outside of its own package.

Since:
2.3
Version:
2.3

Field Summary
static ClosureMode CLOSED
          CLOSED is the ClosureMode corresponding to a closed polygon or closed bezier curve, that is, limit(length) returns length.
static ClosureMode OPEN
          OPEN is the ClosureMode corresponding to an open polygon or open bezier curve, that is, limit(length) returns (length - 1).
 
Constructor Summary
(package private) ClosureMode()
          Default package-private constructor to prevent outside instantiation.
 
Method Summary
abstract  int limit(int length)
          Returns the limit index of a graphics computation as a function of the length of the associated vertex or tangent array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOSED

public static final ClosureMode CLOSED

CLOSED is the ClosureMode corresponding to a closed polygon or closed bezier curve, that is, limit(length) returns length.

See Also:
OPEN

OPEN

public static final ClosureMode OPEN

OPEN is the ClosureMode corresponding to an open polygon or open bezier curve, that is, limit(length) returns (length - 1).

See Also:
CLOSED
Constructor Detail

ClosureMode

ClosureMode()
Default package-private constructor to prevent outside instantiation.

Method Detail

limit

public abstract int limit(int length)
Returns the limit index of a graphics computation as a function of the length of the associated vertex or tangent array.

Parameters:
length - the length of the associated vertex or tangent array
Returns:
the limit index of a graphics computation