JAL-2759 improvements to speed up synchronisation; caching of size
[jalview.git] / src / jalview / datamodel / HiddenCursorPosition.java
diff --git a/src/jalview/datamodel/HiddenCursorPosition.java b/src/jalview/datamodel/HiddenCursorPosition.java
new file mode 100644 (file)
index 0000000..606a7c5
--- /dev/null
@@ -0,0 +1,34 @@
+package jalview.datamodel;
+
+public class HiddenCursorPosition
+{
+  // index of last visited region
+  private int regionIndex;
+
+  // number of hidden columns before last visited region
+  private int hiddenSoFar;
+  
+  private int numColumns;
+
+  public HiddenCursorPosition(int index, int hiddencount, int colscount)
+  {
+    regionIndex = index;
+    hiddenSoFar = hiddencount;
+    numColumns = colscount;
+  }
+
+  public int getRegionIndex()
+  {
+    return regionIndex;
+  }
+
+  public int getHiddenSoFar()
+  {
+    return hiddenSoFar;
+  }
+  
+  public int getNumColumns()
+  {
+    return numColumns;
+  }
+}