/*******************************************************************************
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * Copyright (c) 2007, 2017 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
*
* Contributors:
* VTT Technical Research Centre of Finland - initial API and implementation
+ * Semantum Oy - #7119 refactoring
*******************************************************************************/
package org.simantics.g2d.element.handler.impl;
*/
public class Terminals implements TerminalLayout, TerminalTopology {
- private static final long serialVersionUID = -6532093690907028016L;
+ private static final long serialVersionUID = -6532093690907028016L;
- private final Map<Terminal, ObjectTerminal> terminalMap = new THashMap<Terminal, ObjectTerminal>();
- private final ArrayList<Terminal> terminals = new ArrayList<Terminal>();
+ protected final Map<Terminal, ObjectTerminal> terminalMap = new THashMap<>();
+ protected final ArrayList<Terminal> terminals = new ArrayList<>();
public Terminals(Collection<ObjectTerminal> ts) {
for (ObjectTerminal ti : ts) {
ObjectTerminal ti = terminalMap.get(t);
if (ti == null)
return null;
- return new AffineTransform(ti.getTransform());
+ return ti.getTransform();
}
@Override