Permalink
Browse files

N movie capture

  • Loading branch information...
1 parent 67a1e2b commit 208605a5345bfa80ef9200a3b7df060580a67805 @julienchastang julienchastang committed May 17, 2012
@@ -148,7 +148,6 @@
import java.util.Arrays;
import java.util.Date;
import java.util.Enumeration;
-import java.util.HashSet;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.LinkedList;
@@ -5750,7 +5749,7 @@ public void doSaveImage(boolean andSaveBundle) {
List<BufferedImage> images = makeBufferedImages(views, whichComponent);
BufferedImage image = (BufferedImage) ImageUtils.gridImages2(images, 3, Color.GRAY,
- getColumnCountFromComp(views));
+ ImageUtils.getColumnCountFromComps(views));
if (KmlDataSource.isKmlFile(filename)) {
if (!checkForKmlImageCapture()) {
@@ -5821,23 +5820,7 @@ private static int getColumnCountFromVM(List<? extends ViewManager> viewManagers
l.add(v.getComponent());
}
- return getColumnCountFromComp(l);
- }
-
- /**
- * Gets the column count from the components.
- *
- * @param views the views
- * @return the column from comp
- */
- private static int getColumnCountFromComp(List<? extends Component> views) {
- java.util.Set<Integer> s = new HashSet<Integer>();
-
- for (Component component : views) {
- s.add(component.getLocationOnScreen().x);
- }
-
- return s.size();
+ return ImageUtils.getColumnCountFromComps(l);
}
/**
Oops, something went wrong.

0 comments on commit 208605a

Please sign in to comment.