Skip to content
Snippets Groups Projects
Commit 2ea6f7ad authored by tpylak's avatar tpylak
Browse files

minor screening: convenience method

SVN: 17330
parent 437318d2
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,6 @@ import ch.systemsx.cisd.common.geometry.Point;
*
* @author Christian Ribeaud
*/
// REFACTOR 2009-12-07, Tomasz Pylak: change (y,x) -> (row, col)
public final class Location
{
static final String NOT_POSITIVE = "Given coordinate '%s' must be > 0 (%d <= 0).";
......@@ -47,6 +46,11 @@ public final class Location
this.y = y;
}
public static final Location tryCreateLocationFromRowAndColumn(final int row, final int column)
{
return new Location(column, row);
}
/**
* For given <var>position</var> in given <code>geometry</code> returns corresponding
* <code>Location</code>. Position should be greater than 0.<br>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment