X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Fconnection%2Fhandler%2FConnectionHandler.java;h=37605290e14b27c103470554f4553b42cc0094ec;hb=e0334c5555088193846c692743067db8e43548d6;hp=7f90b254bc4d523b8f65ed7e345d59098492a666;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/connection/handler/ConnectionHandler.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/connection/handler/ConnectionHandler.java index 7f90b254b..37605290e 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/connection/handler/ConnectionHandler.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/connection/handler/ConnectionHandler.java @@ -1,70 +1,70 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.g2d.connection.handler; - -import java.util.Collection; - -import org.simantics.g2d.diagram.handler.Topology.Connection; -import org.simantics.g2d.element.IElement; -import org.simantics.g2d.element.ElementClass.Single; -import org.simantics.g2d.element.handler.ElementHandler; - -/** - * @author Tuukka Lehtonen - */ -@Single -public interface ConnectionHandler extends ElementHandler { - - /** - * Get all sub-elements (branch points, edge segments) of the specified - * connection element. If the element is not a connection, an empty result - * shall be returned. - * - * @param connection - * @param result - * @return - */ - Collection getChildren(IElement connection, Collection result); - - /** - * Get all branch points that are part of this connection. If the element is - * not a connection, an empty result shall be returned. - * - * @param result the collection to store the result into or - * null to allocate a new collection - * @return the result collection - */ - Collection getBranchPoints(IElement connection, Collection result); - - /** - * Get all segments that are part of this connection. If the element is not - * a connection, an empty result shall be returned. - * - * @param result the collection to store the result into or - * null to allocate a new collection - * @return the result collection - */ - Collection getSegments(IElement connection, Collection result); - - /** - * Get all topological terminal connections of this connection entity. - * Terminal connections are the only way to attach a connection to an - * element terminal. If the element is not a connection, an empty result - * shall be returned. - * - * @param result the collection to store the result into or - * null to allocate a new collection - * @return the result collection - */ - Collection getTerminalConnections(IElement connection, Collection result); - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.g2d.connection.handler; + +import java.util.Collection; + +import org.simantics.g2d.diagram.handler.Topology.Connection; +import org.simantics.g2d.element.IElement; +import org.simantics.g2d.element.ElementClass.Single; +import org.simantics.g2d.element.handler.ElementHandler; + +/** + * @author Tuukka Lehtonen + */ +@Single +public interface ConnectionHandler extends ElementHandler { + + /** + * Get all sub-elements (branch points, edge segments) of the specified + * connection element. If the element is not a connection, an empty result + * shall be returned. + * + * @param connection + * @param result + * @return + */ + Collection getChildren(IElement connection, Collection result); + + /** + * Get all branch points that are part of this connection. If the element is + * not a connection, an empty result shall be returned. + * + * @param result the collection to store the result into or + * null to allocate a new collection + * @return the result collection + */ + Collection getBranchPoints(IElement connection, Collection result); + + /** + * Get all segments that are part of this connection. If the element is not + * a connection, an empty result shall be returned. + * + * @param result the collection to store the result into or + * null to allocate a new collection + * @return the result collection + */ + Collection getSegments(IElement connection, Collection result); + + /** + * Get all topological terminal connections of this connection entity. + * Terminal connections are the only way to attach a connection to an + * element terminal. If the element is not a connection, an empty result + * shall be returned. + * + * @param result the collection to store the result into or + * null to allocate a new collection + * @return the result collection + */ + Collection getTerminalConnections(IElement connection, Collection result); + +}