use of net.sf.latexdraw.models.interfaces.shape.ICircle in project latexdraw by arnobl.
the class PSTLatexdrawListener method exitPsqdisk.
@Override
public void exitPsqdisk(final net.sf.latexdraw.parsers.pst.PSTParser.PsqdiskContext ctx) {
final ICircle circle = ShapeFactory.INST.createCircle();
setCircle(circle, ctx.pstctx.coordToAdjustedPoint(ctx.coord()), ctx.pstctx.valDimtoDouble(ctx.bracketValueDim().valueDim()) * PSTContext.PPC, ctx.pstctx, true);
shapes.peek().addShape(circle);
}
use of net.sf.latexdraw.models.interfaces.shape.ICircle in project latexdraw by arnobl.
the class PSTLatexdrawListener method exitPscircle.
@Override
public void exitPscircle(final net.sf.latexdraw.parsers.pst.PSTParser.PscircleContext ctx) {
final ICircle circle = ShapeFactory.INST.createCircle();
setCircle(circle, ctx.pstctx.coordToAdjustedPoint(ctx.centre), ctx.pstctx.valDimtoDouble(ctx.bracketValueDim().valueDim()) * PSTContext.PPC, ctx.pstctx, ctx.pstctx.starredCmd(ctx.cmd));
shapes.peek().addShape(circle);
}
use of net.sf.latexdraw.models.interfaces.shape.ICircle in project latexdraw by arnobl.
the class TestParsingQdisk method testNoDbleBord.
@Test
public void testNoDbleBord() {
parser("\\psset{doubleline=true}\\qdisk(35pt,20pt){10pt}");
ICircle cir = getShapeAt(0);
assertFalse(cir.hasDbleBord());
}
use of net.sf.latexdraw.models.interfaces.shape.ICircle in project latexdraw by arnobl.
the class TestParsingQdisk method testLineColourIsFillColour.
@Test
public void testLineColourIsFillColour() {
parser("\\psset{linecolor=green}\\qdisk(35pt,20pt){10pt}");
ICircle cir = getShapeAt(0);
assertEquals(DviPsColors.GREEN, cir.getFillingCol());
assertEquals(DviPsColors.GREEN, cir.getLineColour());
}
use of net.sf.latexdraw.models.interfaces.shape.ICircle in project latexdraw by arnobl.
the class TestParsingQdisk method testNoShadow.
@Test
public void testNoShadow() {
parser("\\psset{shadow=true}\\qdisk(35pt,20pt){10pt}");
ICircle cir = getShapeAt(0);
assertFalse(cir.hasShadow());
}
Aggregations