From 578f65e8ca63c50ef198099a99cb0711e4c4e7b2 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 10 Oct 2014 10:08:56 +0200 Subject: Repackage to org.cristalise. Move java version to 1.7. --- .../c2kernel/dev/DevObjectOutcomeInitiator.java | 71 ---------------------- .../c2kernel/dev/canvas/CanvasEdgeRenderer.java | 48 --------------- .../c2kernel/dev/canvas/CanvasVertexFactory.java | 57 ----------------- .../c2kernel/dev/canvas/CanvasVertexRenderer.java | 47 -------------- .../com/c2kernel/dev/canvas/CollectionEdge.java | 34 ----------- .../com/c2kernel/dev/canvas/CollectionVertex.java | 34 ----------- .../java/com/c2kernel/dev/canvas/ItemCanvas.java | 32 ---------- .../c2kernel/dev/canvas/ItemDescriptionVertex.java | 34 ----------- .../java/com/c2kernel/dev/canvas/MemberEdge.java | 34 ----------- .../cristalise/dev/DevObjectOutcomeInitiator.java | 71 ++++++++++++++++++++++ .../cristalise/dev/canvas/CanvasEdgeRenderer.java | 48 +++++++++++++++ .../cristalise/dev/canvas/CanvasVertexFactory.java | 57 +++++++++++++++++ .../dev/canvas/CanvasVertexRenderer.java | 47 ++++++++++++++ .../org/cristalise/dev/canvas/CollectionEdge.java | 34 +++++++++++ .../cristalise/dev/canvas/CollectionVertex.java | 34 +++++++++++ .../java/org/cristalise/dev/canvas/ItemCanvas.java | 32 ++++++++++ .../dev/canvas/ItemDescriptionVertex.java | 34 +++++++++++ .../java/org/cristalise/dev/canvas/MemberEdge.java | 34 +++++++++++ src/main/resources/module.xml | 2 +- 19 files changed, 392 insertions(+), 392 deletions(-) delete mode 100644 src/main/java/com/c2kernel/dev/DevObjectOutcomeInitiator.java delete mode 100644 src/main/java/com/c2kernel/dev/canvas/CanvasEdgeRenderer.java delete mode 100644 src/main/java/com/c2kernel/dev/canvas/CanvasVertexFactory.java delete mode 100644 src/main/java/com/c2kernel/dev/canvas/CanvasVertexRenderer.java delete mode 100644 src/main/java/com/c2kernel/dev/canvas/CollectionEdge.java delete mode 100644 src/main/java/com/c2kernel/dev/canvas/CollectionVertex.java delete mode 100644 src/main/java/com/c2kernel/dev/canvas/ItemCanvas.java delete mode 100644 src/main/java/com/c2kernel/dev/canvas/ItemDescriptionVertex.java delete mode 100644 src/main/java/com/c2kernel/dev/canvas/MemberEdge.java create mode 100644 src/main/java/org/cristalise/dev/DevObjectOutcomeInitiator.java create mode 100644 src/main/java/org/cristalise/dev/canvas/CanvasEdgeRenderer.java create mode 100644 src/main/java/org/cristalise/dev/canvas/CanvasVertexFactory.java create mode 100644 src/main/java/org/cristalise/dev/canvas/CanvasVertexRenderer.java create mode 100644 src/main/java/org/cristalise/dev/canvas/CollectionEdge.java create mode 100644 src/main/java/org/cristalise/dev/canvas/CollectionVertex.java create mode 100644 src/main/java/org/cristalise/dev/canvas/ItemCanvas.java create mode 100644 src/main/java/org/cristalise/dev/canvas/ItemDescriptionVertex.java create mode 100644 src/main/java/org/cristalise/dev/canvas/MemberEdge.java (limited to 'src') diff --git a/src/main/java/com/c2kernel/dev/DevObjectOutcomeInitiator.java b/src/main/java/com/c2kernel/dev/DevObjectOutcomeInitiator.java deleted file mode 100644 index 4ce631b..0000000 --- a/src/main/java/com/c2kernel/dev/DevObjectOutcomeInitiator.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.c2kernel.dev; - -import org.cristalise.kernel.common.InvalidDataException; -import org.cristalise.kernel.entity.agent.Job; -import org.cristalise.kernel.entity.proxy.ItemProxy; -import org.cristalise.kernel.lifecycle.ActivityDef; -import org.cristalise.kernel.lifecycle.CompositeActivityDef; -import org.cristalise.kernel.lifecycle.instance.stateMachine.StateMachine; -import org.cristalise.kernel.lookup.DomainPath; -import org.cristalise.kernel.persistency.outcome.OutcomeInitiator; -import org.cristalise.kernel.persistency.outcome.Viewpoint; -import org.cristalise.kernel.process.Gateway; -import org.cristalise.kernel.utils.DescriptionObject; -import org.cristalise.kernel.utils.Logger; - - -public class DevObjectOutcomeInitiator implements OutcomeInitiator { - - public DevObjectOutcomeInitiator() { - } - - @Override - public String initOutcome(Job job) throws InvalidDataException { - String type = job.getActPropString("SchemaType"); - - // create empty object for activities and state machine - DescriptionObject emptyObj = null; - if (type.equals("CompositeActivityDef")) - emptyObj = new CompositeActivityDef(); - else if (type.equals("ElementaryActivityDef")) - emptyObj = new ActivityDef(); - else if (type.equals("StateMachine")) - emptyObj = new StateMachine(); - - if (emptyObj != null) { - try { - emptyObj.setName(job.getItemProxy().getName()); - return Gateway.getMarshaller().marshall(emptyObj); - } catch (Exception e) { - Logger.error("Error creating empty "+type); - Logger.error(e); - return null; - } - } - - // else load empty one from factory - DomainPath factoryPath; String schema; - if (type.equals("Schema")) { - factoryPath = new DomainPath("/desc/dev/SchemaFactory"); - schema = "Schema"; - } - else if (type.equals("Script")) { - factoryPath = new DomainPath("/desc/dev/ScriptFactory"); - schema = "Script"; - } - else - throw new InvalidDataException("Unknown dev object type: "+type); - ItemProxy factory; - Viewpoint newInstance; - try { - factory = Gateway.getProxyManager().getProxy(factoryPath); - newInstance = factory.getViewpoint(schema, "last"); - return newInstance.getOutcome().getData(); - } catch (Exception e) { - Logger.error(e); - throw new InvalidDataException("Error loading new "+schema); - } - - } - -} diff --git a/src/main/java/com/c2kernel/dev/canvas/CanvasEdgeRenderer.java b/src/main/java/com/c2kernel/dev/canvas/CanvasEdgeRenderer.java deleted file mode 100644 index f0521bc..0000000 --- a/src/main/java/com/c2kernel/dev/canvas/CanvasEdgeRenderer.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * ItemCanvasEdgeRenderer.java - * - * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. - * - * CRISTAL kernel is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see: - * http://www.gnu.org/licenses/ - */ - -package com.c2kernel.dev.canvas; - -import java.awt.Graphics2D; - -import org.cristalise.kernel.graph.model.DirectedEdge; - -import org.cristalise.gui.graph.view.DirectedEdgeRenderer; - - -public class CanvasEdgeRenderer implements DirectedEdgeRenderer { - - /** - * - */ - public CanvasEdgeRenderer() { - // TODO Auto-generated constructor stub - } - - /* (non-Javadoc) - * @see org.cristalise.kernel.gui.graph.view.DirectedEdgeRenderer#draw(java.awt.Graphics2D, org.cristalise.kernel.graph.model.DirectedEdge) - */ - @Override - public void draw(Graphics2D g2d, DirectedEdge directedEdge) { - // TODO Auto-generated method stub - - } - -} diff --git a/src/main/java/com/c2kernel/dev/canvas/CanvasVertexFactory.java b/src/main/java/com/c2kernel/dev/canvas/CanvasVertexFactory.java deleted file mode 100644 index 01544ed..0000000 --- a/src/main/java/com/c2kernel/dev/canvas/CanvasVertexFactory.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * VertexFactory.java - * - * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. - * - * CRISTAL kernel is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see: - * http://www.gnu.org/licenses/ - */ - -package com.c2kernel.dev.canvas; - -import org.cristalise.kernel.graph.model.GraphModelManager; -import org.cristalise.kernel.graph.model.GraphPoint; -import org.cristalise.kernel.graph.model.TypeNameAndConstructionInfo; -import org.cristalise.kernel.graph.model.VertexFactory; - -public class CanvasVertexFactory implements VertexFactory { - - /** - * - */ - public CanvasVertexFactory() { - // TODO Auto-generated constructor stub - } - - /* (non-Javadoc) - * @see org.cristalise.kernel.graph.model.VertexFactory#create(org.cristalise.kernel.graph.model.GraphModelManager, org.cristalise.kernel.graph.model.GraphPoint, org.cristalise.kernel.graph.model.TypeNameAndConstructionInfo) - */ - @Override - public void create(GraphModelManager graphModelManager, - GraphPoint location, - TypeNameAndConstructionInfo typeNameAndConstructionInfo) - throws Exception { - // TODO Auto-generated method stub - - } - - /* (non-Javadoc) - * @see org.cristalise.kernel.graph.model.VertexFactory#setCreationContext(java.lang.Object) - */ - @Override - public void setCreationContext(Object newContext) { - // TODO Auto-generated method stub - - } -} diff --git a/src/main/java/com/c2kernel/dev/canvas/CanvasVertexRenderer.java b/src/main/java/com/c2kernel/dev/canvas/CanvasVertexRenderer.java deleted file mode 100644 index e98b3af..0000000 --- a/src/main/java/com/c2kernel/dev/canvas/CanvasVertexRenderer.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * ItemDescriptionRenderer.java - * - * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. - * - * CRISTAL kernel is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see: - * http://www.gnu.org/licenses/ - */ - -package com.c2kernel.dev.canvas; - -import java.awt.Graphics2D; - -import org.cristalise.gui.graph.view.VertexRenderer; -import org.cristalise.kernel.graph.model.Vertex; - - -public class CanvasVertexRenderer implements VertexRenderer { - - /** - * - */ - public CanvasVertexRenderer() { - // TODO Auto-generated constructor stub - } - - /* (non-Javadoc) - * @see org.cristalise.kernel.gui.graph.view.VertexRenderer#draw(java.awt.Graphics2D, org.cristalise.kernel.graph.model.Vertex) - */ - @Override - public void draw(Graphics2D g2d, Vertex vertex) { - // TODO Auto-generated method stub - - } - -} diff --git a/src/main/java/com/c2kernel/dev/canvas/CollectionEdge.java b/src/main/java/com/c2kernel/dev/canvas/CollectionEdge.java deleted file mode 100644 index 7ed1a0f..0000000 --- a/src/main/java/com/c2kernel/dev/canvas/CollectionEdge.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * CollectionEdge.java - * - * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. - * - * CRISTAL kernel is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see: - * http://www.gnu.org/licenses/ - */ - -package com.c2kernel.dev.canvas; - -import org.cristalise.kernel.graph.model.DirectedEdge; - -public class CollectionEdge extends DirectedEdge { - - /** - * - */ - public CollectionEdge() { - // TODO Auto-generated constructor stub - } - -} diff --git a/src/main/java/com/c2kernel/dev/canvas/CollectionVertex.java b/src/main/java/com/c2kernel/dev/canvas/CollectionVertex.java deleted file mode 100644 index 54f5e5e..0000000 --- a/src/main/java/com/c2kernel/dev/canvas/CollectionVertex.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * CollectionNode.java - * - * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. - * - * CRISTAL kernel is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see: - * http://www.gnu.org/licenses/ - */ - -package com.c2kernel.dev.canvas; - -import org.cristalise.kernel.graph.model.GraphableVertex; - -public class CollectionVertex extends GraphableVertex { - - /** - * - */ - public CollectionVertex() { - // TODO Auto-generated constructor stub - } - -} diff --git a/src/main/java/com/c2kernel/dev/canvas/ItemCanvas.java b/src/main/java/com/c2kernel/dev/canvas/ItemCanvas.java deleted file mode 100644 index 7fcca16..0000000 --- a/src/main/java/com/c2kernel/dev/canvas/ItemCanvas.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * ItemCanvas.java - * - * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. - * - * CRISTAL kernel is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see: - * http://www.gnu.org/licenses/ - */ - -package com.c2kernel.dev.canvas; - -public class ItemCanvas { - - /** - * - */ - public ItemCanvas() { - // TODO Auto-generated constructor stub - } - -} diff --git a/src/main/java/com/c2kernel/dev/canvas/ItemDescriptionVertex.java b/src/main/java/com/c2kernel/dev/canvas/ItemDescriptionVertex.java deleted file mode 100644 index f95dc8a..0000000 --- a/src/main/java/com/c2kernel/dev/canvas/ItemDescriptionVertex.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * ItemDescription.java - * - * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. - * - * CRISTAL kernel is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see: - * http://www.gnu.org/licenses/ - */ - -package com.c2kernel.dev.canvas; - -import org.cristalise.kernel.graph.model.Vertex; - -public class ItemDescriptionVertex extends Vertex { - - /** - * - */ - public ItemDescriptionVertex() { - // TODO Auto-generated constructor stub - } - -} diff --git a/src/main/java/com/c2kernel/dev/canvas/MemberEdge.java b/src/main/java/com/c2kernel/dev/canvas/MemberEdge.java deleted file mode 100644 index 3115926..0000000 --- a/src/main/java/com/c2kernel/dev/canvas/MemberEdge.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MemberEdge.java - * - * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. - * - * CRISTAL kernel is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see: - * http://www.gnu.org/licenses/ - */ - -package com.c2kernel.dev.canvas; - -import org.cristalise.kernel.graph.model.DirectedEdge; - -public class MemberEdge extends DirectedEdge { - - /** - * - */ - public MemberEdge() { - // TODO Auto-generated constructor stub - } - -} diff --git a/src/main/java/org/cristalise/dev/DevObjectOutcomeInitiator.java b/src/main/java/org/cristalise/dev/DevObjectOutcomeInitiator.java new file mode 100644 index 0000000..07b2b2d --- /dev/null +++ b/src/main/java/org/cristalise/dev/DevObjectOutcomeInitiator.java @@ -0,0 +1,71 @@ +package org.cristalise.dev; + +import org.cristalise.kernel.common.InvalidDataException; +import org.cristalise.kernel.entity.agent.Job; +import org.cristalise.kernel.entity.proxy.ItemProxy; +import org.cristalise.kernel.lifecycle.ActivityDef; +import org.cristalise.kernel.lifecycle.CompositeActivityDef; +import org.cristalise.kernel.lifecycle.instance.stateMachine.StateMachine; +import org.cristalise.kernel.lookup.DomainPath; +import org.cristalise.kernel.persistency.outcome.OutcomeInitiator; +import org.cristalise.kernel.persistency.outcome.Viewpoint; +import org.cristalise.kernel.process.Gateway; +import org.cristalise.kernel.utils.DescriptionObject; +import org.cristalise.kernel.utils.Logger; + + +public class DevObjectOutcomeInitiator implements OutcomeInitiator { + + public DevObjectOutcomeInitiator() { + } + + @Override + public String initOutcome(Job job) throws InvalidDataException { + String type = job.getActPropString("SchemaType"); + + // create empty object for activities and state machine + DescriptionObject emptyObj = null; + if (type.equals("CompositeActivityDef")) + emptyObj = new CompositeActivityDef(); + else if (type.equals("ElementaryActivityDef")) + emptyObj = new ActivityDef(); + else if (type.equals("StateMachine")) + emptyObj = new StateMachine(); + + if (emptyObj != null) { + try { + emptyObj.setName(job.getItemProxy().getName()); + return Gateway.getMarshaller().marshall(emptyObj); + } catch (Exception e) { + Logger.error("Error creating empty "+type); + Logger.error(e); + return null; + } + } + + // else load empty one from factory + DomainPath factoryPath; String schema; + if (type.equals("Schema")) { + factoryPath = new DomainPath("/desc/dev/SchemaFactory"); + schema = "Schema"; + } + else if (type.equals("Script")) { + factoryPath = new DomainPath("/desc/dev/ScriptFactory"); + schema = "Script"; + } + else + throw new InvalidDataException("Unknown dev object type: "+type); + ItemProxy factory; + Viewpoint newInstance; + try { + factory = Gateway.getProxyManager().getProxy(factoryPath); + newInstance = factory.getViewpoint(schema, "last"); + return newInstance.getOutcome().getData(); + } catch (Exception e) { + Logger.error(e); + throw new InvalidDataException("Error loading new "+schema); + } + + } + +} diff --git a/src/main/java/org/cristalise/dev/canvas/CanvasEdgeRenderer.java b/src/main/java/org/cristalise/dev/canvas/CanvasEdgeRenderer.java new file mode 100644 index 0000000..be15ef6 --- /dev/null +++ b/src/main/java/org/cristalise/dev/canvas/CanvasEdgeRenderer.java @@ -0,0 +1,48 @@ +/* + * ItemCanvasEdgeRenderer.java + * + * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. + * + * CRISTAL kernel is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see: + * http://www.gnu.org/licenses/ + */ + +package org.cristalise.dev.canvas; + +import java.awt.Graphics2D; + +import org.cristalise.kernel.graph.model.DirectedEdge; + +import org.cristalise.gui.graph.view.DirectedEdgeRenderer; + + +public class CanvasEdgeRenderer implements DirectedEdgeRenderer { + + /** + * + */ + public CanvasEdgeRenderer() { + // TODO Auto-generated constructor stub + } + + /* (non-Javadoc) + * @see org.cristalise.kernel.gui.graph.view.DirectedEdgeRenderer#draw(java.awt.Graphics2D, org.cristalise.kernel.graph.model.DirectedEdge) + */ + @Override + public void draw(Graphics2D g2d, DirectedEdge directedEdge) { + // TODO Auto-generated method stub + + } + +} diff --git a/src/main/java/org/cristalise/dev/canvas/CanvasVertexFactory.java b/src/main/java/org/cristalise/dev/canvas/CanvasVertexFactory.java new file mode 100644 index 0000000..63dc77d --- /dev/null +++ b/src/main/java/org/cristalise/dev/canvas/CanvasVertexFactory.java @@ -0,0 +1,57 @@ +/* + * VertexFactory.java + * + * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. + * + * CRISTAL kernel is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see: + * http://www.gnu.org/licenses/ + */ + +package org.cristalise.dev.canvas; + +import org.cristalise.kernel.graph.model.GraphModelManager; +import org.cristalise.kernel.graph.model.GraphPoint; +import org.cristalise.kernel.graph.model.TypeNameAndConstructionInfo; +import org.cristalise.kernel.graph.model.VertexFactory; + +public class CanvasVertexFactory implements VertexFactory { + + /** + * + */ + public CanvasVertexFactory() { + // TODO Auto-generated constructor stub + } + + /* (non-Javadoc) + * @see org.cristalise.kernel.graph.model.VertexFactory#create(org.cristalise.kernel.graph.model.GraphModelManager, org.cristalise.kernel.graph.model.GraphPoint, org.cristalise.kernel.graph.model.TypeNameAndConstructionInfo) + */ + @Override + public void create(GraphModelManager graphModelManager, + GraphPoint location, + TypeNameAndConstructionInfo typeNameAndConstructionInfo) + throws Exception { + // TODO Auto-generated method stub + + } + + /* (non-Javadoc) + * @see org.cristalise.kernel.graph.model.VertexFactory#setCreationContext(java.lang.Object) + */ + @Override + public void setCreationContext(Object newContext) { + // TODO Auto-generated method stub + + } +} diff --git a/src/main/java/org/cristalise/dev/canvas/CanvasVertexRenderer.java b/src/main/java/org/cristalise/dev/canvas/CanvasVertexRenderer.java new file mode 100644 index 0000000..c34e814 --- /dev/null +++ b/src/main/java/org/cristalise/dev/canvas/CanvasVertexRenderer.java @@ -0,0 +1,47 @@ +/* + * ItemDescriptionRenderer.java + * + * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. + * + * CRISTAL kernel is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see: + * http://www.gnu.org/licenses/ + */ + +package org.cristalise.dev.canvas; + +import java.awt.Graphics2D; + +import org.cristalise.gui.graph.view.VertexRenderer; +import org.cristalise.kernel.graph.model.Vertex; + + +public class CanvasVertexRenderer implements VertexRenderer { + + /** + * + */ + public CanvasVertexRenderer() { + // TODO Auto-generated constructor stub + } + + /* (non-Javadoc) + * @see org.cristalise.kernel.gui.graph.view.VertexRenderer#draw(java.awt.Graphics2D, org.cristalise.kernel.graph.model.Vertex) + */ + @Override + public void draw(Graphics2D g2d, Vertex vertex) { + // TODO Auto-generated method stub + + } + +} diff --git a/src/main/java/org/cristalise/dev/canvas/CollectionEdge.java b/src/main/java/org/cristalise/dev/canvas/CollectionEdge.java new file mode 100644 index 0000000..48d3cc9 --- /dev/null +++ b/src/main/java/org/cristalise/dev/canvas/CollectionEdge.java @@ -0,0 +1,34 @@ +/* + * CollectionEdge.java + * + * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. + * + * CRISTAL kernel is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see: + * http://www.gnu.org/licenses/ + */ + +package org.cristalise.dev.canvas; + +import org.cristalise.kernel.graph.model.DirectedEdge; + +public class CollectionEdge extends DirectedEdge { + + /** + * + */ + public CollectionEdge() { + // TODO Auto-generated constructor stub + } + +} diff --git a/src/main/java/org/cristalise/dev/canvas/CollectionVertex.java b/src/main/java/org/cristalise/dev/canvas/CollectionVertex.java new file mode 100644 index 0000000..cef80b5 --- /dev/null +++ b/src/main/java/org/cristalise/dev/canvas/CollectionVertex.java @@ -0,0 +1,34 @@ +/* + * CollectionNode.java + * + * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. + * + * CRISTAL kernel is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see: + * http://www.gnu.org/licenses/ + */ + +package org.cristalise.dev.canvas; + +import org.cristalise.kernel.graph.model.GraphableVertex; + +public class CollectionVertex extends GraphableVertex { + + /** + * + */ + public CollectionVertex() { + // TODO Auto-generated constructor stub + } + +} diff --git a/src/main/java/org/cristalise/dev/canvas/ItemCanvas.java b/src/main/java/org/cristalise/dev/canvas/ItemCanvas.java new file mode 100644 index 0000000..85a0f03 --- /dev/null +++ b/src/main/java/org/cristalise/dev/canvas/ItemCanvas.java @@ -0,0 +1,32 @@ +/* + * ItemCanvas.java + * + * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. + * + * CRISTAL kernel is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see: + * http://www.gnu.org/licenses/ + */ + +package org.cristalise.dev.canvas; + +public class ItemCanvas { + + /** + * + */ + public ItemCanvas() { + // TODO Auto-generated constructor stub + } + +} diff --git a/src/main/java/org/cristalise/dev/canvas/ItemDescriptionVertex.java b/src/main/java/org/cristalise/dev/canvas/ItemDescriptionVertex.java new file mode 100644 index 0000000..1d30d10 --- /dev/null +++ b/src/main/java/org/cristalise/dev/canvas/ItemDescriptionVertex.java @@ -0,0 +1,34 @@ +/* + * ItemDescription.java + * + * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. + * + * CRISTAL kernel is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see: + * http://www.gnu.org/licenses/ + */ + +package org.cristalise.dev.canvas; + +import org.cristalise.kernel.graph.model.Vertex; + +public class ItemDescriptionVertex extends Vertex { + + /** + * + */ + public ItemDescriptionVertex() { + // TODO Auto-generated constructor stub + } + +} diff --git a/src/main/java/org/cristalise/dev/canvas/MemberEdge.java b/src/main/java/org/cristalise/dev/canvas/MemberEdge.java new file mode 100644 index 0000000..df10594 --- /dev/null +++ b/src/main/java/org/cristalise/dev/canvas/MemberEdge.java @@ -0,0 +1,34 @@ +/* + * MemberEdge.java + * + * Copyright (c) 2013, The CRISTAL Consortium. All rights reserved. + * + * CRISTAL kernel is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see: + * http://www.gnu.org/licenses/ + */ + +package org.cristalise.dev.canvas; + +import org.cristalise.kernel.graph.model.DirectedEdge; + +public class MemberEdge extends DirectedEdge { + + /** + * + */ + public MemberEdge() { + // TODO Auto-generated constructor stub + } + +} diff --git a/src/main/resources/module.xml b/src/main/resources/module.xml index 51c4f7d..6b1302a 100644 --- a/src/main/resources/module.xml +++ b/src/main/resources/module.xml @@ -6,7 +6,7 @@ uk/ac/uwe/cristaldev/resources/ true - org.cristalise.kernel.dev.DevObjectOutcomeInitiator + org.cristalise.dev.DevObjectOutcomeInitiator boot/OD/NewDevObjectDef.xsd boot/OD/ChooseWorkflow.xsd -- cgit v1.2.3