Search in sources :

Example 6 with PlottingStyle

use of net.sf.latexdraw.models.interfaces.shape.PlottingStyle in project latexdraw by arnobl.

the class TestHandAxeStyle method testSelectShowLabelsSelection.

@Test
public void testSelectShowLabelsSelection() {
    new CompositeGUIVoidCommand(activateHand, selectionAddAxes, selectionAddRec, selectionAddAxes, updateIns).execute();
    PlottingStyle style = showLabels.getSelectionModel().getSelectedItem();
    selectPlotLabel.execute();
    PlottingStyle newStyle = showLabels.getSelectionModel().getSelectedItem();
    assertEquals(newStyle, ((IAxesProp) drawing.getSelection().getShapeAt(0)).getLabelsDisplayed());
    assertEquals(newStyle, ((IAxesProp) drawing.getSelection().getShapeAt(2)).getLabelsDisplayed());
    assertNotEquals(style, newStyle);
}
Also used : CompositeGUIVoidCommand(net.sf.latexdraw.instruments.CompositeGUIVoidCommand) PlottingStyle(net.sf.latexdraw.models.interfaces.shape.PlottingStyle) Test(org.junit.Test)

Aggregations

PlottingStyle (net.sf.latexdraw.models.interfaces.shape.PlottingStyle)6 CompositeGUIVoidCommand (net.sf.latexdraw.instruments.CompositeGUIVoidCommand)4 Test (org.junit.Test)4 IAxes (net.sf.latexdraw.models.interfaces.shape.IAxes)2 TicksStyle (net.sf.latexdraw.models.interfaces.shape.TicksStyle)2 Font (javafx.scene.text.Font)1 Text (javafx.scene.text.Text)1