use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandGridStyle method testControllerDeactivatedWhenSelectionNotGrid.
@Test
public void testControllerDeactivatedWhenSelectionNotGrid() {
new CompositeGUIVoidCommand(selectionAddRec, activateHand, updateIns).execute();
assertFalse(ins.isActivated());
assertFalse(mainPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandGridStyle method testSelectlabelsXInvertedCBHand.
@Test
public void testSelectlabelsXInvertedCBHand() {
new CompositeGUIVoidCommand(activateHand, selectionAddDot, selectionAddGrid, selectionAddGrid, updateIns).execute();
final boolean sel = labelsXInvertedCB.isSelected();
clicklabelsXInvertedCB.execute();
assertEquals(sel, ((IGrid) drawing.getSelection().getShapeAt(1)).isYLabelWest());
assertEquals(sel, ((IGrid) drawing.getSelection().getShapeAt(2)).isYLabelWest());
assertNotEquals(sel, labelsXInvertedCB.isSelected());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandLineStyle method testCheckCloseOKSelection.
@Test
public void testCheckCloseOKSelection() {
new CompositeGUIVoidCommand(activateHand, selectionAddBezier, selectionAddFreehand, updateIns).execute();
assertEquals(((IClosableProp) drawing.getSelection().getShapeAt(0)).isOpened(), opened.isSelected());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandLineStyle method testCheckShowPointSelection.
@Test
public void testCheckShowPointSelection() {
new CompositeGUIVoidCommand(activateHand, selectionAddBezier, selectionAddBezier, updateIns).execute();
final boolean sel = showPoints.isSelected();
checkShowPts.execute();
assertEquals(!sel, drawing.getSelection().getShapeAt(0).isShowPts());
assertEquals(!sel, drawing.getSelection().getShapeAt(1).isShowPts());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandLineStyle method testOpenVisibleIfBezierAndActivated.
@Test
public void testOpenVisibleIfBezierAndActivated() {
new CompositeGUIVoidCommand(selectionAddBezier, activateHand, updateIns).execute();
assertTrue(opened.isVisible());
}
Aggregations