use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandTextStyle method testControllerActivatedWhenSelectionGrid.
@Test
public void testControllerActivatedWhenSelectionGrid() {
new CompositeGUIVoidCommand(selectionAddText, activateHand, updateIns).execute();
assertTrue(ins.isActivated());
assertTrue(titledPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilArcStyle method testArcTypeWedgePencil.
@Test
public void testArcTypeWedgePencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesArc, updateIns, selectChord, selectWedge).execute();
assertEquals(ArcStyle.WEDGE, ((IArc) pencil.createShapeInstance()).getArcStyle());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilArcStyle method testClickWedgeUnselectOthersPencil.
@Test
public void testClickWedgeUnselectOthersPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesArc, updateIns, selectChord, selectWedge).execute();
assertFalse(arcB.isSelected());
assertTrue(wedgeB.isSelected());
assertFalse(chordB.isSelected());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilArcStyle method testArcTypeArcPencil.
@Test
public void testArcTypeArcPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesArc, updateIns, selectChord, selectArc).execute();
assertEquals(ArcStyle.ARC, ((IArc) pencil.createShapeInstance()).getArcStyle());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilArcStyle method testWidgetsGoodStateWhenGoodPencilUsed.
@Test
public void testWidgetsGoodStateWhenGoodPencilUsed() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesArc, updateIns).execute();
assertTrue(titledPane.isVisible());
}
Aggregations