* In otherwords, the next hidden column.\r
* @param index int\r
*/\r
- public int getHiddenRegionBoundary(int alPos)\r
+ public int getHiddenBoundaryRight(int alPos)\r
{\r
if (hiddenColumns != null)\r
{\r
return alPos;\r
\r
}\r
+ /**\r
+ * THis method returns the rightmost limit of a\r
+ * region of an alignment with hidden columns.\r
+ * In otherwords, the next hidden column.\r
+ * @param index int\r
+ */\r
+ public int getHiddenBoundaryLeft(int alPos)\r
+ {\r
+ if (hiddenColumns != null)\r
+ {\r
+ int index = hiddenColumns.size()-1;\r
+ do\r
+ {\r
+ int[] region = (int[]) hiddenColumns.elementAt(index);\r
+ if(alPos > region[1])\r
+ return region[1];\r
+\r
+ index--;\r
+ }\r
+ while(index >-1);\r
+ }\r
+\r
+ return alPos;\r
+\r
+ }\r
\r
\r
public void hideColumns(int res, AlignViewport av)\r