
ca.uvic.cs.chisel.cajun.graph.handlers.CameraDragPanHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ca.uvic.cs.chisel.cajun Show documentation
Show all versions of ca.uvic.cs.chisel.cajun Show documentation
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