/// <summary> /// Class's constructor /// </summary> public pdfTableRowStyle(predefinedFont fontType, int fontSize, pdfColor fontColor, pdfColor bgColor) { _fontType = fontType; _fontSize = fontSize; _fontColor = fontColor; _bgColor = bgColor; }
/// <summary> /// Class's constructor /// </summary> public pdfTableRowStyle(predefinedFont fontType, int fontSize, predefinedColor fontColor, predefinedColor bgColor) { _fontType = fontType; _fontSize = fontSize; _fontColor = new pdfColor(fontColor); _bgColor = new pdfColor(bgColor); }
/// <summary> /// Class's constructor /// </summary> /// <param name="newContent">Text of the paragraph</param> /// <param name="newFontSize">Font's size</param> /// <param name="newFontType">Font's type</param> /// <param name="newCoordX">X position in the PDF document</param> /// <param name="newCoordY">Y position in the PDF document</param> /// <param name="newStrokeColor">Font's color</param> public paragraphElement(IEnumerable newContent, int newFontSize, predefinedFont newFontType, int newCoordX, int newCoordY, pdfColor newStrokeColor) { _content = newContent; _fontSize = newFontSize; _fontType = newFontType; _coordX = newCoordX; _coordY = newCoordY; _strokeColor = newStrokeColor; }
/// <summary> /// Class's constructor /// </summary> /// <param name="X">X position in the PDF document</param> /// <param name="Y">Y position in the PDF document</param> /// <param name="Ray">Ray of the circle</param> /// <param name="strokeColor">Color of circle's border</param> /// <param name="fillColor">Color of the circle</param> /// <param name="newWidth">Border's size</param> public circleElement(int X, int Y, int Ray, predefinedColor strokeColor, predefinedColor fillColor, int newWidth) { _coordX = X; _coordY = Y; _ray = Ray; _strokeColor = new pdfColor(strokeColor); _fillColor = new pdfColor(fillColor); _lineStyle = new pdfLineStyle(newWidth, predefinedLineStyle.csNormal); }
/// <summary> /// Class's constructor /// </summary> /// <param name="X">X position in the PDF document</param> /// <param name="Y">Y position in the PDF document</param> /// <param name="Ray">Ray of the circle</param> /// <param name="strokeColor">Color of circle's border</param> /// <param name="fillColor">Color of the circle</param> /// <param name="newStyle">Border's style</param> public circleElement(int X, int Y, int Ray, predefinedColor strokeColor, predefinedColor fillColor, predefinedLineStyle newStyle) { _coordX = X; _coordY = Y; _ray = Ray; _strokeColor = new pdfColor(strokeColor); _fillColor = new pdfColor(fillColor); _lineStyle = new pdfLineStyle(1, newStyle); }
/// <summary> /// Class's constructor /// </summary> /// <param name="X">X position in the PDF document</param> /// <param name="Y">Y position in the PDF document</param> /// <param name="Ray">Ray of the circle</param> /// <param name="strokeColor">Color of circle's border</param> /// <param name="fillColor">Color of the circle</param> public circleElement(int X, int Y, int Ray, pdfColor strokeColor, pdfColor fillColor) { _coordX = X; _coordY = Y; _ray = Ray; _strokeColor = strokeColor; _fillColor = fillColor; _lineStyle = new pdfLineStyle(1, predefinedLineStyle.csNormal); }
/// <summary> /// Class's constructor /// </summary> /// <param name="newContent">Text's content</param> /// <param name="newFontSize">Font's size</param> /// <param name="newFontType">Font's type</param> /// <param name="newCoordX">X position of the text in the page</param> /// <param name="newCoordY">Y position of the text in the page</param> /// <param name="newStrokeColor">Font's color</param> public textElement(string newContent, int newFontSize, predefinedFont newFontType, int newCoordX, int newCoordY, pdfColor newStrokeColor) { _content = newContent; _fontSize = newFontSize; _fontType = newFontType; _coordX = newCoordX; _coordY = newCoordY; _strokeColor = newStrokeColor; }
/// <summary> /// Method that adds a rectangle to the page object /// </summary> /// <param name="X">X position of the rectangle in the page</param> /// <param name="Y">Y position of the rectangle in the page</param> /// <param name="X1">X1 position of the rectangle in the page</param> /// <param name="Y1">Y1 position of the rectangle in the page</param> /// <param name="strokeColor">Border's color</param> /// <param name="fillColor">Rectancle's color</param> /// <param name="newWidth">Border's width</param> public rectangleElement(int X, int Y, int X1, int Y1, predefinedColor strokeColor, predefinedColor fillColor, int newWidth) { _coordX = X; _coordY = Y; _coordX1 = X1; _coordY1 = Y1; _strokeColor = new pdfColor(strokeColor); _fillColor = new pdfColor(fillColor); _lineStyle = new pdfLineStyle(newWidth, predefinedLineStyle.csNormal); }
/// <summary> /// Class's Constructor /// </summary> public pdfTable() { _tableHeader = new pdfTableHeader(); _tableHeaderStyle = new pdfTableRowStyle(predefinedFont.csHelvetica, 10, predefinedColor.csBlack, predefinedColor.csWhite); _rowStyle = new pdfTableRowStyle(predefinedFont.csHelvetica, 10, predefinedColor.csBlack, predefinedColor.csWhite); _alternateRowStyle = null; _borderSize = 1; _borderColor = new pdfColor(predefinedColor.csBlack); _cellpadding = 5; }
/// <summary> /// Class's constructor /// </summary> /// <param name="X">X position of the rectangle in the page</param> /// <param name="Y">Y position of the rectangle in the page</param> /// <param name="X1">X1 position of the rectangle in the page</param> /// <param name="Y1">Y1 position of the rectangle in the page</param> /// <param name="strokeColor">Border's color</param> /// <param name="fillColor">Rectancle's color</param> public rectangleElement(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor) { _coordX = X; _coordY = Y; _coordX1 = X1; _coordY1 = Y1; _strokeColor = strokeColor; _fillColor = fillColor; _lineStyle = new pdfLineStyle(1, predefinedLineStyle.csNormal); }
/// <summary> /// Method that adds a rectangle to the page object [DEPRECATED] /// </summary> /// <param name="X">X position of the rectangle in the page</param> /// <param name="Y">Y position of the rectangle in the page</param> /// <param name="X1">X1 position of the rectangle in the page</param> /// <param name="Y1">Y1 position of the rectangle in the page</param> /// <param name="strokeColor">Border's color</param> /// <param name="fillColor">Rectancle's color</param> /// <param name="newStyle">Border's style</param> public rectangleElement(int X, int Y, int X1, int Y1, predefinedColor strokeColor, predefinedColor fillColor, predefinedLineStyle newStyle) { _coordX = X; _coordY = Y; _coordX1 = X1; _coordY1 = Y1; _strokeColor = new pdfColor(strokeColor); _fillColor = new pdfColor(fillColor); _lineStyle = new pdfLineStyle(1, newStyle); }
/// <summary> /// Method that adds a rectangle to the page object /// </summary> /// <param name="X">X position of the rectangle in the page</param> /// <param name="Y">Y position of the rectangle in the page</param> /// <param name="X1">X1 position of the rectangle in the page</param> /// <param name="Y1">Y1 position of the rectangle in the page</param> /// <param name="strokeColor">Border's color</param> /// <param name="fillColor">Rectancle's color</param> /// <param name="newWidth">Border's width</param> /// <param name="newStyle">Border's style</param> public rectangleElement(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor, int newWidth, predefinedLineStyle newStyle) { _coordX = X; _coordY = Y; _coordX1 = X1; _coordY1 = Y1; _strokeColor = strokeColor; _fillColor = fillColor; _lineStyle = new pdfLineStyle(newWidth, newStyle); }
/// <summary> /// Method that adds a rectangle to the page object /// </summary> /// <param name="X">X position of the rectangle in the page</param> /// <param name="Y">Y position of the rectangle in the page</param> /// <param name="X1">X1 position of the rectangle in the page</param> /// <param name="Y1">Y1 position of the rectangle in the page</param> /// <param name="strokeColor">Border's color</param> /// <param name="fillColor">Rectancle's color</param> /// <param name="newStyle">Border's style</param> public rectangleElement(int X, int Y, int X1, int Y1, predefinedColor strokeColor, predefinedColor fillColor, predefinedLineStyle newStyle) { _coordX = X; _coordY = Y; _coordX1 = X1; _coordY1 = Y1; _strokeColor = new pdfColor(strokeColor); _fillColor = new pdfColor(fillColor); _lineStyle = new pdfLineStyle(1, newStyle); }
/// <summary> /// Class's constructor /// </summary> /// <param name="X">X position in the PDF document</param> /// <param name="Y">Y position in the PDF document</param> /// <param name="X1">X1 position in the PDF document</param> /// <param name="Y1">Y1 position in the PDF document</param> /// <param name="newWidth">Line's size</param> /// <param name="newStyle">Line's style</param> /// <param name="newColor">Line's color</param> public lineElement(int X, int Y, int X1, int Y1, int newWidth, predefinedLineStyle newStyle, predefinedColor newColor) { _coordX = X; _coordY = Y; _coordX1 = X1; _coordY1 = Y1; _strokeColor = new pdfColor(newColor); _lineStyle = new pdfLineStyle(newWidth, newStyle); }
/// <summary> /// Method that adds a paragraph to the page object /// </summary> /// <param name="newText">Text</param> /// <param name="x">X position of the text in the page</param> /// <param name="y">Y position of the text in the page</param> /// <param name="fontType">Font's type</param> /// <param name="fontSize">Font's size</param> /// <param name="parWidth">Paragraph's width</param> /// <param name="fontColor">Font's color</param> public void addParagraph(string newText, int x, int y, predefinedFont fontType, int fontSize, int parWidth, pdfColor fontColor) { paragraphElement objParagraph = new paragraphElement(textAdapter.formatParagraph(newText, fontSize, fontType, parWidth), fontSize, fontType, x, y, fontColor); _elements.Add(objParagraph); objParagraph = null; }
/// <summary> /// Method that adds a line to the page object /// </summary> /// <param name="X">X position of the line in the page</param> /// <param name="Y">Y position of the line in the page</param> /// <param name="X1">X1 position of the line in the page</param> /// <param name="Y1">Y1 position of the line in the page</param> /// <param name="lineColor">Line's color</param> /// <param name="lineWidth">Line's size</param> public void drawLine(int X, int Y, int X1, int Y1, pdfColor lineColor, int lineWidth) { lineElement objLine = new lineElement(X, Y, X1, Y1, lineWidth, lineColor); _elements.Add(objLine); objLine = null; }
/// <summary> /// Method that adds a rectangle to the page object /// </summary> /// <param name="X">X position of the rectangle in the page</param> /// <param name="Y">Y position of the rectangle in the page</param> /// <param name="X1">X1 position of the rectangle in the page</param> /// <param name="Y1">Y1 position of the rectangle in the page</param> /// <param name="strokeColor">Border's color</param> /// <param name="fillColor">Rectancle's color</param> /// <param name="borderWidth">Border's size</param> /// <param name="borderStyle">Border's style</param> public void drawRectangle(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor, int borderWidth, predefinedLineStyle borderStyle) { rectangleElement objRectangle = new rectangleElement(X, Y, X1, Y1, strokeColor, fillColor, borderWidth, borderStyle); _persistentElements.Add(objRectangle); objRectangle = null; }
/// <summary> /// Method that adds a line to the page object /// </summary> /// <param name="X">X position of the line in the page</param> /// <param name="Y">Y position of the line in the page</param> /// <param name="X1">X1 position of the line in the page</param> /// <param name="Y1">Y1 position of the line in the page</param> /// <param name="lineStyle">Line's style</param> /// <param name="lineColor">Line's color</param> /// <param name="lineWidth">Line's size</param> public void drawLine(int X, int Y, int X1, int Y1, predefinedLineStyle lineStyle, pdfColor lineColor, int lineWidth) { lineElement objLine = new lineElement(X, Y, X1, Y1, lineWidth, lineStyle, lineColor); _persistentElements.Add(objLine); objLine = null; }
/// <summary> /// Method that adds a rectangle to the page object /// </summary> /// <param name="X">X position of the rectangle in the page</param> /// <param name="Y">Y position of the rectangle in the page</param> /// <param name="X1">X1 position of the rectangle in the page</param> /// <param name="Y1">Y1 position of the rectangle in the page</param> /// <param name="strokeColor">Border's color</param> /// <param name="fillColor">Rectancle's color</param> public void drawRectangle(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor) { rectangleElement objRectangle = new rectangleElement(X, Y, X1, Y1, strokeColor, fillColor); _persistentElements.Add(objRectangle); objRectangle = null; }
/// <summary> /// Method that adds a line to the page object /// </summary> /// <param name="X">X position of the line in the page</param> /// <param name="Y">Y position of the line in the page</param> /// <param name="X1">X1 position of the line in the page</param> /// <param name="Y1">Y1 position of the line in the page</param> /// <param name="lineColor">Line's color</param> public void drawLine(int X, int Y, int X1, int Y1, pdfColor lineColor) { lineElement objLine = new lineElement(X, Y, X1, Y1, lineColor); _persistentElements.Add(objLine); objLine = null; }
/// <summary> /// Method that adds a circle to the page object /// </summary> /// <param name="X">X position of the circle in the page</param> /// <param name="Y">Y position of the circle in the page</param> /// <param name="ray">Circle's ray</param> /// <param name="strokeColor">Border's color</param> /// <param name="fillColor">Circle's color</param> /// <param name="borderStyle">Border's style</param> /// <param name="borderWidth">Border's size</param> public void drawCircle(int X, int Y, int ray, pdfColor strokeColor, pdfColor fillColor, predefinedLineStyle borderStyle, int borderWidth) { circleElement objCircle = new circleElement(X, Y, ray, strokeColor, fillColor, borderWidth, borderStyle); _persistentElements.Add(objCircle); objCircle = null; }
/// <summary> /// Method that adds a circle to the page object /// </summary> /// <param name="X">X position of the circle in the page</param> /// <param name="Y">Y position of the circle in the page</param> /// <param name="ray">Circle's ray</param> /// <param name="strokeColor">Border's color</param> /// <param name="fillColor">Circle's color</param> public void drawCircle(int X, int Y, int ray, pdfColor strokeColor, pdfColor fillColor) { circleElement objCircle = new circleElement(X, Y, ray, strokeColor, fillColor); _persistentElements.Add(objCircle); objCircle = null; }
/// <summary> /// Method that adds a paragraph to the page object /// </summary> /// <param name="newText">Interface IEnumerable that contains paragraphLine objects</param> /// <param name="x">X position of the text in the page</param> /// <param name="y">Y position of the text in the page</param> /// <param name="fontType">Font's type</param> /// <param name="fontSize">Font's size</param> /// <param name="fontColor">Font's color</param> public void addParagraph(IEnumerable newText, int x, int y, predefinedFont fontType, int fontSize, pdfColor fontColor) { try { paragraphElement objParagraph = new paragraphElement(newText, fontSize, fontType, x, y, fontColor); _persistentElements.Add(objParagraph); objParagraph = null; } catch (pdfIncorrectParagraghException ex) { throw new pdfIncorrectParagraghException(); } }
/// <summary> /// Method that adds a rectangle to the page object /// </summary> /// <param name="X">X position of the rectangle in the page</param> /// <param name="Y">Y position of the rectangle in the page</param> /// <param name="X1">X1 position of the rectangle in the page</param> /// <param name="Y1">Y1 position of the rectangle in the page</param> /// <param name="strokeColor">Border's color</param> /// <param name="fillColor">Rectancle's color</param> /// <param name="borderWidth">Border's size</param> public void drawRectangle(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor, int borderWidth) { rectangleElement objRectangle = new rectangleElement(X, Y, X1, Y1, strokeColor, fillColor, borderWidth); _elements.Add(objRectangle); objRectangle = null; }
/// <summary> /// Method that adds a paragraph to the page object /// </summary> /// <param name="newText">Interface IEnumerable that contains paragraphLine objects</param> /// <param name="x">X position of the text in the page</param> /// <param name="y">Y position of the text in the page</param> /// <param name="fontType">Font's type</param> /// <param name="fontSize">Font's size</param> /// <param name="fontColor">Font's color</param> public void addParagraph(IEnumerable newText, int x, int y, predefinedFont fontType, int fontSize, pdfColor fontColor) { try { paragraphElement objParagraph = new paragraphElement(newText, fontSize, fontType, x, y, fontColor); _persistentElements.Add(objParagraph); objParagraph = null; } catch (pdfIncorrectParagraghException ex) { UnityEngine.Debug.Log ( ex ); throw new pdfIncorrectParagraghException(); } }
/// <summary> /// Method that adds a paragraph to the page object /// </summary> /// <param name="newText">Text</param> /// <param name="x">X position of the text in the page</param> /// <param name="y">Y position of the text in the page</param> /// <param name="fontType">Font's type</param> /// <param name="fontSize">Font's size</param> /// <param name="parWidth">Paragraph's width</param> /// <param name="lineHeight">Line's height</param> /// <param name="parAlign">Paragraph's alignment</param> /// <param name="fontColor">Font's color</param> public void addParagraph(string newText, int x, int y, predefinedFont fontType, int fontSize, int parWidth, int lineHeight, predefinedAlignment parAlign, pdfColor fontColor) { paragraphElement objParagraph = new paragraphElement(textAdapter.formatParagraph(newText, fontSize, fontType, parWidth, lineHeight, parAlign), fontSize, fontType, x, y, fontColor); _persistentElements.Add(objParagraph); objParagraph = null; }
/// <summary> /// Method that adds a circle to the page object /// </summary> /// <param name="X">X position of the circle in the page</param> /// <param name="Y">Y position of the circle in the page</param> /// <param name="ray">Circle's ray</param> /// <param name="strokeColor">Border's color</param> /// <param name="fillColor">Circle's color</param> /// <param name="borderWidth">Border's size</param> public void drawCircle(int X, int Y, int ray, pdfColor strokeColor, pdfColor fillColor, int borderWidth) { circleElement objCircle = new circleElement(X, Y, ray, strokeColor, fillColor, borderWidth); _elements.Add(objCircle); objCircle = null; }
/// <summary> /// Method that adds a text element to the page object /// </summary> /// <param name="newText">Text</param> /// <param name="X">X position of the text in the page</param> /// <param name="Y">Y position of the text in the page</param> /// <param name="fontType">Font's type</param> /// <param name="fontSize">Font's size</param> /// <param name="fontColor">Font's color</param> public void addText(string newText, int X, int Y, predefinedFont fontType, int fontSize, pdfColor fontColor) { textElement objText = new textElement(newText, fontSize, fontType, X, Y, fontColor); _persistentElements.Add(objText); objText = null; }
/// <summary> /// Class's constructor /// </summary> /// <param name="X">X position in the PDF document</param> /// <param name="Y">Y position in the PDF document</param> /// <param name="X1">X1 position in the PDF document</param> /// <param name="Y1">Y1 position in the PDF document</param> /// <param name="newColor">Line's color</param> public lineElement(int X, int Y, int X1, int Y1, predefinedColor newColor) { _coordX = X; _coordY = Y; _coordX1 = X1; _coordY1 = Y1; _strokeColor = new pdfColor(newColor); _lineStyle = new pdfLineStyle(1,predefinedLineStyle.csNormal); }
/// <summary> /// Class's constructor /// </summary> /// <param name="X">X position in the PDF document</param> /// <param name="Y">Y position in the PDF document</param> /// <param name="X1">X1 position in the PDF document</param> /// <param name="Y1">Y1 position in the PDF document</param> /// <param name="newWidth">Line's size</param> /// <param name="newStyle">Line's style</param> /// <param name="newColor">Line's color</param> public lineElement(int X, int Y, int X1, int Y1, int newWidth, predefinedLineStyle newStyle, pdfColor newColor) { _coordX = X; _coordY = Y; _coordX1 = X1; _coordY1 = Y1; _strokeColor = newColor; _lineStyle = new pdfLineStyle(newWidth, newStyle); }
/// <summary> /// Class's constructor /// </summary> /// <param name="X">X position in the PDF document</param> /// <param name="Y">Y position in the PDF document</param> /// <param name="Ray">Ray of the circle</param> /// <param name="strokeColor">Color of circle's border</param> /// <param name="fillColor">Color of the circle</param> /// <param name="newWidth">Border's size</param> /// <param name="newStyle">Border's style</param> public circleElement(int X, int Y, int Ray, pdfColor strokeColor, pdfColor fillColor, int newWidth, predefinedLineStyle newStyle) { _coordX = X; _coordY = Y; _ray = Ray; _strokeColor = strokeColor; _fillColor = fillColor; _lineStyle = new pdfLineStyle(newWidth, newStyle); }