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