use of net.sf.latexdraw.models.interfaces.prop.IPlotProp 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());
}
Aggregations