From: <tal...@us...> - 2012-06-29 19:59:18
|
Revision: 12226 http://genoviz.svn.sourceforge.net/genoviz/?rev=12226&view=rev Author: tallpapab Date: 2012-06-29 19:59:12 +0000 (Fri, 29 Jun 2012) Log Message: ----------- Skip over graph tracks. Jira 340. Modified Paths: -------------- trunk/core/igb/src/com/affymetrix/igb/action/ChangeExpandMaxAllAction.java Modified: trunk/core/igb/src/com/affymetrix/igb/action/ChangeExpandMaxAllAction.java =================================================================== --- trunk/core/igb/src/com/affymetrix/igb/action/ChangeExpandMaxAllAction.java 2012-06-29 19:58:32 UTC (rev 12225) +++ trunk/core/igb/src/com/affymetrix/igb/action/ChangeExpandMaxAllAction.java 2012-06-29 19:59:12 UTC (rev 12226) @@ -1,14 +1,22 @@ package com.affymetrix.igb.action; +import com.affymetrix.genometryImpl.event.GenericActionHolder; +import static com.affymetrix.igb.IGBConstants.BUNDLE; +import com.affymetrix.igb.shared.TierGlyph; +import com.affymetrix.igb.shared.TrackstylePropertyMonitor; +import com.affymetrix.igb.tiers.TierLabelGlyph; +import com.affymetrix.igb.tiers.TierLabelManager; import java.awt.event.ActionEvent; +import java.util.ArrayList; import java.util.List; -import com.affymetrix.genometryImpl.event.GenericActionHolder; -import com.affymetrix.igb.tiers.TierLabelGlyph; -import static com.affymetrix.igb.IGBConstants.BUNDLE; -import com.affymetrix.igb.shared.TrackstylePropertyMonitor; - +/** + * Changes the maximum stack depth (max expand) of all the tiers in the map, + * not just those selected. + * It does not affect graph tracks. + * @author blossome + */ public class ChangeExpandMaxAllAction extends ChangeExpandMaxActionA { private static final long serialVersionUID = 1L; private static final ChangeExpandMaxAllAction ACTION = new ChangeExpandMaxAllAction(); @@ -27,7 +35,20 @@ @Override protected List<TierLabelGlyph> getTiers() { - return getTierManager().getAllTierLabels(); + List<TierLabelGlyph> answer = new ArrayList<TierLabelGlyph>(); + TierLabelManager m = getTierManager(); + List<TierLabelGlyph> allTiers = m.getAllTierLabels(); + if (null == allTiers) { + return answer; + } + for (TierLabelGlyph t : allTiers) { + TierGlyph tg = t.getReferenceTier(); + if (tg.getAnnotStyle().isGraphTier()) { + continue; + } + answer.add(t); + } + return answer; } @Override This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |