use of net.sf.latexdraw.model.api.shape.Axes in project latexdraw by arnobl.
the class TestParsingPsaxes method testTickStyle.
@ParameterizedTest
@EnumSource(value = PlottingStyle.class)
public void testTickStyle(final PlottingStyle style) {
parser("\\psaxes[ticks=" + style.getPSTToken() + "](0,0)(0,0)(2,2)");
final Axes axes = getShapeAt(0);
assertEquals(style, axes.getTicksDisplayed());
}
use of net.sf.latexdraw.model.api.shape.Axes in project latexdraw by arnobl.
the class TestParsingPsaxes method testTickStyle.
@ParameterizedTest
@EnumSource(value = TicksStyle.class)
public void testTickStyle(final TicksStyle style) {
parser("\\psaxes[tickstyle=" + style.getPSTToken() + "](0,0)(0,0)(2,2)");
final Axes axes = getShapeAt(0);
assertEquals(style, axes.getTicksStyle());
}
use of net.sf.latexdraw.model.api.shape.Axes in project latexdraw by arnobl.
the class TestParsingPsaxes method testParamdy.
@ParameterizedTest
@ValueSource(doubles = { 2d, 3.5 })
public void testParamdy(final double dy) {
parser("\\psaxes[dy=" + dy + " cm](0,0)(0,0)(2,2)");
final Axes axes = getShapeAt(0);
assertEquals(dy, axes.getDistLabelsY(), 0.00001);
}
use of net.sf.latexdraw.model.api.shape.Axes in project latexdraw by arnobl.
the class TestParsingPsaxes method testShowOrigin.
@Test
public void testShowOrigin() {
parser("\\psaxes[showorigin=true](0,0)(0,0)(2,2)");
final Axes axes = getShapeAt(0);
assertTrue(axes.isShowOrigin());
}
use of net.sf.latexdraw.model.api.shape.Axes in project latexdraw by arnobl.
the class TestParsingPsaxes method testParamdx.
@ParameterizedTest
@ValueSource(doubles = { 2d, 3.5 })
public void testParamdx(final double dx) {
parser("\\psaxes[dx=" + dx + " cm](0,0)(0,0)(2,2)");
final Axes axes = getShapeAt(0);
assertEquals(dx, axes.getDistLabelsX(), 0.00001);
}
Aggregations