+ HashMap<BitSet,Color> colorMap = new HashMap<>();
+ @Override
+ public Color getColourForGroup(BitSet bs)
+ {
+ if (bs==null) {
+ return Color.white;
+ }
+ Color groupCol=colorMap.get(bs);
+ if (groupCol==null)
+ {
+ return Color.white;
+ }
+ return groupCol;
+ }
+ @Override
+ public void setColorForGroup(BitSet bs,Color color)
+ {
+ colorMap.put(bs,color);
+ }