UMD.HCIL.Piccolo.PNode.ComputeFullBounds C# (CSharp) Method

ComputeFullBounds() public method

Compute and return the full bounds of this node.
public ComputeFullBounds ( ) : RectangleF
return System.Drawing.RectangleF
		public virtual RectangleF ComputeFullBounds() {
			RectangleF result = UnionOfChildrenBounds;
			if (result != RectangleF.Empty) {
				if (Bounds != Rectangle.Empty) {
					result = RectangleF.Union(result, Bounds);
				}
			} 
			else {
				result = Bounds;
			}

			if (result != RectangleF.Empty) {
				result = LocalToParent(result);
			}

			return result;
		}