use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestParsingRPut method testDoubleRputRotation.
@Test
void testDoubleRputRotation() {
parser("\\rput{10}(0,0){\\rput{80}(0,0){coucou}}");
final Text txt = getShapeAt(0);
assertEquals(Math.toRadians(-90), txt.getRotationAngle(), 0.001);
}
use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestParsingRPut method testRefPointtl.
@Test
void testRefPointtl() {
parser("\\rput[tl](10,20){coucou}");
final Text txt = getShapeAt(0);
assertEquals(TextPosition.TOP_LEFT, txt.getTextPosition());
assertEquals(10d * Shape.PPC, txt.getPosition().getX(), 0.001);
assertEquals(-20d * Shape.PPC, txt.getPosition().getY(), 0.001);
}
use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepsshadowbox.
@Test
public void testParsepsshadowbox() {
parser("\\psshadowbox[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, parsedShapes.size());
final Text text = getShapeAt(0);
assertEquals("\\psshadowbox[doubleline=true]{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepstribox.
@Test
public void testParsepstribox() {
parser("\\pstribox[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, parsedShapes.size());
final Text text = getShapeAt(0);
assertEquals("\\pstribox[doubleline=true]{\\psframe(0,1)}", text.getText());
}
use of net.sf.latexdraw.model.api.shape.Text in project latexdraw by arnobl.
the class TestParsingPsframebox method testParsepsdiabox.
@Test
public void testParsepsdiabox() {
parser("\\psdiabox[doubleline=true]{\\psframe(0,1)}");
assertEquals(1, parsedShapes.size());
final Text text = getShapeAt(0);
assertEquals("\\psdiabox[doubleline=true]{\\psframe(0,1)}", text.getText());
}
Aggregations