Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed List to Map...

  • Loading branch information...
commit 0be648402212fd571556dd0014a7e072e1b846e1 1 parent bdb7831
@scooby authored
Showing with 6 additions and 11 deletions.
  1. +6 −11 src/veb/swing/SwingSurface.java
View
17 src/veb/swing/SwingSurface.java
@@ -1,7 +1,7 @@
package veb.swing;
-import java.util.ArrayList;
-import java.util.List;
+import java.util.Map;
+import java.util.HashMap;
import veb.Area;
import veb.Drawable;
@@ -13,19 +13,14 @@
* This is created to arrange the decorations and Swing objects as laid out by veb.Layout
*/
public class SwingSurface implements Surface {
- final private List<SwingDecoration> pdx;
+ final private Map<Area, SwingDecoration> decMap;
public SwingSurface() {
- pdx = new ArrayList<SwingDecoration>();
+ decMap = new HashMap<Area, SwingDecoration>();
}
@Override
public void draw(final Vector start, final Vector extent, final Area where, final Drawable dec) {
-
- }
- /**
- * @return the pdx
- */
- public List<SwingDecoration> getPdx() {
- return pdx;
+ // look up all possible connections
+ // hook into existing pieces in the map
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.