Canvasã§ããã¹ãæç»ãããã¨æã£ãããGWTCanvasã¯ããã¹ãæç»ã«å¯¾å¿ãã¦ãªãã¦å°ã£ãã
ã¨ãããã¨ã§ãGWTCanvasã§ããã¹ãæç»ããããã«Canvasã®ãã¤ãã£ãã¡ã½ãããå¼ã³åºãJSNIã¡ã½ãããä½ã£ã¦ã¿ãã
private static native void canvasFillText(GWTCanvas c, String str, double x, double y)/*-{ var impl = [email protected]::impl; (impl.@com.google.gwt.widgetideas.graphics.client.impl.GWTCanvasImplDefault::canvasContext).fillText(str, x, y); }-*/; private static native void canvasSetFont(GWTCanvas c, String f)/*-{ var impl = [email protected]::impl; (impl.@com.google.gwt.widgetideas.graphics.client.impl.GWTCanvasImplDefault::canvasContext).font = f; }-*/;
ã»ãã®ã¡ã½ããããã£ã¼ã«ãã使ãããã¨ãã¯ãåãè¦é ã§ä½ã£ã¦ã¿ãã°ããã¨æãã
IEã«ã¯å¯¾å¿ãã¦ããªãã®ã§ãå¤å®ãã¦æ¯ãåããå¿
è¦ã¯ããã¾ãã
ä»åä½ã£ããã®ã¯IEã§ä½¿ããªãåæãªã®ã§ãããhostedã§åããã¨ãã¯IEã³ã³ãã¼ãã³ããªã®ã§ã GWT#isScript() ã§å¤å®ãã¦å¼ã³åºããåãæ¿ãã¾ããã