}
//clef
for (int s = 0; s < score.getAllStaff().size(); s++) {
Iterator<ASTClef> clefs = score.getAllClef().get(s).iterator();
while (clefs.hasNext()) {
ASTClef cl = clefs.next();
Point pt = getPos(cl, s + 1);
if (cl.getlayoutObject() != null)//default clef
{
cl.getlayoutObject().draw(pt.x, pt.y, gr);
}
}
}
//key
for (int s = 0; s < score.getAllKeys().size(); s++) {
Iterator<ASTKey> keys = score.getAllKeys().get(s).iterator();
while (keys.hasNext()) {
ASTKey cl = keys.next();
Point pt = getPos(cl, s + 1);
cl.getlayoutObject().draw(pt.x, pt.y, gr);
}
}
//lineBegin
for (int s = 0; s < allLineBegins.size(); s++) {
ASTLineBegin cl = allLineBegins.get(s);
Point pt = getPos(cl);//, cl.getParentContext().getContext(ASTContext.TYPE_STAFF)s + 1);
cl.getlayoutObject().draw(pt.x, pt.y, gr);
}
}