1 /*******************************************************************************
2 * Copyright (c) 2017 Association for Decentralized Information Management
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
10 * Semantum Oy - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.scenegraph.g2d;
14 import java.util.List;
16 import org.simantics.scenegraph.g2d.nodes.SVGNodeAssignment;
17 import org.simantics.scenegraph.g2d.nodes.TargetedSVGNodeAssignment;
18 import org.simantics.scenegraph.g2d.nodes.TransformationAssignment;
21 * @author Antti Villberg
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;
32 public G2DNodeModification(List<SVGNodeAssignment> svgAssignments, List<TargetedSVGNodeAssignment> targetedSVGAssignments, List<TransformationAssignment> transformAssignments) {
33 this.svgAssignments = svgAssignments;
34 this.targetedSVGAssignments = targetedSVGAssignments;
35 this.transformAssignments = transformAssignments;
37 public static G2DNodeModification create3(List<SVGNodeAssignment> svgAssignments, List<TargetedSVGNodeAssignment> targetedSVGAssignments, List<TransformationAssignment> transformAssignments) {
38 return new G2DNodeModification(svgAssignments, targetedSVGAssignments, transformAssignments);