Search in sources :

Example 96 with CompositeGUIVoidCommand

use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.

the class TestHandDotStyle method testSelectFillingNotEnabledWhenNonFillableStyleSelection.

@Test
public void testSelectFillingNotEnabledWhenNonFillableStyleSelection() {
    new CompositeGUIVoidCommand(activateHand, selectionAddDot, updateIns).execute();
    setDotStyle.execute(DotStyle.ASTERISK);
    assertTrue(fillingB.isDisabled());
}
Also used : CompositeGUIVoidCommand(net.sf.latexdraw.instruments.CompositeGUIVoidCommand) Test(org.junit.Test)

Example 97 with CompositeGUIVoidCommand

use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.

the class TestHandDotStyle method testControllerDeactivatedWhenSelectionEmpty.

@Test
public void testControllerDeactivatedWhenSelectionEmpty() {
    new CompositeGUIVoidCommand(activateHand, updateIns).execute();
    assertFalse(ins.isActivated());
    assertFalse(titledPane.isVisible());
}
Also used : CompositeGUIVoidCommand(net.sf.latexdraw.instruments.CompositeGUIVoidCommand) Test(org.junit.Test)

Example 98 with CompositeGUIVoidCommand

use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.

the class TestHandDoubleLineStyle method testNotDbledWidgetsNotEnabledHand.

@Test
public void testNotDbledWidgetsNotEnabledHand() {
    new CompositeGUIVoidCommand(activateHand, selectionAddRec, updateIns).execute();
    assertFalse(dbleBoundCB.isDisabled());
    assertTrue(dbleBoundColB.isDisabled());
    assertTrue(dbleSepField.isDisabled());
}
Also used : CompositeGUIVoidCommand(net.sf.latexdraw.instruments.CompositeGUIVoidCommand) Test(org.junit.Test)

Example 99 with CompositeGUIVoidCommand

use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.

the class TestHandDoubleLineStyle method testControllerDeactivatedWhenSelectionNotDot.

@Test
public void testControllerDeactivatedWhenSelectionNotDot() {
    new CompositeGUIVoidCommand(selectionAddAxes, activateHand, updateIns).execute();
    assertFalse(ins.isActivated());
    assertFalse(titledPane.isVisible());
}
Also used : CompositeGUIVoidCommand(net.sf.latexdraw.instruments.CompositeGUIVoidCommand) Test(org.junit.Test)

Example 100 with CompositeGUIVoidCommand

use of net.sf.latexdraw.instruments.CompositeGUIVoidCommand in project latexdraw by arnobl.

the class TestHandDoubleLineStyle method testControllerActivatedWhenSelectionDot.

@Test
public void testControllerActivatedWhenSelectionDot() {
    new CompositeGUIVoidCommand(selectionAddRec, activateHand, updateIns).execute();
    assertTrue(ins.isActivated());
    assertTrue(titledPane.isVisible());
}
Also used : CompositeGUIVoidCommand(net.sf.latexdraw.instruments.CompositeGUIVoidCommand) Test(org.junit.Test)

Aggregations

CompositeGUIVoidCommand (net.sf.latexdraw.instruments.CompositeGUIVoidCommand)218 Test (org.junit.Test)218 ArrowStyle (net.sf.latexdraw.models.interfaces.shape.ArrowStyle)34 IArrowableSingleShape (net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape)34 Color (javafx.scene.paint.Color)20 PlotStyle (net.sf.latexdraw.models.interfaces.shape.PlotStyle)12 IGrid (net.sf.latexdraw.models.interfaces.shape.IGrid)4 PlottingStyle (net.sf.latexdraw.models.interfaces.shape.PlottingStyle)4 AxesStyle (net.sf.latexdraw.models.interfaces.shape.AxesStyle)2 BorderPos (net.sf.latexdraw.models.interfaces.shape.BorderPos)2 FillingStyle (net.sf.latexdraw.models.interfaces.shape.FillingStyle)2 IDot (net.sf.latexdraw.models.interfaces.shape.IDot)2 LineStyle (net.sf.latexdraw.models.interfaces.shape.LineStyle)2 TicksStyle (net.sf.latexdraw.models.interfaces.shape.TicksStyle)2 DotStyle (net.sf.latexdraw.models.interfaces.shape.DotStyle)1