All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.uvic.cs.chisel.cajun.graph.handlers.CameraDragPanHandler Maven / Gradle / Ivy

Go to download

Visualization library used by the OntoGraf plug-in for the Protege ontology editing environment.

The newest version!
package ca.uvic.cs.chisel.cajun.graph.handlers;

import edu.umd.cs.piccolo.PCamera;
import edu.umd.cs.piccolo.event.PInputEvent;
import edu.umd.cs.piccolo.event.PPanEventHandler;

/**
 * Handles panning of a {@link PCamera}.
 *
 * @author Chris
 * @since  9-Nov-07
 */
public class CameraDragPanHandler extends PPanEventHandler {

	public CameraDragPanHandler() {
		super();
		setAutopan(false);
	}

	// OVERRIDES

	@Override
    protected void drag(PInputEvent e) {
        if (e.getPickedNode() instanceof PCamera) {
        	// PAN canvas
            super.drag(e);
        }
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy