node.setMetaData("width", constraint.width);
node.setMetaData("height", constraint.height);
}
public Rectangle internalGetConstraint() {
Node node = getNode();
Integer x = (Integer) node.getMetaData().get("x");
Integer y = (Integer) node.getMetaData().get("y");
Integer width = (Integer) node.getMetaData().get("width");
Integer height = (Integer) node.getMetaData().get("height");
return new Rectangle(
x == null ? 0 : x,
y == null ? 0 : y,
width == null ? -1 : width,
height == null ? -1 : height);