use of net.sf.latexdraw.models.interfaces.shape.IText in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepscircleboxstar.
@Test
public void testParsepscircleboxstar() {
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 testParsepsframebox.
@Test
public void testParsepsframebox() {
parser("\\psframebox[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, listener.getShapes().size());
final IText text = getShapeAt(0);
assertEquals("\\psframebox[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 testParsepsframeboxstar.
@Test
public void testParsepsframeboxstar() {
parser("\\psframebox*[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, listener.getShapes().size());
final IText text = getShapeAt(0);
assertEquals("\\psframebox*[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 testParsepsshadowboxstar.
@Test
public void testParsepsshadowboxstar() {
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 TestParsingRPut method testRefPointl.
@Test
public void testRefPointl() {
parser("\\rput[l](10,20){coucou}");
final IText txt = getShapeAt(0);
assertEquals(TextPosition.LEFT, txt.getTextPosition());
assertEquals(10d * IShape.PPC, txt.getPosition().getX(), 0.001);
assertEquals(-20d * IShape.PPC, txt.getPosition().getY(), 0.001);
}
Aggregations