Esempio n. 1
0
 public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, IList <Rectangle> floatedRendererAreas
                      , bool clippedHeight)
     : this(area, marginsCollapseInfo)
 {
     if (floatedRendererAreas != null)
     {
         this.floatRendererAreas = floatedRendererAreas;
     }
     this.clippedHeight = clippedHeight;
 }
Esempio n. 2
0
        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());
        }
Esempio n. 3
0
 public LayoutContext(LayoutArea area)
 {
     this.area = area;
 }
Esempio n. 4
0
 /// <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)
 {
 }
Esempio n. 5
0
 /// <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;
 }
Esempio n. 6
0
 public LayoutContext(LayoutArea area, bool clippedHeight)
     : this(area) {
     this.clippedHeight = clippedHeight;
 }
Esempio n. 7
0
 public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo)
 {
     this.area = area;
     this.marginsCollapseInfo = marginsCollapseInfo;
 }
Esempio n. 8
0
 /// <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)
 {
 }
Esempio n. 9
0
 public MinMaxWidthLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer
                                , IRenderer cause)
     : base(status, occupiedArea, splitRenderer, overflowRenderer, cause)
 {
     minMaxWidth = new MinMaxWidth();
 }
Esempio n. 10
0
 /// <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)
 {
 }