public void mouseReleased(final MouseEvent event) {
Vis.this.gewKnot = null;
}
});
this.addKeyListener(new KeyListener() {
/**
* Die Key-Typed-Methode.
*/
@Override
public void keyTyped(final KeyEvent e) {
// throw new RuntimeException("Taste wurde gedrückt.");
}
/**
* Die Key-Released-Methode.
*/
@Override
public void keyReleased(final KeyEvent e) {
// throw new RuntimeException("Taste wurde losgelassen.");
}
/**
* Die Key-Pressed-Methode.
*/
@Override
public void keyPressed(final KeyEvent e) {
if (e.getKeyCode() == java.awt.event.KeyEvent.VK_C) {
if (e.isControlDown()) {
String copy = Vis.this.holeAktGrSeq();
StaticMethods.log(StaticMethods.LOG_DEBUG,
"In Zwischenablage (" + copy + ")",
Vis.this.pars);
Vis.this.zwischenablage.copyToClipboard(copy);
}
}
}
});
this.addMouseMotionListener(new MouseMotionAdapter() {
@Override
public void mouseDragged(final MouseEvent event) {
int x = event.getX();
int y = event.getY();
int un = Vis.this.getSize().height - 50;
int re = Vis.this.getSize().width - 50;
int li = 50;
if (Vis.this.gewKnot != null) {
if (x < li) {
x = li;
}
if (x > re) {
x = re;
}
if (y < ConstantsDarstellung.OBEN) {
y = ConstantsDarstellung.OBEN;
}
if (y > un) {
y = un;
}
Vis.this.darstArten[Vis.this.aktAut].neueKoord(
Vis.this.gewKnot, x, y);
Vis.this.aktGraph = Vis.this.darstArten[Vis.this.aktAut]
.erzeuge(Vis.this.rob.vAuts()[Vis.this.aktAut],
Vis.this.selKnot[Vis.this.aktAut]);
Vis.super.update(Vis.this.getGraphics());
Vis.this.repaint();
}
}
});
return;
}
this.addKeyListener(new KeyListener() {
/**
* Die Key-Typed-Methode.
*/
@Override