Search in sources :

Example 1 with IStandardGrid

use of net.sf.latexdraw.models.interfaces.shape.IStandardGrid in project latexdraw by arnobl.

the class TestIStandardGrid method testDuplicate.

@Theory
public void testDuplicate(@StdGridData IStandardGrid shape) {
    shape.setOrigin(20, 30);
    shape.setGridStart(-100, -40);
    shape.setGridEnd(200, 300);
    shape.setLabelsSize(12);
    final IStandardGrid dup = shape.duplicate();
    assertEqualsDouble(20., dup.getOriginX());
    assertEqualsDouble(30., dup.getOriginY());
    assertEqualsDouble(-100., dup.getGridStartX());
    assertEqualsDouble(-40., dup.getGridStartY());
    assertEqualsDouble(200., dup.getGridEndX());
    assertEqualsDouble(300., dup.getGridEndY());
    assertEquals(12, dup.getLabelsSize());
}
Also used : IStandardGrid(net.sf.latexdraw.models.interfaces.shape.IStandardGrid) Theory(org.junit.experimental.theories.Theory)

Example 2 with IStandardGrid

use of net.sf.latexdraw.models.interfaces.shape.IStandardGrid in project latexdraw by arnobl.

the class TestSVGStdGrid method testStdGridParams.

@Theory
public void testStdGridParams(@StdGridData(withParamVariants = true) final IStandardGrid sh) {
    final IStandardGrid s2 = produceOutputShapeFrom(sh);
    CompareShapeMatcher.INST.assertEqualsStdGrid(sh, s2);
}
Also used : IStandardGrid(net.sf.latexdraw.models.interfaces.shape.IStandardGrid) Theory(org.junit.experimental.theories.Theory)

Aggregations

IStandardGrid (net.sf.latexdraw.models.interfaces.shape.IStandardGrid)2 Theory (org.junit.experimental.theories.Theory)2