X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FContactMatrixI.java;h=1d7391b617a009807695ac995693130c1c20e6dd;hb=4b7d3640209c4434d569c746672cf9eed4250ace;hp=3510ed135f9809b4dd8c5f2d060fffb2c6926f3a;hpb=b3fb6325a8bc315c5c938faf10ffd2e73d965f16;p=jalview.git diff --git a/src/jalview/datamodel/ContactMatrixI.java b/src/jalview/datamodel/ContactMatrixI.java index 3510ed1..1d7391b 100644 --- a/src/jalview/datamodel/ContactMatrixI.java +++ b/src/jalview/datamodel/ContactMatrixI.java @@ -33,41 +33,51 @@ public interface ContactMatrixI int getWidth(); int getHeight(); - - default boolean hasGroups() { + + default boolean hasGroups() + { return false; } - default BitSet getGroupsFor(int column) { - BitSet colbitset = new BitSet(); + + default BitSet getGroupsFor(int column) + { + BitSet colbitset = new BitSet(); colbitset.set(column); return colbitset; } - default List getGroups() { + default List getGroups() + { return Arrays.asList(); } - default boolean hasTree() { + default boolean hasTree() + { return false; } /** * Newick representation of clustered matrix + * * @return null unless hasTree is true */ - default String getNewick() { + default String getNewick() + { return null; } - default String getTreeMethod() { + default String getTreeMethod() + { return null; } - default boolean hasCutHeight() { + default boolean hasCutHeight() + { return false; } - default double getCutHeight() { + default double getCutHeight() + { return 0; } @@ -75,5 +85,8 @@ public interface ContactMatrixI void setColorForGroup(BitSet bs, Color color); - default Color getColourForGroup(BitSet bs) { return Color.white;}; + default Color getColourForGroup(BitSet bs) + { + return Color.white; + }; }