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

void javamorph::CPolygonDecorator::mouseDragged ( MouseEvent  e  )  [inline]

The user is moving a polygon point.

Definition at line 130 of file CPolygonDecorator.java.

References index, parent, polygon, and javamorph::CFrame::scalePoint().

                                          {
        /* Branch when moving points. */
        if(CConfig.EDIT_POLYGON_OFF == CConfig.edit_state){
            Point p = new Point(e.getX(), e.getY()), q = polygon.get(index);
            parent.scalePoint(p);
            q.x = p.x;
            q.y = p.y;
            parent.repaint();
        }
    }


Generated by  Doxygen 1.6.0   Back to index