use of net.sf.latexdraw.model.api.shape.Shape in project latexdraw by arnobl.
the class TestParsingShape method testParamGradend.
@ParameterizedTest
@MethodSource(value = "cmds")
void testParamGradend(final Tuple<String, String> cmd) {
parser(cmd.a + "[fillstyle=gradient, gradend=blue]" + cmd.b);
final Shape sh = getShapeAt(0);
assumeTrue(sh.isInteriorStylable());
assertEquals(DviPsColors.BLUE, sh.getGradColEnd());
}
use of net.sf.latexdraw.model.api.shape.Shape in project latexdraw by arnobl.
the class TestStarredCommand method testShadow.
@ParameterizedTest
@MethodSource("cmds")
void testShadow(final String cmd) {
parser(cmd);
final Shape sh = getShapeAt(0);
assumeTrue(sh.isShadowable());
assertFalse(sh.hasShadow());
}
use of net.sf.latexdraw.model.api.shape.Shape in project latexdraw by arnobl.
the class TestStarredCommand method testFillStyle.
@ParameterizedTest
@MethodSource("cmds")
void testFillStyle(final String cmd) {
parser(cmd);
final Shape sh = getShapeAt(0);
assumeTrue(sh.isInteriorStylable());
assertEquals(FillingStyle.PLAIN, sh.getFillingStyle());
}
use of net.sf.latexdraw.model.api.shape.Shape in project latexdraw by arnobl.
the class TestStarredCommand method testDbleBord.
@ParameterizedTest
@MethodSource("cmds")
void testDbleBord(final String cmd) {
parser(cmd);
final Shape sh = getShapeAt(0);
assumeTrue(sh.isDbleBorderable());
assertFalse(sh.hasDbleBord());
}
use of net.sf.latexdraw.model.api.shape.Shape in project latexdraw by arnobl.
the class TestStarredCommand method testFilled.
@ParameterizedTest
@MethodSource("cmds")
void testFilled(final String cmd) {
parser(cmd);
final Shape sh = getShapeAt(0);
assumeTrue(sh.isFillable());
assertTrue(sh.isFilled());
}
Aggregations