Examples of IControlPointShape


Examples of net.sf.latexdraw.glib.models.interfaces.shape.IControlPointShape

  @Override
  protected void copyPoints(final IShape sh) {
    super.copyPoints(sh);

    if(sh instanceof IControlPointShape) {
      final IControlPointShape cpSh = (IControlPointShape)sh;
      List<IPoint> pts      = cpSh.getFirstCtrlPts();

      firstCtrlPts.clear();
      for(final IPoint pt : pts)
        firstCtrlPts.add(ShapeFactory.createPoint(pt));

      pts = cpSh.getSecondCtrlPts();
      secondCtrlPts.clear();
      for(final IPoint pt : pts)
        secondCtrlPts.add(ShapeFactory.createPoint(pt));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.