From 11eb9557a35e17450c0aefb758471f1ff3148336 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 29 Jun 2012 16:20:11 +0200 Subject: Pull remaining graph GUI components into cristal-gui --- .../com/c2kernel/collection/gui/model/AggregationVertexFactory.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java') diff --git a/src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java b/src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java index 7094644..88dcc3a 100644 --- a/src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java +++ b/src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java @@ -1,7 +1,5 @@ package com.c2kernel.collection.gui.model; -import java.awt.Point; - import com.c2kernel.collection.Aggregation; import com.c2kernel.graph.model.GraphModelManager; import com.c2kernel.graph.model.GraphPoint; @@ -27,12 +25,12 @@ public class AggregationVertexFactory implements VertexFactory public void create ( GraphModelManager graphModelManager, - Point location, + GraphPoint location, TypeNameAndConstructionInfo typeNameAndConstructionInfo ) throws Exception { if (typeNameAndConstructionInfo.mInfo.equals("AggregationMember")) { - mAggregation.addMember(-1, new CastorHashMap(), "", new GraphPoint(location.x, location.y), 40, 40); + mAggregation.addMember(-1, new CastorHashMap(), "",location, 40, 40); } } } -- cgit v1.2.3