<commit_before>package org.cytoscape.ding.impl.undo;

import org.cytoscape.ding.DVisualLexicon;
import org.cytoscape.model.CyNode;
import org.cytoscape.service.util.CyServiceRegistrar;
import org.cytoscape.work.undo.AbstractCyEdit;
import org.cytoscape.work.undo.UndoSupport;
import org.cytoscape.view.model.CyNetworkView;
import org.cytoscape.view.model.CyNetworkViewManager;
import org.cytoscape.view.model.View;
import org.cytoscape.view.presentation.property.values.ObjectPosition;
import org.cytoscape.view.vizmap.VisualMappingManager;
import org.cytoscape.view.vizmap.VisualStyle;

/**
 * Class to undo or redo Label Move. 
 * @author jingchen
 *
 */
public class NodeLabelChangeEdit extends AbstractCyEdit {
	
	
	private ObjectPosition oldValue;
	private ObjectPosition newValue;
	private Double oldRotation;
	private double newRotation;
	private CyServiceRegistrar serviceRegistrar;
	private CyNetworkView netView;
	private Long  nodeId;

	public NodeLabelChangeEdit(CyServiceRegistrar serviceRegistrar, ObjectPosition previousValue, Double previousRotation,
			CyNetworkView netview, Long nodeId) {
		super("Move Label");
		this.serviceRegistrar = serviceRegistrar;
		
		this.oldValue = previousValue;
		this.oldRotation = previousRotation;<commit_msg>Fix incorrect name for label rotation undo.<commit_after>package org.cytoscape.ding.impl.undo;

import org.cytoscape.ding.DVisualLexicon;
import org.cytoscape.model.CyNode;
import org.cytoscape.service.util.CyServiceRegistrar;
import org.cytoscape.work.undo.AbstractCyEdit;
import org.cytoscape.work.undo.UndoSupport;
import org.cytoscape.view.model.CyNetworkView;
import org.cytoscape.view.model.CyNetworkViewManager;
import org.cytoscape.view.model.View;
import org.cytoscape.view.presentation.property.values.ObjectPosition;
import org.cytoscape.view.vizmap.VisualMappingManager;
import org.cytoscape.view.vizmap.VisualStyle;

/**
 * Class to undo or redo Label Move. 
 * @author jingchen
 *
 */
public class NodeLabelChangeEdit extends AbstractCyEdit {
	
	
	private ObjectPosition oldValue;
	private ObjectPosition newValue;
	private Double oldRotation;
	private double newRotation;
	private CyServiceRegistrar serviceRegistrar;
	private CyNetworkView netView;
	private Long  nodeId;

	public NodeLabelChangeEdit(CyServiceRegistrar serviceRegistrar, ObjectPosition previousValue, Double previousRotation,
			CyNetworkView netview, Long nodeId, String label) {
		super(label);
		this.serviceRegistrar = serviceRegistrar;
		
		this.oldValue = previousValue;
		this.oldRotation = previousRotation;
{'fraction_non_alphanumeric': 0.07971864009378664, 'fraction_numerical': 0.0, 'mean_word_length': 6.091412742382271, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5112256', 'n_tokens_mistral': 844, 'n_tokens_neox': 767, 'n_words': 162}