use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilDotStyle method testSelectFillingEnabledWhenFillableStylePencil.
@Test
public void testSelectFillingEnabledWhenFillableStylePencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesDot, updateIns, setDotStyleFillable).execute();
assertFalse(fillingB.isDisabled());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilDoubleLineStyle method testNotDbledWidgetsNotEnabledPencil.
@Test
public void testNotDbledWidgetsNotEnabledPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesRec, updateIns).execute();
assertFalse(dbleBoundCB.isDisabled());
assertTrue(dbleBoundColB.isDisabled());
assertTrue(dbleSepField.isDisabled());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilDoubleLineStyle 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 TestPencilDoubleLineStyle method testPickDbleColourPencil.
@Test
public void testPickDbleColourPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesRec, selectdbleLine, updateIns).execute();
Color col = dbleBoundColB.getValue();
pickDbleColour.execute();
assertEquals(dbleBoundColB.getValue(), pencil.createShapeInstance().getDbleBordCol().toJFX());
assertNotEquals(col, dbleBoundColB.getValue());
}
use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.
the class TestPencilFillingStyle method testSelectFillingPlainPencil.
@Test
public void testSelectFillingPlainPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesRec, updateIns).execute();
FillingStyle style = fillStyleCB.getSelectionModel().getSelectedItem();
selectStyle.execute(FillingStyle.PLAIN);
FillingStyle newStyle = fillStyleCB.getSelectionModel().getSelectedItem();
assertEquals(newStyle, pencil.createShapeInstance().getFillingStyle());
assertNotEquals(style, newStyle);
}
Aggregations