diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2012-06-29 16:20:11 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2012-06-29 16:20:11 +0200 |
| commit | 11eb9557a35e17450c0aefb758471f1ff3148336 (patch) | |
| tree | 10251f415012336189dd8a7f4385434ad807d7ad /src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java | |
| parent | bc4d8f9fca275eceee86e38c52975461ca504d07 (diff) | |
Pull remaining graph GUI components into cristal-gui
Diffstat (limited to 'src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java')
| -rw-r--r-- | src/main/java/com/c2kernel/collection/gui/model/AggregationVertexFactory.java | 6 |
1 files changed, 2 insertions, 4 deletions
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);
}
}
}
|
