MCPcopy Create free account
hub / github.com/RealTimeGenomics/rtg-tools / keyPressed

Method keyPressed

src/main/java/com/rtg/graph/RocPlot.java:300–309  ·  view source on GitHub ↗
(KeyEvent e)

Source from the content-addressed store, hash-verified

298 rightPanel.add(new JLabel("Title", JLabel.CENTER), c);
299 mTitleEntry.addKeyListener(new KeyAdapter() {
300 @Override
301 public void keyPressed(KeyEvent e) {
302 if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
303 mTitleEntry.setText(mIconLabel.getText()); // revert edit
304 }
305 if (e.getKeyCode() == KeyEvent.VK_ENTER) {
306 setTitle(mTitleEntry.getText());
307 showCurrentGraph();
308 }
309 }
310
311 });
312 mTitleEntry.addFocusListener(new FocusAdapter() {

Callers

nothing calls this directly

Calls 3

setTitleMethod · 0.95
showCurrentGraphMethod · 0.95
getTextMethod · 0.80

Tested by

no test coverage detected