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());
}
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);
}
Aggregations