Search in sources :

Example 1 with IText

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

the class TestParsingPsframebox method testParsepsdblframeboxstar.

@Test
public void testParsepsdblframeboxstar() {
    parser("\\psdblframebox*{\\psframe(0,1)}");
    assertEquals(1, listener.getShapes().size());
    final IText text = getShapeAt(0);
    assertEquals("\\psdblframebox*{\\psframe(0,1)}", text.getText());
}
Also used : IText(net.sf.latexdraw.models.interfaces.shape.IText) Test(org.junit.Test)

Example 2 with IText

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

the class TestParsingPsframebox method testParsepsovalbox.

@Test
public void testParsepsovalbox() {
    parser("\\psovalbox[doubleline=true]{\\psframe(0,1)}");
    assertEquals(1, listener.getShapes().size());
    final IText text = getShapeAt(0);
    assertEquals("\\psovalbox[doubleline=true]{\\psframe(0,1)}", text.getText());
}
Also used : IText(net.sf.latexdraw.models.interfaces.shape.IText) Test(org.junit.Test)

Example 3 with IText

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

the class TestParsingPsframebox method testBug911816.

@Test
public void testBug911816() {
    // https://bugs.launchpad.net/latexdraw/+bug/911816
    parser("\\psframebox{$E=mc^2$}");
    assertEquals(1, listener.getShapes().size());
    final IText text = getShapeAt(0);
    assertEquals("\\psframebox{$E=mc^2$}", text.getText());
}
Also used : IText(net.sf.latexdraw.models.interfaces.shape.IText) Test(org.junit.Test)

Example 4 with IText

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

the class TestParsingPsframebox method testParsepstriboxstar.

@Test
public void testParsepstriboxstar() {
    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());
}
Also used : IText(net.sf.latexdraw.models.interfaces.shape.IText) Test(org.junit.Test)

Example 5 with IText

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

the class TestParsingPsframebox method testParsepsovalboxstar.

@Test
public void testParsepsovalboxstar() {
    parser("\\psovalbox*[doubleline=true]{\\psframe(0,1)}");
    assertEquals(1, listener.getShapes().size());
    final IText text = getShapeAt(0);
    assertEquals("\\psovalbox*[doubleline=true]{\\psframe(0,1)}", text.getText());
}
Also used : IText(net.sf.latexdraw.models.interfaces.shape.IText) Test(org.junit.Test)

Aggregations

IText (net.sf.latexdraw.models.interfaces.shape.IText)72 Test (org.junit.Test)65 HelperTest (net.sf.latexdraw.HelperTest)6 Platform (javafx.application.Platform)3 URL (java.net.URL)2 Collections (java.util.Collections)2 ResourceBundle (java.util.ResourceBundle)2 Initializable (javafx.fxml.Initializable)2 Point2D (javafx.geometry.Point2D)2 KeyCode (javafx.scene.input.KeyCode)2 ShapeProperties (net.sf.latexdraw.commands.shape.ShapeProperties)2 ShapeFactory (net.sf.latexdraw.models.ShapeFactory)2 IPlot (net.sf.latexdraw.models.interfaces.shape.IPlot)2 TextAreaAutoSize (net.sf.latexdraw.ui.TextAreaAutoSize)2 ViewText (net.sf.latexdraw.view.jfx.ViewText)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Optional (java.util.Optional)1 ExecutionException (java.util.concurrent.ExecutionException)1 Future (java.util.concurrent.Future)1