Search in sources :

Example 1 with IDotProp

use of net.sf.latexdraw.models.interfaces.prop.IDotProp in project latexdraw by arnobl.

the class LDot method copy.

@Override
public void copy(final IShape sh) {
    super.copy(sh);
    if (sh != null && sh.isTypeOf(IDotProp.class)) {
        final IDotProp dot = (IDotProp) sh;
        setDotStyle(dot.getDotStyle());
        setDiametre(dot.getDiametre());
        setDotFillingCol(dot.getDotFillingCol());
    }
}
Also used : IDotProp(net.sf.latexdraw.models.interfaces.prop.IDotProp)

Example 2 with IDotProp

use of net.sf.latexdraw.models.interfaces.prop.IDotProp in project latexdraw by arnobl.

the class LPlot method copy.

@Override
public void copy(final IShape sh) {
    super.copy(sh);
    if (sh instanceof IPlotProp) {
        final IPlotProp plot = (IPlotProp) sh;
        style.set(plot.getPlotStyle());
        nbPoints.set(plot.getNbPlottedPoints());
        polar.set(plot.isPolar());
        dotStyle.set(plot.getDotStyle());
        dotDiametre.set(plot.getDiametre());
        minX.set(plot.getPlotMinX());
        maxX.set(plot.getPlotMaxX());
        xscale.set(plot.getXScale());
        yscale.set(plot.getYScale());
        setPlotEquation(plot.getPlotEquation());
    } else {
        if (sh instanceof IDotProp) {
            final IDotProp dot = (IDotProp) sh;
            dotStyle.set(dot.getDotStyle());
            dotDiametre.set(dot.getDiametre());
        }
    }
    parser = new PSFunctionParser(equation.get());
}
Also used : IDotProp(net.sf.latexdraw.models.interfaces.prop.IDotProp) PSFunctionParser(net.sf.latexdraw.parsers.ps.PSFunctionParser) IPlotProp(net.sf.latexdraw.models.interfaces.prop.IPlotProp)

Aggregations

IDotProp (net.sf.latexdraw.models.interfaces.prop.IDotProp)2 IPlotProp (net.sf.latexdraw.models.interfaces.prop.IPlotProp)1 PSFunctionParser (net.sf.latexdraw.parsers.ps.PSFunctionParser)1