// Wrap the input node so that the primitivePaint
// in GraphicsNodeRable takes the filter, clip....
// into account.
CompositeGraphicsNode comp = new CompositeGraphicsNode();
comp.getChildren().add(node);
GraphicsNodeRable gnr = new GraphicsNodeRable8Bit(comp);
Rectangle2D padBounds = (Rectangle2D)patternRegion.clone();
// When there is overflow, make sure we take the full node bounds into
// account.