From b086f57f56bf0eb9dab9cf321a0f69aaaae84347 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Wed, 30 May 2012 08:37:45 +0200 Subject: Initial Maven Conversion --- .../gui/model/AggregationVertexOutlineCreator.java | 44 ---------------------- 1 file changed, 44 deletions(-) delete mode 100644 source/com/c2kernel/collection/gui/model/AggregationVertexOutlineCreator.java (limited to 'source/com/c2kernel/collection/gui/model/AggregationVertexOutlineCreator.java') diff --git a/source/com/c2kernel/collection/gui/model/AggregationVertexOutlineCreator.java b/source/com/c2kernel/collection/gui/model/AggregationVertexOutlineCreator.java deleted file mode 100644 index b28af2e..0000000 --- a/source/com/c2kernel/collection/gui/model/AggregationVertexOutlineCreator.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.c2kernel.collection.gui.model; - -import com.c2kernel.graph.model.GraphPoint; -import com.c2kernel.graph.model.Vertex; -import com.c2kernel.graph.model.VertexOutlineCreator; - - -public class AggregationVertexOutlineCreator implements VertexOutlineCreator -{ - @Override - public void setOutline(Vertex vertex) - { - GraphPoint centre = vertex.getCentrePoint(); - int height = vertex.getHeight(); - int width = vertex.getWidth(); - - - if (height==0 || width==0) - vertex.setOutlinePoints - ( - new GraphPoint[] - { - new GraphPoint(centre.x-20, centre.y-20), - new GraphPoint(centre.x+20, centre.y-20), - new GraphPoint(centre.x+20, centre.y+20), - new GraphPoint(centre.x-20, centre.y+20) - - } - ); - else - - vertex.setOutlinePoints - ( - new GraphPoint[] - { - new GraphPoint(centre.x-width/2, centre.y-height/2), - new GraphPoint(centre.x+width/2, centre.y-height/2), - new GraphPoint(centre.x+width/2, centre.y+height/2), - new GraphPoint(centre.x-width/2, centre.y+height/2) - - } - ); - } -} -- cgit v1.2.3