public Dimension getSize() {
		if (this.dim == null) {
			ObjectDefinition def = getDefinition();
			if (def != null) {
				int lenx = orientation % 2 == 0 ? def.width : def.height;
				int leny = orientation % 2 == 0 ? def.height : def.width;
				this.dim = new Dimension(lenx, leny);
			} else {
				return new Dimension(1, 1);
			}
		}
		return this.dim;
	}