use of net.sf.latexdraw.model.api.shape.ArrowableShape in project latexdraw by arnobl.
the class ArrowableShapeBase method copy.
@Override
default void copy(final Shape sh) {
if (sh instanceof ArrowableShape) {
final ArrowableShape arr = (ArrowableShape) sh;
int i = 0;
final int nbArrowsArr = arr.getNbArrows();
final int nbArrows = getNbArrows();
while (i < nbArrows && i < nbArrowsArr) {
setArrowStyle(arr.getArrowStyle(i), i);
i++;
}
setArrowInset(arr.getArrowInset());
setArrowLength(arr.getArrowLength());
setArrowSizeDim(arr.getArrowSizeDim());
setArrowSizeNum(arr.getArrowSizeNum());
setDotSizeDim(arr.getDotSizeDim());
setDotSizeNum(arr.getDotSizeNum());
setBracketNum(arr.getBracketNum());
setRBracketNum(arr.getRBracketNum());
setTBarSizeDim(arr.getTBarSizeDim());
setTBarSizeNum(arr.getTBarSizeNum());
}
}
Aggregations