diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2012-05-30 08:37:45 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2012-05-30 08:37:45 +0200 |
| commit | b086f57f56bf0eb9dab9cf321a0f69aaaae84347 (patch) | |
| tree | 8e6e26e8b7eed6abad7a17b093bdbb55c5e6b1ba /source/com/c2kernel/collection/gui/model/AggregationVertexFactory.java | |
| parent | 22088ae8d2d5ff390518dbe1c4372325ffb3a647 (diff) | |
Initial Maven Conversion
Diffstat (limited to 'source/com/c2kernel/collection/gui/model/AggregationVertexFactory.java')
| -rw-r--r-- | source/com/c2kernel/collection/gui/model/AggregationVertexFactory.java | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/source/com/c2kernel/collection/gui/model/AggregationVertexFactory.java b/source/com/c2kernel/collection/gui/model/AggregationVertexFactory.java deleted file mode 100644 index cd4963f..0000000 --- a/source/com/c2kernel/collection/gui/model/AggregationVertexFactory.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.c2kernel.collection.gui.model;
-
-import java.awt.Point;
-
-import com.c2kernel.collection.Aggregation;
-import com.c2kernel.collection.MembershipException;
-import com.c2kernel.graph.model.GraphModelManager;
-import com.c2kernel.graph.model.GraphPoint;
-import com.c2kernel.graph.model.TypeNameAndConstructionInfo;
-import com.c2kernel.graph.model.VertexFactory;
-import com.c2kernel.utils.CastorHashMap;
-import com.c2kernel.utils.Logger;
-
-
-public class AggregationVertexFactory implements VertexFactory
-{
- private Aggregation mAggregation = null;
-
-
- @Override
- public void setCreationContext(Object aggregation)
- {
- if (aggregation != null && aggregation instanceof Aggregation)
- mAggregation = (Aggregation)aggregation;
- }
-
-
- @Override
- public void create
- (
- GraphModelManager graphModelManager,
- Point location,
- TypeNameAndConstructionInfo typeNameAndConstructionInfo
- )
- {
- if (typeNameAndConstructionInfo.mInfo.equals("AggregationMember")) {
- try {
- mAggregation.addMember(-1, new CastorHashMap(), "", new GraphPoint(location.x, location.y), 40, 40);
- } catch (MembershipException ex) {
- Logger.error(ex);
- Logger.exceptionDialog(ex);
- }
- }
- }
-}
-
|
