From 7f792ede9a61334e0f48d9d0dd0251986467b900 Mon Sep 17 00:00:00 2001 From: tpylak <tpylak> Date: Mon, 6 Dec 2010 22:35:46 +0000 Subject: [PATCH] minor SVN: 19021 --- .../detailviewers/heatmaps/PlateLayouter.java | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/heatmaps/PlateLayouter.java b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/heatmaps/PlateLayouter.java index 46d64f0d3af..830c7512dcb 100644 --- a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/heatmaps/PlateLayouter.java +++ b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/heatmaps/PlateLayouter.java @@ -86,8 +86,6 @@ public class PlateLayouter private static final int MARGIN_SIZE_PX = 10; - private static final int LEGEND_WIDTH_PX = 100; - // ------- internal fixed state private final PlateLayouterModel model; @@ -176,8 +174,6 @@ public class PlateLayouter heatmapKindChooser)); LayoutContainer plateContainer = new LayoutContainer(); - // plateContainer.setLayout(new RowLayout(Orientation.HORIZONTAL)); - // plateContainer.setScrollMode(Scroll.AUTO); plateContainer.setLayout(new ColumnLayout()); plateContainer.add(renderPlateLayout(renderedWells)); @@ -186,30 +182,12 @@ public class PlateLayouter separator .setPixelSize(PlateStyleSetter.WELL_BOX_SIZE_PX, PlateStyleSetter.WELL_BOX_SIZE_PX); plateContainer.add(separator); - plateContainer.add(legendContainer); - - // set plate widget size - // int width = getPlateMatrixPixelWidth(renderedWells); - // int height = getPlateMatrixPixelHeight(renderedWells); - // plateContainer.setSize(width + LEGEND_WIDTH_PX, height); - // plateContainer.setAutoWidth(true); - container.add(plateContainer); return container; } - private static int getPlateMatrixPixelHeight(Component[][] renderedWells) - { - return PlateStyleSetter.WELL_BOX_SIZE_PX * (renderedWells.length + 1); - } - - private static int getPlateMatrixPixelWidth(Component[][] renderedWells) - { - return PlateStyleSetter.WELL_BOX_SIZE_PX * (getColumnsNum(renderedWells) + 1); - } - private static LayoutContainer renderPlateLayout(Component[][] renderedWells) { LayoutContainer plateMatrix = new LayoutContainer(); @@ -220,11 +198,6 @@ public class PlateLayouter plateMatrix.setScrollMode(Scroll.AUTO); - // int width = getPlateMatrixPixelWidth(renderedWells); - // int height = getPlateMatrixPixelHeight(renderedWells); - // plateMatrix.setSize(width, height); - // plateMatrix.setAutoWidth(true); - addPlateWidgets(plateMatrix, renderedWells); return plateMatrix; } -- GitLab