for(Shape sh : master.getShapes()){ if(sh instanceof TextShape){ if(MasterSheet.isPlaceholder(sh)) {
public void draw(Graphics2D graphics){ MasterSheet master = getMasterSheet(); Background bg = getBackground(); if(bg != null)bg.draw(graphics); if(getFollowMasterObjects()){ Shape[] sh = master.getShapes(); for (int i = 0; i < sh.length; i++) { if(MasterSheet.isPlaceholder(sh[i])) continue; sh[i].draw(graphics); } } Shape[] sh = getShapes(); for (int i = 0; i < sh.length; i++) { sh[i].draw(graphics); } }