use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandFillingStyle method testPickGradStartColourHand.
@Test
public void testPickGradStartColourHand() {
new CompositeGUIVoidCommand(activateHand, selectionAddDot, selectionAddRec, selectionAddBezier, selectGradStyle, updateIns).execute();
Color col = gradStartColButton.getValue();
pickgradStartCol.execute();
assertEquals(gradStartColButton.getValue(), drawing.getSelection().getShapeAt(1).getGradColStart().toJFX());
assertEquals(gradStartColButton.getValue(), drawing.getSelection().getShapeAt(2).getGradColStart().toJFX());
assertNotEquals(col, gradStartColButton.getValue());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandFillingStyle method testPickFillingColourHand.
@Test
public void testPickFillingColourHand() {
new CompositeGUIVoidCommand(activateHand, selectionAddDot, selectionAddRec, selectionAddBezier, selectPlainStyle, updateIns).execute();
Color col = fillColButton.getValue();
pickfillCol.execute();
assertEquals(fillColButton.getValue(), drawing.getSelection().getShapeAt(1).getFillingCol().toJFX());
assertEquals(fillColButton.getValue(), drawing.getSelection().getShapeAt(2).getFillingCol().toJFX());
assertNotEquals(col, fillColButton.getValue());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandGridStyle method testSelectlabelsYInvertedCBHand.
@Test
public void testSelectlabelsYInvertedCBHand() {
new CompositeGUIVoidCommand(activateHand, selectionAddDot, selectionAddGrid, selectionAddGrid, updateIns).execute();
final boolean sel = labelsYInvertedCB.isSelected();
clicklabelsYInvertedCB.execute();
assertEquals(sel, ((IGrid) drawing.getSelection().getShapeAt(1)).isXLabelSouth());
assertEquals(sel, ((IGrid) drawing.getSelection().getShapeAt(2)).isXLabelSouth());
assertNotEquals(sel, labelsYInvertedCB.isSelected());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandGridStyle method testPickLineColourHand.
@Test
public void testPickLineColourHand() {
new CompositeGUIVoidCommand(activateHand, selectionAddDot, selectionAddGrid, selectionAddGrid, updateIns).execute();
Color col = colourSubGrid.getValue();
pickcolourSubGrid.execute();
assertEquals(colourSubGrid.getValue(), ((IGrid) drawing.getSelection().getShapeAt(1)).getSubGridColour().toJFX());
assertEquals(colourSubGrid.getValue(), ((IGrid) drawing.getSelection().getShapeAt(2)).getSubGridColour().toJFX());
assertNotEquals(col, colourSubGrid.getValue());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestHandGridStyle method testControllerActivatedWhenSelectionGrid.
@Test
public void testControllerActivatedWhenSelectionGrid() {
new CompositeGUIVoidCommand(selectionAddGrid, activateHand, updateIns).execute();
assertTrue(ins.isActivated());
assertTrue(mainPane.isVisible());
}
Aggregations