if (active) {
Control control = getContext().getViewportPane().getControl();
control.addKeyListener(this);
}else{
Control control = getContext().getViewportPane().getControl();
control.removeKeyListener(this);
}
}
private double distance() throws TransformException {