< prev index next >

modules/web/src/main/java/com/sun/javafx/scene/web/Printable.java

Print this page

        

*** 41,50 **** --- 41,66 ---- PrintableHelper.setPrintableAccessor(new PrintableHelper.PrintableAccessor() { @Override public NGNode doCreatePeer(Node node) { return ((Printable) node).doCreatePeer(); } + + @Override + public BaseBounds doComputeGeomBounds(Node node, + BaseBounds bounds, BaseTransform tx) { + return ((Printable) node).doComputeGeomBounds(bounds, tx); + } + + @Override + public boolean doComputeContains(Node node, double localX, double localY) { + return ((Printable) node).doComputeContains(localX, localY); + } + + @Override + public Object doProcessMXNode(Node node, MXNodeAlgorithm alg, MXNodeAlgorithmContext ctx) { + return ((Printable) node).doProcessMXNode(alg, ctx); + } }); } private final WebPage page; private final NGNode peer;
*** 57,75 **** private NGNode doCreatePeer() { return peer; } ! @Override public Object impl_processMXNode(MXNodeAlgorithm alg, MXNodeAlgorithmContext ctx) { return null; } ! @Override public BaseBounds impl_computeGeomBounds(BaseBounds bounds, BaseTransform tx) { return bounds; } ! @Override protected boolean impl_computeContains(double d, double d1) { return false; } private final class Peer extends NGNode { private final int pageIndex; --- 73,100 ---- private NGNode doCreatePeer() { return peer; } ! /* ! * Note: This method MUST only be called via its accessor method. ! */ ! private Object doProcessMXNode(MXNodeAlgorithm alg, MXNodeAlgorithmContext ctx) { return null; } ! /* ! * Note: This method MUST only be called via its accessor method. ! */ ! private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx) { return bounds; } ! /* ! * Note: This method MUST only be called via its accessor method. ! */ ! private boolean doComputeContains(double d, double d1) { return false; } private final class Peer extends NGNode { private final int pageIndex;
< prev index next >