use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandAxeStyle method testControllerActivatedWhenSelectionAxes.
@Test
public void testControllerActivatedWhenSelectionAxes() {
new CompositeGUIVoidCommand(selectionAddAxes, activateHand, updateIns).execute();
assertTrue(ins.isActivated());
assertTrue(mainPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandAxeStyle method testSelectShowTicksSelection.
@Test
public void testSelectShowTicksSelection() {
new CompositeGUIVoidCommand(activateHand, selectionAddAxes, selectionAddRec, selectionAddAxes, updateIns).execute();
PlottingStyle style = showTicks.getSelectionModel().getSelectedItem();
selectPlotTicks.execute();
PlottingStyle newStyle = showTicks.getSelectionModel().getSelectedItem();
assertEquals(newStyle, ((IAxesProp) drawing.getSelection().getShapeAt(0)).getTicksDisplayed());
assertEquals(newStyle, ((IAxesProp) drawing.getSelection().getShapeAt(2)).getTicksDisplayed());
assertNotEquals(style, newStyle);
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandAxeStyle method testCheckShowOriginSelection.
@Test
public void testCheckShowOriginSelection() {
new CompositeGUIVoidCommand(activateHand, selectionAddAxes, selectionAddRec, selectionAddAxes, updateIns).execute();
boolean sel = showOrigin.isSelected();
selectShowOrigin.execute();
assertEquals(!sel, ((IAxesProp) drawing.getSelection().getShapeAt(0)).isShowOrigin());
assertEquals(!sel, ((IAxesProp) drawing.getSelection().getShapeAt(2)).isShowOrigin());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandAxeStyle method testControllerDeactivatedWhenSelectionEmpty.
@Test
public void testControllerDeactivatedWhenSelectionEmpty() {
new CompositeGUIVoidCommand(activateHand, updateIns).execute();
assertFalse(ins.isActivated());
assertFalse(mainPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandCoordDimStyle method testControllerActivatedWhenSelection.
@Test
public void testControllerActivatedWhenSelection() {
new CompositeGUIVoidCommand(selectionAddArc, activateHand, updateIns).execute();
assertTrue(ins.isActivated());
assertTrue(tlxS.isVisible());
assertTrue(tlyS.isVisible());
}
Aggregations