From 05b38169b3f4b6c5bd8a76f4e97852aa3362fe87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9C=9F=E4=BA=BA?= Date: Thu, 15 Jun 2017 22:40:07 +0800 Subject: [PATCH] recover --- src/rprocessing/RLangPApplet.java | 20 ++++++++++++++++++++ src/rprocessing/applet/BuiltinApplet.java | 20 -------------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/rprocessing/RLangPApplet.java b/src/rprocessing/RLangPApplet.java index 218d17b..dff73ec 100644 --- a/src/rprocessing/RLangPApplet.java +++ b/src/rprocessing/RLangPApplet.java @@ -323,6 +323,26 @@ private boolean isMixMode() { return isSameClass(this.renjinEngine.get(Constant.SIZE_NAME), closureClass); } + /** + * + * @see processing.core.PApplet#focusGained() + */ + @Override + public void focusGained() { + super.focusGained(); + this.renjinEngine.put("focused",super.focused); + } + + /** + * + * @see processing.core.PApplet#focusLost() + */ + @Override + public void focusLost() { + super.focusLost(); + this.renjinEngine.put("focused",super.focused); + } + /** * Set Environment variables in R top context. */ diff --git a/src/rprocessing/applet/BuiltinApplet.java b/src/rprocessing/applet/BuiltinApplet.java index 0113949..64bb548 100644 --- a/src/rprocessing/applet/BuiltinApplet.java +++ b/src/rprocessing/applet/BuiltinApplet.java @@ -34,24 +34,4 @@ public boolean getFocused() { public double getPI() { return PI; } - - /** - * - * @see processing.core.PApplet#focusGained() - */ - @Override - public void focusGained() { - super.focusGained(); - this.renjinEngine.put("focused",super.focused); - } - - /** - * - * @see processing.core.PApplet#focusLost() - */ - @Override - public void focusLost() { - super.focusLost(); - this.renjinEngine.put("focused",super.focused); - } }