From 3f5bd88bafa76fa3bea8306148bf2636421bc709 Mon Sep 17 00:00:00 2001 From: ribeaudc <ribeaudc> Date: Wed, 5 Dec 2007 07:34:19 +0000 Subject: [PATCH] [LMS-117] add: - Constructor with 'Geometry' as parameter. SVN: 2923 --- bds/source/java/ch/systemsx/cisd/bds/hcs/PlateGeometry.java | 5 +++++ bds/source/java/ch/systemsx/cisd/bds/hcs/WellGeometry.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/bds/source/java/ch/systemsx/cisd/bds/hcs/PlateGeometry.java b/bds/source/java/ch/systemsx/cisd/bds/hcs/PlateGeometry.java index 4ba42e6fad5..7168f9390f7 100644 --- a/bds/source/java/ch/systemsx/cisd/bds/hcs/PlateGeometry.java +++ b/bds/source/java/ch/systemsx/cisd/bds/hcs/PlateGeometry.java @@ -35,6 +35,11 @@ public final class PlateGeometry extends Geometry */ public static final String PLATE_GEOMETRY = "plate_geometry"; + public PlateGeometry(final Geometry geometry) + { + this(geometry.getRows(), geometry.getColumns()); + } + public PlateGeometry(final int rows, final int columns) { super(rows, columns); diff --git a/bds/source/java/ch/systemsx/cisd/bds/hcs/WellGeometry.java b/bds/source/java/ch/systemsx/cisd/bds/hcs/WellGeometry.java index fcc9959151a..017b1d6ea33 100644 --- a/bds/source/java/ch/systemsx/cisd/bds/hcs/WellGeometry.java +++ b/bds/source/java/ch/systemsx/cisd/bds/hcs/WellGeometry.java @@ -35,6 +35,11 @@ public final class WellGeometry extends Geometry */ public static final String WELL_GEOMETRY = "well_geometry"; + public WellGeometry(final Geometry geometry) + { + this(geometry.getRows(), geometry.getColumns()); + } + public WellGeometry(final int rows, final int columns) { super(rows, columns); -- GitLab