git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-4090 JAL-1551 spotlessApply
[jalview.git]
/
src
/
jalview
/
datamodel
/
ContactMatrixI.java
diff --git
a/src/jalview/datamodel/ContactMatrixI.java
b/src/jalview/datamodel/ContactMatrixI.java
index
4261519
..
0d3bff6
100644
(file)
--- a/
src/jalview/datamodel/ContactMatrixI.java
+++ b/
src/jalview/datamodel/ContactMatrixI.java
@@
-30,7
+30,9
@@
public interface ContactMatrixI
String getType();
int getWidth();
String getType();
int getWidth();
+
int getHeight();
int getHeight();
+
public GroupSetI getGroupSet();
/// proxy methods to simplify use of the interface
public GroupSetI getGroupSet();
/// proxy methods to simplify use of the interface
@@
-126,11
+128,12
@@
public interface ContactMatrixI
void setGroupSet(GroupSet makeGroups);
void setGroupSet(GroupSet makeGroups);
- default void randomlyReColourGroups() {
+ default void randomlyReColourGroups()
+ {
if (hasGroupSet())
{
GroupSetI groups = getGroupSet();
if (hasGroupSet())
{
GroupSetI groups = getGroupSet();
- for (BitSet group:groups.getGroups())
+ for (BitSet group : groups.getGroups())
{
groups.setColorForGroup(group, ColorUtils.getARandomColor());
}
{
groups.setColorForGroup(group, ColorUtils.getARandomColor());
}
@@
-179,9
+182,10
@@
public interface ContactMatrixI
}
}
}
}
}
}
-
+
/**
/**
- * look up the colour for a column in the associated contact matrix
+ * look up the colour for a column in the associated contact matrix
+ *
* @return Color.white or assigned colour
*/
default Color getGroupColorForPosition(int column)
* @return Color.white or assigned colour
*/
default Color getGroupColorForPosition(int column)
@@
-189,7
+193,7
@@
public interface ContactMatrixI
if (hasGroupSet())
{
GroupSetI groups = getGroupSet();
if (hasGroupSet())
{
GroupSetI groups = getGroupSet();
- for (BitSet gp:groups.getGroups())
+ for (BitSet gp : groups.getGroups())
{
if (gp.get(column))
{
{
if (gp.get(column))
{
@@
-202,14
+206,14
@@
public interface ContactMatrixI
/**
* direct access to column and row position of matrix
/**
* direct access to column and row position of matrix
-
- * Implementations are allowed to throw
- * RunTimeExceptions if _column/i are out of bounds
+ *
+ * Implementations are allowed to throw RunTimeExceptions if _column/i are out
+ * of bounds
*
* @param column
* @param row
* @return
*/
double getElementAt(int column, int row);
*
* @param column
* @param row
* @return
*/
double getElementAt(int column, int row);
-
+
}
}