Skip to content

Commit

Permalink
move to BuiltinApplet
Browse files Browse the repository at this point in the history
  • Loading branch information
真人 authored and gaocegege committed Jun 15, 2017
1 parent 6f73253 commit 755b374
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/rprocessing/RLangPApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,26 +323,6 @@ 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.
*/
Expand Down
20 changes: 20 additions & 0 deletions src/rprocessing/applet/BuiltinApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,24 @@ 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);
}
}

0 comments on commit 755b374

Please # to comment.