use of net.sf.latexdraw.models.interfaces.shape.PlotStyle in project latexdraw by arnobl.
the class TestPencilPlotStyle method testSelectCCURVEStylePencil.
@Test
public void testSelectCCURVEStylePencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesPlot, updateIns).execute();
PlotStyle style = plotStyleCB.getSelectionModel().getSelectedItem();
selectplotStyleCB.execute(PlotStyle.CCURVE);
PlotStyle newStyle = plotStyleCB.getSelectionModel().getSelectedItem();
assertEquals(newStyle, ((IPlot) pencil.createShapeInstance()).getPlotStyle());
assertNotEquals(style, newStyle);
}
use of net.sf.latexdraw.models.interfaces.shape.PlotStyle in project latexdraw by arnobl.
the class TestPencilPlotStyle method testSelectPOLYGONStylePencil.
@Test
public void testSelectPOLYGONStylePencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesPlot, updateIns).execute();
PlotStyle style = plotStyleCB.getSelectionModel().getSelectedItem();
selectplotStyleCB.execute(PlotStyle.POLYGON);
PlotStyle newStyle = plotStyleCB.getSelectionModel().getSelectedItem();
assertEquals(newStyle, ((IPlot) pencil.createShapeInstance()).getPlotStyle());
assertNotEquals(style, newStyle);
}
Aggregations