use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilFillingStyle method testWidgetsGoodStateWhenGoodPencilUsed.
@Test
public void testWidgetsGoodStateWhenGoodPencilUsed() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesRec, updateIns).execute();
assertTrue(titledPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilFillingStyle method testPickGradEndColourPencil.
@Test
public void testPickGradEndColourPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesRec, selectGradStyle, updateIns).execute();
Color col = gradEndColButton.getValue();
pickgradEndCol.execute();
assertEquals(gradEndColButton.getValue(), pencil.createShapeInstance().getGradColEnd().toJFX());
assertNotEquals(col, gradEndColButton.getValue());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilGridStyle method testPickLineColourPencil.
@Test
public void testPickLineColourPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesGrid, updateIns).execute();
Color col = colourSubGrid.getValue();
pickcolourSubGrid.execute();
assertEquals(colourSubGrid.getValue(), ((IGrid) pencil.createShapeInstance()).getSubGridColour().toJFX());
assertNotEquals(col, colourSubGrid.getValue());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilGridStyle method testWidgetsGoodStateWhenGoodPencilUsed.
@Test
public void testWidgetsGoodStateWhenGoodPencilUsed() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesGrid, updateIns).execute();
assertTrue(mainPane.isVisible());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilLineStyle method testWidgetsGoodStateWhenNotThicknessablePencil.
@Test
public void testWidgetsGoodStateWhenNotThicknessablePencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesText, updateIns).execute();
assertFalse(thicknessField.isVisible());
assertTrue(lineColButton.isVisible());
assertFalse(lineColButton.isDisabled());
assertFalse(lineCB.isVisible());
assertFalse(bordersPosCB.isVisible());
assertFalse(frameArcField.isVisible());
assertFalse(showPoints.isVisible());
}
Aggregations