--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.g2d.element.handler.impl;\r
+\r
+import java.awt.Shape;\r
+import java.awt.geom.AffineTransform;\r
+\r
+import org.simantics.g2d.utils.geom.DirectionSet;\r
+\r
+/**\r
+ * @author Tuukka Lehtonen\r
+ */\r
+public class BranchPointTerminal extends ObjectTerminal {\r
+\r
+// public static final Object NEW_BRANCH_POINT_DATA = new Object();\r
+ public static final Object EXISTING_BRANCH_POINT_DATA = new Object() {\r
+ @Override\r
+ public String toString() { return "EXISTING_BRANCH_POINT"; }\r
+ };\r
+\r
+ private BranchPointTerminal(Object o, AffineTransform transform, DirectionSet ds, Shape shape) {\r
+ super(o, transform, ds, shape);\r
+ }\r
+\r
+// public static BranchPointTerminal newTerminal(AffineTransform transform, DirectionSet ds, Shape shape) {\r
+// return new BranchPointTerminal(NEW_BRANCH_POINT_DATA, transform, ds, shape);\r
+// }\r
+\r
+ public static BranchPointTerminal existingTerminal(AffineTransform transform, DirectionSet ds, Shape shape) {\r
+ return new BranchPointTerminal(EXISTING_BRANCH_POINT_DATA, transform, ds, shape);\r
+ }\r
+\r
+}
\ No newline at end of file