Package net.sf.latexdraw.glib.models.interfaces.shape

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


  }


  @Override@Test
  public void testUpdateGeneralPathMiddle() {
    IRectangularShape model = getShape();
    Path2D path;
    PathIterator pi;
    double[] coords = new double[6];
    final double thickness = 3.;
    final double height = 5.;
    List<Double> xs = new ArrayList<>();
    List<Double> ys = new ArrayList<>();

    model.setPosition(-10, 20);
    model.setWidth(100);
    model.setThickness(thickness);
    model.setHeight(height);
    model.setBordersPosition(BorderPos.MID);
    view.update();
    path = view.getPath();

    pi = path.getPathIterator(null);
    assertEquals(PathIterator.SEG_MOVETO, pi.currentSegment(coords));
View Full Code Here


  }


  @Override@Test
  public void testUpdateGeneralPathOutside() {
    IRectangularShape model = getShape();
    Path2D path;
    PathIterator pi;
    double[] coords = new double[6];
    final double thickness = 3.;
    final double height = 5.;
    List<Double> xs = new ArrayList<>();
    List<Double> ys = new ArrayList<>();

    model.setPosition(-10, 20);
    model.setWidth(100);
    model.setThickness(thickness);
    model.setHeight(height);
    model.setBordersPosition(BorderPos.OUT);
    view.update();
    path = view.getPath();

    pi = path.getPathIterator(null);
    assertEquals(PathIterator.SEG_MOVETO, pi.currentSegment(coords));
View Full Code Here

TOP

Related Classes of net.sf.latexdraw.glib.models.interfaces.shape.IRectangularShape

Copyright © 2018 www.massapicom. 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.