use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandTextStyle method testSelectBRPencil.
@Test
public void testSelectBRPencil() {
new CompositeGUIVoidCommand(activateHand, selectionAddText, selectionAddGrid, selectionAddText, updateIns).execute();
clickOnbrButton.execute();
assertEquals(TextPosition.BOT_RIGHT, ((IText) drawing.getSelection().getShapeAt(0)).getTextPosition());
assertEquals(TextPosition.BOT_RIGHT, ((IText) drawing.getSelection().getShapeAt(2)).getTextPosition());
assertTrue(brButton.isSelected());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandTextStyle method testSelectBPencil.
@Test
public void testSelectBPencil() {
new CompositeGUIVoidCommand(activateHand, selectionAddText, selectionAddGrid, selectionAddText, updateIns).execute();
clickOnbButton.execute();
assertEquals(TextPosition.BOT, ((IText) drawing.getSelection().getShapeAt(0)).getTextPosition());
assertEquals(TextPosition.BOT, ((IText) drawing.getSelection().getShapeAt(2)).getTextPosition());
assertTrue(bButton.isSelected());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandTextStyle method testSelectTRPencil.
@Test
public void testSelectTRPencil() {
new CompositeGUIVoidCommand(activateHand, selectionAddText, selectionAddGrid, selectionAddText, updateIns).execute();
clickOntrButton.execute();
assertEquals(TextPosition.TOP_RIGHT, ((IText) drawing.getSelection().getShapeAt(0)).getTextPosition());
assertEquals(TextPosition.TOP_RIGHT, ((IText) drawing.getSelection().getShapeAt(2)).getTextPosition());
assertTrue(trButton.isSelected());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandTextStyle method testSelectTPencil.
@Test
public void testSelectTPencil() {
new CompositeGUIVoidCommand(activateHand, selectionAddText, selectionAddGrid, selectionAddText, updateIns).execute();
clickOntButton.execute();
assertEquals(TextPosition.TOP, ((IText) drawing.getSelection().getShapeAt(0)).getTextPosition());
assertEquals(TextPosition.TOP, ((IText) drawing.getSelection().getShapeAt(2)).getTextPosition());
assertTrue(tButton.isSelected());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandTextStyle method testSelectCentrePencil.
@Test
public void testSelectCentrePencil() {
new CompositeGUIVoidCommand(activateHand, selectionAddText, selectionAddGrid, selectionAddText, updateIns).execute();
clickOncentreButton.execute();
assertEquals(TextPosition.CENTER, ((IText) drawing.getSelection().getShapeAt(0)).getTextPosition());
assertEquals(TextPosition.CENTER, ((IText) drawing.getSelection().getShapeAt(2)).getTextPosition());
assertTrue(centreButton.isSelected());
}
Aggregations