protected SvgBasicShape(SvgDoc doc) : base(doc) { AddAttr(SvgAttribute._SvgAttribute.attrCore_XmlBase, null); AddAttr(SvgAttribute._SvgAttribute.attrCore_XmlLang, null); AddAttr(SvgAttribute._SvgAttribute.attrCore_XmlSpace, null); AddAttr(SvgAttribute._SvgAttribute.attrStyle_Class, null); AddAttr(SvgAttribute._SvgAttribute.attrStyle_Style, null); AddAttr(SvgAttribute._SvgAttribute.attrPaint_Color, Color.Transparent); AddAttr(SvgAttribute._SvgAttribute.attrPaint_Fill, Color.Transparent); AddAttr(SvgAttribute._SvgAttribute.attrPaint_FillRule, 0); AddAttr(SvgAttribute._SvgAttribute.attrPaint_Stroke, Color.Transparent); AddAttr(SvgAttribute._SvgAttribute.attrPaint_StrokeWidth, null); AddAttr(SvgAttribute._SvgAttribute.attrPaint_StrokeDashArray, null); AddAttr(SvgAttribute._SvgAttribute.attrPaint_StrokeDashOffSet, null); AddAttr(SvgAttribute._SvgAttribute.attrPaint_StrokeLineCap, 0); AddAttr(SvgAttribute._SvgAttribute.attrPaint_StrokeLineJoin, 0); AddAttr(SvgAttribute._SvgAttribute.attrPaint_StrokeMiterLimit, null); AddAttr(SvgAttribute._SvgAttribute.attrPaint_ColorInterpolation, 0); AddAttr(SvgAttribute._SvgAttribute.attrPaint_ColorInterpolationFilters, 0); AddAttr(SvgAttribute._SvgAttribute.attrPaint_ColorRendering, 0); AddAttr(SvgAttribute._SvgAttribute.attrGraphics_Display, 0); AddAttr(SvgAttribute._SvgAttribute.attrGraphics_PointerEvents, 0); AddAttr(SvgAttribute._SvgAttribute.attrGraphics_ImageRendering, 0); AddAttr(SvgAttribute._SvgAttribute.attrGraphics_ShapeRendering, 0); AddAttr(SvgAttribute._SvgAttribute.attrGraphics_TextRendering, 0); AddAttr(SvgAttribute._SvgAttribute.attrGraphics_Visiblity, 0); AddAttr(SvgAttribute._SvgAttribute.attrOpacity_Opacity, null); AddAttr(SvgAttribute._SvgAttribute.attrOpacity_FillOpacity, null); AddAttr(SvgAttribute._SvgAttribute.attrOpacity_StrokeOpacity, null); }
/// <summary> /// It constructs a text element with no attribute. /// </summary> /// <param name="doc">SVG document.</param> public SvgText(SvgDoc doc) : base(doc) { m_sElementName = "text"; m_bHasValue = true; m_ElementType = _SvgElementType.typeText; AddAttr(SvgAttribute._SvgAttribute.attrCore_XmlBase, ""); AddAttr(SvgAttribute._SvgAttribute.attrCore_XmlLang, ""); AddAttr(SvgAttribute._SvgAttribute.attrCore_XmlSpace, ""); AddAttr(SvgAttribute._SvgAttribute.attrPaint_Fill, ""); AddAttr(SvgAttribute._SvgAttribute.attrSpecific_X, ""); AddAttr(SvgAttribute._SvgAttribute.attrSpecific_Y, ""); AddAttr(SvgAttribute._SvgAttribute.attrSpecific_DX, ""); AddAttr(SvgAttribute._SvgAttribute.attrSpecific_DY, ""); AddAttr(SvgAttribute._SvgAttribute.attrSpecific_Rotate, ""); AddAttr(SvgAttribute._SvgAttribute.attrSpecific_TextLength, ""); AddAttr(SvgAttribute._SvgAttribute.attrSpecific_LengthAdjust, 0); AddAttr(SvgAttribute._SvgAttribute.attrText_Anchor, ""); AddAttr(SvgAttribute._SvgAttribute.attrStyle_Class, ""); AddAttr(SvgAttribute._SvgAttribute.attrStyle_Style, ""); AddAttr(SvgAttribute._SvgAttribute.attrFont_Family, ""); AddAttr(SvgAttribute._SvgAttribute.attrFont_Size, ""); AddAttr(SvgAttribute._SvgAttribute.attrFont_SizeAdjust, ""); AddAttr(SvgAttribute._SvgAttribute.attrFont_Stretch, 0); AddAttr(SvgAttribute._SvgAttribute.attrFont_Style, ""); AddAttr(SvgAttribute._SvgAttribute.attrFont_Variant, ""); AddAttr(SvgAttribute._SvgAttribute.attrFont_Weight, ""); }
/// <summary> /// It constructs a circle element. /// </summary> /// <param name="doc">SVG document.</param> /// <param name="sCX"></param> /// <param name="sCY"></param> /// <param name="sRadius"></param> public SvgCircle(SvgDoc doc, string sCX, string sCY, string sRadius) : base(doc) { Init(); CX = sCX; CY = sCY; R = sRadius; }
/// <summary> /// It constructs an ellipse element. /// </summary> /// <param name="doc">SVG document.</param> /// <param name="sCX"></param> /// <param name="sCY"></param> /// <param name="sRX"></param> /// <param name="sRY"></param> public SvgEllipse(SvgDoc doc, string sCX, string sCY, string sRX, string sRY) : base(doc) { Init(); CX = sCX; CY = sCY; RX = sRX; RY = sRY; }
/// <summary> /// It constructs an line element. /// </summary> /// <param name="doc">SVG document.</param> /// <param name="sX1"></param> /// <param name="sY1"></param> /// <param name="sX2"></param> /// <param name="sY2"></param> /// <param name="col"></param> public SvgLine(SvgDoc doc, string sX1, string sY1, string sX2, string sY2, Color col) : base(doc) { Init(); X1 = sX1; Y1 = sY1; X2 = sX2; Y2 = sY2; Fill = col; }
internal SvgRoot(SvgDoc doc) : base(doc) { m_sElementName = "svg"; m_ElementType = _SvgElementType.typeSvg; AddAttr(SvgAttribute._SvgAttribute.attrSvg_XmlNs, ""); AddAttr(SvgAttribute._SvgAttribute.attrSvg_Version, ""); AddAttr(SvgAttribute._SvgAttribute.attrSpecific_Width, ""); AddAttr(SvgAttribute._SvgAttribute.attrSpecific_Height, ""); }
/// <summary> /// It constructs an image element. /// </summary> /// <param name="doc">SVG document.</param> /// <param name="sX"></param> /// <param name="sY"></param> /// <param name="sWidth"></param> /// <param name="sHeight"></param> /// <param name="sHRef"></param> /// <param name="doc"></param> public SvgImage(SvgDoc doc, string sX, string sY, string sWidth, string sHeight, string sHRef) : base(doc) { Init(); X = sX; Y = sY; Width = sWidth; Height = sHeight; HRef = sHRef; }
/// <summary> /// It constructs a rect element. /// </summary> /// <param name="doc">SVG document.</param> /// <param name="sX"></param> /// <param name="sY"></param> /// <param name="sWidth"></param> /// <param name="sHeight"></param> /// <param name="sStrokeWidth"></param> /// <param name="colFill"></param> /// <param name="colStroke"></param> public SvgRect(SvgDoc doc, string sX, string sY, string sWidth, string sHeight, string sStrokeWidth, Color colFill, Color colStroke) : base(doc) { Init(); X = sX; Y = sY; Width = sWidth; StrokeWidth = sStrokeWidth; Height = sHeight; Fill = colFill; Stroke = colStroke; }
// ---------- PUBLIC METHODS END // ---------- PRIVATE METHODS protected SvgElement(SvgDoc doc) { ErrH.Log("SvgElement", "SvgElement", "Element created", ErrH._LogPriority.Info); m_doc = doc; m_attributes = new ArrayList(); AddAttr(SvgAttribute._SvgAttribute.attrCore_Id, null); m_Parent = null; m_Child = null; m_Next = null; m_Previous = null; m_sElementName = "unsupported"; m_sElementValue = ""; m_bHasValue = false; m_ElementType = _SvgElementType.typeUnsupported; }
/// <summary> /// It constructs a polygon element with no attribute. /// </summary> /// <param name="doc">SVG document.</param> public SvgPolygon(SvgDoc doc) : base(doc) { Init(); }
/// <summary> /// It constructs a circle element with no attribute. /// </summary> /// <param name="doc">SVG document.</param> public SvgCircle(SvgDoc doc) : base(doc) { Init(); }
public SvgUnsupported(SvgDoc doc, string sName) : base(doc) { m_sElementName = sName + ":unsupported"; m_ElementType = _SvgElementType.typeUnsupported; }
/// <summary> /// It constructs an image element with no attribute. /// </summary> /// <param name="doc">SVG document.</param> public SvgImage(SvgDoc doc) : base(doc) { Init(); }
/// <summary> /// It constructs an ellipse element with no attribute. /// </summary> /// <param name="doc">SVG document.</param> public SvgEllipse(SvgDoc doc) : base(doc) { Init(); }
/// <summary> /// It constructs a desc element with no attribute. /// </summary> /// <param name="doc">SVG document.</param> public SvgDesc(SvgDoc doc) : base(doc) { Init(); }
/// <summary> /// It constructs a desc element. /// </summary> /// <param name="doc">SVG document.</param> /// <param name="sValue"></param> public SvgDesc(SvgDoc doc, string sValue) : base(doc) { Init(); Value = sValue; }
/// <summary> /// It constructs a path element with no attribute. /// </summary> /// <param name="doc">SVG document.</param> public SvgPath(SvgDoc doc) : base(doc) { Init(); }
/// <summary> /// It constructs a path element. /// </summary> /// <param name="doc"></param> /// <param name="sPathData">SVG document.</param> public SvgPath(SvgDoc doc, string sPathData) : base(doc) { Init(); PathData = sPathData; }
/// <summary> /// It constructs an line element with no attribute. /// </summary> /// <param name="doc">SVG document.</param> public SvgLine(SvgDoc doc) : base(doc) { Init(); }
/// <summary> /// It constructs a rect element with no attribute. /// </summary> /// <param name="doc">SVG document.</param> public SvgRect(SvgDoc doc) : base(doc) { Init(); }
/// <summary> /// It constructs a group element with no attribute. /// </summary> /// <param name="doc">SVG document.</param> public SvgGroup(SvgDoc doc) : base(doc) { m_sElementName = "g"; m_ElementType = _SvgElementType.typeGroup; }
/// <summary> /// It constructs a polygon element. /// </summary> /// <param name="doc">SVG document.</param> /// <param name="sPoints"></param> public SvgPolyline(SvgDoc doc, string sPoints) : base(doc) { Init(); Points = sPoints; }
/// <summary> /// It constructs a polygon element with no attribute. /// </summary> /// <param name="doc">SVG document.</param> public SvgPolyline(SvgDoc doc) : base(doc) { Init(); }