g2d.setTransform(ot);
}
+ @Override
+ public void refresh() {
+ for (IG2DNode node : getSortedNodes()) {
+ if (node.validate()) {
+ node.refresh();
+ }
+ }
+ }
+
+ @Override
+ public void accept(IG2DNodeVisitor visitor) {
+ visitor.enter(this);
+ for (IG2DNode node : getSortedNodes()) {
+ if (node.validate()) {
+ node.accept(visitor);
+ }
+ }
+ visitor.leave(this);
+ }
+
/**
* Return the IDs of the children of this node in ascending Z order. This
* method will always allocate a new result list and sort it. To get the IDs
if(b == null && !ignoreNulls)
return null;
if(b != null) {
- if(bounds == null) {
- bounds = b.getFrame();
- } else {
- bounds.add(b);
+ if(!GeometryUtils.isUndefinedRectangle(b)) {
+ if(bounds == null) {
+ bounds = b.getFrame();
+ } else {
+ bounds.add(b);
+ }
}
}
}
public void synchronizeTransform(double[] data) {
this.setTransform(new AffineTransform(data));
}
+
}