Skip to content

Commit 863bdd2

Browse files
committed
adds reference to J2S.debugClip() URI: (?j2sdebugclip)
1 parent 29b13ec commit 863bdd2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

sources/net.sf.j2s.java.core/src/swingjs/api/js/J2SInterface.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public interface J2SInterface {
1313

1414
HTML5Applet findApplet(String htmlName);
1515

16+
boolean debugClip();
17+
1618
/**
1719
*
1820
* @param isAll true for check of navigator; otherwise just J2S._lang from j2sLang=xx_XX in URI

sources/net.sf.j2s.java.core/srcjs/js/j2sApplet.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ var $ = jQuery;
4040

4141
J2S || (J2S = {
4242
_version: VERSION,
43+
_debugClip: false,
4344
_debugCode: false,
4445
_debugCore: false,
4546
_debugPaint: false,
@@ -90,6 +91,7 @@ var getFlag = function(flag) {
9091
if (getFlag("j2s")) {
9192
// note: these flag checks are purposely loose. "?j2smouse" will set j2smouse and j2smousemove.
9293
J2S._appArgs = getURIField("j2sargs", null); // to be passed on to application
94+
J2S._debugClip = getFlag("j2sdebugclip"); // shows all show/restore and clip operations in JSGraphics2D
9395
J2S._debugCode = getFlag("j2sdebugcode"); // same as j2snocore?
9496
J2S._debugCore = getFlag("j2sdebugcore"); // same as j2snozcore?
9597
J2S._debugPaint = getFlag("j2sdebugpaint"); // repaint manager information
@@ -2343,6 +2345,8 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
23432345
__nextExecution();
23442346
};
23452347

2348+
J2S.debugClip = function() { return J2S._debugClip };
2349+
23462350
var __loadClass = function(applet, javaClass) {
23472351
Clazz._Loader.loadClass(javaClass, function() {
23482352
__nextExecution()

0 commit comments

Comments
 (0)