Search in sources :

Example 6 with ControlPointShape

use of net.sf.latexdraw.model.api.shape.ControlPointShape in project latexdraw by arnobl.

the class TestControlPointShapeBase method testDuplicate.

@Theory
public void testDuplicate(@CtrlShapeData final ControlPointShape sh) {
    sh.translate(10d, -12d);
    final ControlPointShape dup = sh.duplicate();
    assertEquals(sh.getFirstCtrlPts(), dup.getFirstCtrlPts());
    assertEquals(sh.getSecondCtrlPts(), dup.getSecondCtrlPts());
}
Also used : ControlPointShape(net.sf.latexdraw.model.api.shape.ControlPointShape) Theory(org.junit.experimental.theories.Theory)

Aggregations

ControlPointShape (net.sf.latexdraw.model.api.shape.ControlPointShape)6 Point (net.sf.latexdraw.model.api.shape.Point)3 Shape (net.sf.latexdraw.model.api.shape.Shape)2 Theory (org.junit.experimental.theories.Theory)2 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)2 MethodSource (org.junit.jupiter.params.provider.MethodSource)2 Click (io.github.interacto.jfx.interaction.library.Click)1 DnD (io.github.interacto.jfx.interaction.library.DnD)1 MultiClick (io.github.interacto.jfx.interaction.library.MultiClick)1 PointsData (io.github.interacto.jfx.interaction.library.PointsData)1 Press (io.github.interacto.jfx.interaction.library.Press)1 Arrays (java.util.Arrays)1 Objects (java.util.Objects)1 Function (java.util.function.Function)1 Point3D (javafx.geometry.Point3D)1 MouseButton (javafx.scene.input.MouseButton)1 FileChooser (javafx.stage.FileChooser)1 AddShape (net.sf.latexdraw.command.shape.AddShape)1 InitTextSetter (net.sf.latexdraw.command.shape.InitTextSetter)1 InsertPicture (net.sf.latexdraw.command.shape.InsertPicture)1