use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepscirclebox.
@Test
public void testParsepscirclebox() {
parser("\\pscirclebox[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, listener.getShapes().size());
final IText text = getShapeAt(0);
assertEquals("\\pscirclebox[doubleline=true]{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepsshadowbox.
@Test
public void testParsepsshadowbox() {
parser("\\psshadowbox[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, listener.getShapes().size());
final IText text = getShapeAt(0);
assertEquals("\\psshadowbox[doubleline=true]{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepstribox.
@Test
public void testParsepstribox() {
parser("\\pstribox[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, listener.getShapes().size());
final IText text = getShapeAt(0);
assertEquals("\\pstribox[doubleline=true]{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepsdblframebox.
@Test
public void testParsepsdblframebox() {
parser("\\psdblframebox{\\psframe(0,1)}");
assertEquals(1, listener.getShapes().size());
final IText text = getShapeAt(0);
assertEquals("\\psdblframebox{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.
the class TestParsingRPut method testDoubleRputPosition.
@Test
public void testDoubleRputPosition() {
parser("\\rput(1,2){\\rput(2,3){coucou}}");
final IText txt = getShapeAt(0);
assertEquals("coucou", txt.getText());
assertEquals(3d * IShape.PPC, txt.getPosition().getX(), 0.001);
assertEquals(-5d * IShape.PPC, txt.getPosition().getY(), 0.001);
}
Aggregations