public static void dupDrawingViews(DrawingView[] dvsSrc
, HashMap<String,String> mName , HashMap<String,Figure> mFigure
, DrawingView[] dvsDest) {
for (int i=0 ; i<dvsSrc.length ; i++) {
FigureEnumeration feSrc = dvsSrc[i].getDrawing().getFigures();
while (feSrc.hasMoreElements()) {
Figure fSrc = feSrc.nextFigure();
if (fSrc instanceof FeatureFigure) {
dupFeatureFigure((FeatureFigure)fSrc , mName , mFigure , dvsDest[i]);
}
}
feSrc = dvsSrc[i].getDrawing().getFigures();
while (feSrc.hasMoreElements()) {
Figure fSrc = feSrc.nextFigure();
if (fSrc instanceof ConstraintFigure) {
dupConstraintFigure((ConstraintFigure)fSrc , mName , mFigure , dvsDest[i]);
}
}
feSrc = dvsSrc[i].getDrawing().getFigures();
while (feSrc.hasMoreElements()) {
Figure fSrc = feSrc.nextFigure();
if (fSrc instanceof ConnectionFigure) {
dupConnectionFigure((ConnectionFigure)fSrc , mName , mFigure , dvsDest[i]);
}
}
}