+ private BitSet hiddenBitSet;
+
+ /**
+ * Returns a BitSet with a set bit for each hidden column (0, 1, ...). This is
+ * valid at the time of calling, but will not reflect any changes made
+ * afterwards.
+ *
+ * @return
+ */
+ public BitSet getBitset()
+ {
+ if (hiddenBitSet == null)
+ {
+ hiddenBitSet = new BitSet();
+ for (int[] range : hiddenColumns)
+ {
+ hiddenBitSet.set(range[0], range[1] + 1);
+ }
+ }
+ return hiddenBitSet;
+ }