String getType();
int getWidth();
+
int getHeight();
+
public GroupSetI getGroupSet();
/// proxy methods to simplify use of the interface
void setGroupSet(GroupSet makeGroups);
- default void randomlyReColourGroups() {
+ default void randomlyReColourGroups()
+ {
if (hasGroupSet())
{
GroupSetI groups = getGroupSet();
- for (BitSet group:groups.getGroups())
+ for (BitSet group : groups.getGroups())
{
groups.setColorForGroup(group, ColorUtils.getARandomColor());
}
}
}
}
-
+
/**
- * 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)
if (hasGroupSet())
{
GroupSetI groups = getGroupSet();
- for (BitSet gp:groups.getGroups())
+ for (BitSet gp : groups.getGroups())
{
if (gp.get(column))
{
/**
* 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);
-
+
}