/** * Background for this slide. */ public Background getBackground() { if(getFollowMasterBackground()) { return getMasterSheet().getBackground(); } return super.getBackground(); }
/** * Color scheme for this slide. */ public ColorSchemeAtom getColorScheme() { if(getFollowMasterScheme()){ return getMasterSheet().getColorScheme(); } return super.getColorScheme(); }
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); } }