public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, IList <Rectangle> floatedRendererAreas , bool clippedHeight) : this(area, marginsCollapseInfo) { if (floatedRendererAreas != null) { this.floatRendererAreas = floatedRendererAreas; } this.clippedHeight = clippedHeight; }
public virtual void CloneTest() { RootLayoutArea originalRootLayoutArea = new RootLayoutArea(1, new Rectangle(5, 10, 15, 20)); originalRootLayoutArea.emptyArea = false; LayoutArea cloneAsLayoutArea = ((LayoutArea)originalRootLayoutArea).Clone(); RootLayoutArea cloneAsRootLayoutArea = (RootLayoutArea)originalRootLayoutArea.Clone(); NUnit.Framework.Assert.IsTrue((originalRootLayoutArea).GetBBox() != cloneAsLayoutArea.GetBBox()); NUnit.Framework.Assert.AreEqual(typeof(RootLayoutArea), cloneAsRootLayoutArea.GetType()); NUnit.Framework.Assert.AreEqual(typeof(RootLayoutArea), cloneAsLayoutArea.GetType()); NUnit.Framework.Assert.IsFalse(((RootLayoutArea)cloneAsLayoutArea).IsEmptyArea()); }
public LayoutContext(LayoutArea area) { this.area = area; }
/// <summary> /// Creates the /// <see cref="LayoutResult"/> /// result of /// <see cref="iText.Layout.Renderer.LineRenderer.Layout(LayoutContext)">layouting</see> /// }. /// </summary> /// <remarks> /// Creates the /// <see cref="LayoutResult"/> /// result of /// <see cref="iText.Layout.Renderer.LineRenderer.Layout(LayoutContext)">layouting</see> /// }. /// The /// <see cref="LayoutResult.causeOfNothing"/> /// will be set as null. /// </remarks> /// <param name="status"> /// the status of /// <see cref="iText.Layout.Renderer.LineRenderer.Layout(LayoutContext)"/> /// </param> /// <param name="occupiedArea">the area occupied by the content</param> /// <param name="splitRenderer">the renderer to draw the splitted part of the content</param> /// <param name="overflowRenderer">the renderer to draw the overflowed part of the content</param> public LineLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer ) : base(status, occupiedArea, splitRenderer, overflowRenderer) { }
/// <summary> /// Creates the /// <see cref="LayoutResult"/> /// result of /// <see cref="iText.Layout.Renderer.IRenderer.Layout(LayoutContext)">layouting</see> /// }. /// </summary> /// <param name="status"> /// the status of /// <see cref="iText.Layout.Renderer.IRenderer.Layout(LayoutContext)"/> /// </param> /// <param name="occupiedArea">the area occupied by the content</param> /// <param name="splitRenderer">the renderer to draw the splitted part of the content</param> /// <param name="overflowRenderer">the renderer to draw the overflowed part of the content</param> /// <param name="cause"> /// the first renderer to produce /// <see cref="NOTHING"/> /// </param> public LayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer , IRenderer cause) : this(status, occupiedArea, splitRenderer, overflowRenderer) { causeOfNothing = cause; }
public LayoutContext(LayoutArea area, bool clippedHeight) : this(area) { this.clippedHeight = clippedHeight; }
public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo) { this.area = area; this.marginsCollapseInfo = marginsCollapseInfo; }
/// <summary> /// Creates the /// <see cref="LayoutResult"/> /// result of /// <see cref="iText.Layout.Renderer.IRenderer.Layout(LayoutContext)">layouting</see> /// }. /// </summary> /// <remarks> /// Creates the /// <see cref="LayoutResult"/> /// result of /// <see cref="iText.Layout.Renderer.IRenderer.Layout(LayoutContext)">layouting</see> /// }. /// The /// <see cref="causeOfNothing"/> /// will be set as null. /// </remarks> /// <param name="status"> /// the status of /// <see cref="iText.Layout.Renderer.IRenderer.Layout(LayoutContext)"/> /// </param> /// <param name="occupiedArea">the area occupied by the content</param> /// <param name="splitRenderer">the renderer to draw the splitted part of the content</param> /// <param name="overflowRenderer">the renderer to draw the overflowed part of the content</param> public LayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer ) : this(status, occupiedArea, splitRenderer, overflowRenderer, null) { }
public MinMaxWidthLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer , IRenderer cause) : base(status, occupiedArea, splitRenderer, overflowRenderer, cause) { minMaxWidth = new MinMaxWidth(); }
/// <summary> /// Creates the /// <see cref="LayoutResult"/> /// result of /// <see cref="iText.Layout.Renderer.TextRenderer.Layout(LayoutContext)">layouting</see> /// }. /// </summary> /// <param name="status"> /// the status of /// <see cref="iText.Layout.Renderer.TextRenderer.Layout(LayoutContext)"/> /// </param> /// <param name="occupiedArea">the area occupied by the content</param> /// <param name="splitRenderer">the renderer to draw the splitted part of the content</param> /// <param name="overflowRenderer">the renderer to draw the overflowed part of the content</param> /// <param name="cause"> /// the first renderer to produce /// <see cref="LayoutResult.NOTHING"/> /// </param> public TextLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer , IRenderer cause) : base(status, occupiedArea, splitRenderer, overflowRenderer, cause) { }
public LineLayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, IList <Rectangle> floatedRendererAreas , bool clippedHeight) : base(area, marginsCollapseInfo, floatedRendererAreas, clippedHeight) { }