Logo Search packages:      
Sourcecode: javamorph version File versions  Download package

void javamorph::CPolygonDecorator::clip (  )  [inline]

Ensures that the cursor points to a valid polygon point.

Definition at line 85 of file CPolygonDecorator.java.

References index, and polygon.

Referenced by drawLine(), fill(), genClip(), paint(), and smoothCircle().

                      {
        index = Math.max(0, Math.min(polygon.size() - 1, index));
    }


Generated by  Doxygen 1.6.0   Back to index