< prev index next >
modules/javafx.web/src/main/java/com/sun/javafx/sg/prism/web/NGWebView.java
Print this page
@@ -23,12 +23,11 @@
* questions.
*/
package com.sun.javafx.sg.prism.web;
-import java.util.logging.Level;
-import java.util.logging.Logger;
+import com.sun.javafx.logging.PlatformLogger;
import com.sun.javafx.geom.BaseBounds;
import com.sun.javafx.geom.RectBounds;
import com.sun.javafx.geom.transform.BaseTransform;
import com.sun.javafx.sg.prism.NGGroup;
import com.sun.prism.Graphics;
@@ -43,12 +42,12 @@
*
* @author Alexey Ushakov
*/
public final class NGWebView extends NGGroup {
- private final static Logger log =
- Logger.getLogger(NGWebView.class.getName());
+ private final static PlatformLogger log =
+ PlatformLogger.getLogger(NGWebView.class.getName());
private volatile WebPage page;
private volatile float width, height;
public void setPage(WebPage page) {
this.page = page;
@@ -68,11 +67,11 @@
// Invoked on JavaFX User Thread.
public void update() {
if (page != null) {
BaseBounds clip = getClippedBounds(new RectBounds(), BaseTransform.IDENTITY_TRANSFORM);
if (!clip.isEmpty()) {
- log.log(Level.FINEST, "updating rectangle: {0}", clip);
+ log.finest("updating rectangle: {0}", clip);
page.updateContent(new WCRectangle(clip.getMinX(), clip.getMinY(),
clip.getWidth(), clip.getHeight()));
}
}
}
@@ -81,11 +80,11 @@
visualsChanged();
}
// Invoked on Render Thread.
@Override protected void renderContent(Graphics g) {
- log.log(Level.FINEST, "rendering into {0}", g);
+ log.finest("rendering into {0}", g);
if (g == null || page == null || width <= 0 || height <= 0)
return;
WCGraphicsContext gc =
WCGraphicsManager.getGraphicsManager().createGraphicsContext(g);
< prev index next >