]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DNodeModification.java
Configurable connection crossing styles
[simantics/platform.git] / bundles / org.simantics.scenegraph / src / org / simantics / scenegraph / g2d / G2DNodeModification.java
1 /*******************************************************************************
2  * Copyright (c) 2017 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     Semantum Oy - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.scenegraph.g2d;
13
14 import java.util.List;
15
16 import org.simantics.scenegraph.g2d.nodes.SVGNodeAssignment;
17 import org.simantics.scenegraph.g2d.nodes.TargetedSVGNodeAssignment;
18 import org.simantics.scenegraph.g2d.nodes.TransformationAssignment;
19
20 /**
21  * @author Antti Villberg
22  * @since 1.29.0
23  */
24 public class G2DNodeModification {
25         public List<SVGNodeAssignment> svgAssignments;
26         public List<TargetedSVGNodeAssignment> targetedSVGAssignments;
27         public List<TransformationAssignment> transformAssignments;
28         public G2DNodeModification(List<SVGNodeAssignment> svgAssignments, List<TransformationAssignment> transformAssignments) {
29                 this.svgAssignments = svgAssignments;
30                 this.transformAssignments = transformAssignments;
31         }
32         public G2DNodeModification(List<SVGNodeAssignment> svgAssignments, List<TargetedSVGNodeAssignment> targetedSVGAssignments, List<TransformationAssignment> transformAssignments) {
33                 this.svgAssignments = svgAssignments;
34                 this.targetedSVGAssignments = targetedSVGAssignments;
35                 this.transformAssignments = transformAssignments;
36         }
37         public static G2DNodeModification create3(List<SVGNodeAssignment> svgAssignments, List<TargetedSVGNodeAssignment> targetedSVGAssignments, List<TransformationAssignment> transformAssignments) {
38                 return new G2DNodeModification(svgAssignments, targetedSVGAssignments, transformAssignments);
39         }
40 }