Class TSVGElement

Unit

Declaration

type TSVGElement = class(TSVGCustomElement)

Description

SVG element on any type

Hierarchy

Overview

Fields

Protected FDataLink: TSVGDataLink;

Methods

Public constructor Create(AElement: TDOMElement; AUnits: TCSSUnitConverter; ADataLink: TSVGDataLink); overload; virtual;
Public constructor Create(ADocument: TDOMDocument; AUnits: TCSSUnitConverter; ADataLink: TSVGDataLink); overload; virtual;
Public destructor Destroy; override;
Public function fillMode: TSVGFillMode;
Public class function GetDOMTag: string; virtual;
Protected function GetStyleFromStyleSheet(const AName,ADefault: string): string; override;
Public procedure ConvertToUnit(AUnit: TCSSUnit); override;
Public procedure CopyPathTo(ACanvas2d: TBGRACanvas2D; AUnit: TCSSUnit);
Public procedure Draw(ACanvas2d: TBGRACanvas2D; AUnit: TCSSUnit);
Public procedure fillNone;
Public procedure ListIdentifiers(AResult: TStringList); virtual;
Public procedure Recompute; virtual;
Public procedure RenameIdentifiers(AFrom, ATo: TStringList); virtual;
Public procedure strokeDashArrayNone;
Public procedure strokeNone;
Public procedure transformNone;
Protected procedure ApplyFillStyle(ACanvas2D: TBGRACanvas2D; AUnit: TCSSUnit); virtual;
Protected procedure ApplyStrokeStyle(ACanvas2D: TBGRACanvas2D; AUnit: TCSSUnit); virtual;
Protected procedure Init(AElement: TDOMElement; AUnits: TCSSUnitConverter); overload;
Protected procedure Init(ADocument: TDOMDocument; ATag: string; AUnits: TCSSUnitConverter); overload;
Protected procedure Initialize; virtual;
Protected procedure InternalCopyPathTo(ACanvas2d: TBGRACanvas2D; AUnit: TCSSUnit); virtual;
Protected procedure InternalDraw(ACanvas2d: TBGRACanvas2D; AUnit: TCSSUnit); virtual;
Protected procedure Paint(ACanvas2d: TBGRACanvas2D; AUnit: TCSSUnit);
Protected procedure SetDatalink(AValue: TSVGDataLink); virtual;
Protected procedure SetFill(AValue: string); virtual;
Protected procedure SetStroke(AValue: string); virtual;

Properties

Public property ArrayOfAttributeNumber[AName: string]: ArrayOfTSVGNumber read GetArrayOfAttributeNumber write SetArrayOfAttributeNumber;
Public property ArrayOfAttributeNumberInherit[AName: string; ACanInherit: boolean]: ArrayOfTSVGNumber read GetArrayOfAttributeNumber;
Public property ArrayOfAttributeWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfAttributeWithUnit write SetArrayOfAttributeWithUnit;
Public property ArrayOfAttributeWithUnitInherit[AName: string; ACanInherit: boolean]: ArrayOfTFloatWithCSSUnit read GetArrayOfAttributeWithUnit;
Public property ArrayOfHorizAttributeOrStyleWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfHorizAttributeOrStyleWithUnit;
Public property ArrayOfHorizAttributeWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfHorizAttributeWithUnit write SetArrayOfHorizAttributeWithUnit;
Public property ArrayOfHorizAttributeWithUnitInherit[AName: string; ACanInherit: boolean]: ArrayOfTFloatWithCSSUnit read GetArrayOfHorizAttributeWithUnit;
Public property ArrayOfOrthoAttributeOrStyleWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfOrthoAttributeOrStyleWithUnit;
Public property ArrayOfOrthoAttributeWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfOrthoAttributeWithUnit write SetArrayOfOrthoAttributeWithUnit;
Public property ArrayOfVerticalAttributeOrStyleWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfVerticalAttributeOrStyleWithUnit;
Public property ArrayOfVerticalAttributeWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfVerticalAttributeWithUnit write SetArrayOfVerticalAttributeWithUnit;
Public property ArrayOfVerticalAttributeWithUnitInherit[AName: string; ACanInherit: boolean]: ArrayOfTFloatWithCSSUnit read GetArrayOfVerticalAttributeWithUnit;
Public property Attribute[AName: string]: string read GetAttribute write SetAttribute;
Public property AttributeDef[AName,ADefault: string]: string read GetAttribute;
Public property AttributeOrStyle[AName: string]: string read GetAttributeOrStyle;
Public property AttributeOrStyleDef[AName,ADefault: string]: string read GetAttributeOrStyle;
Public property AttributeWithUnit[AName: string]: TFloatWithCSSUnit read GetAttributeWithUnit write SetAttributeWithUnit;
Public property AttributeWithUnitDef[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetAttributeWithUnit;
Public property classAttr: string read GetClassAttr write SetClassAttr;
Public property clipPath: string read GetClipPath write SetClipPath;
Public property DataLink: TSVGDataLink read FDataLink write SetDataLink;
Public property DOMElement: TDOMElement read GetDOMElement;
Public property fill: string read GetFill write SetFill;
Public property fillColor: TBGRAPixel read GetFillColor write SetFillColor;
Public property fillOpacity: single read GetFillOpacity write SetFillOpacity;
Public property fillRule: string read GetFillRule write SetFillRule;
Public property HorizAttribute[AName: string]: TSVGNumber read GetHorizAttribute write SetHorizAttribute;
Public property HorizAttributeDef[AName: string; ADefault: TSVGNumber]: TSVGNumber read GetHorizAttribute;
Public property HorizAttributeOrStyleWithUnit[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetHorizAttributeOrStyleWithUnit;
Public property HorizAttributeWithUnit[AName: string]: TFloatWithCSSUnit read GetHorizAttributeWithUnit write SetHorizAttributeWithUnit;
Public property HorizAttributeWithUnitDef[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetHorizAttributeWithUnit;
Public property ID: string read GetID write SetID;
Public property isFillNone: boolean read GetIsFillNone;
Public property isStrokeNone: boolean read GetIsStrokeNone;
Public property mask: string read GetMask write SetMask;
Public property matrix[AUnit: TCSSUnit]: TAffineMatrix read GetMatrix write SetMatrix;
Public property mixBlendMode: TBlendOperation read GetMixBlendMode write SetMixBlendMode;
Public property opacity: single read GetOpacity write SetOpacity;
Public property OrthoAttributeOrStyleWithUnit[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetOrthoAttributeOrStyleWithUnit;
Public property OrthoAttributeWithUnit[AName: string]: TFloatWithCSSUnit read GetOrthoAttributeWithUnit write SetOrthoAttributeWithUnit;
Public property OrthoAttributeWithUnitDef[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetOrthoAttributeWithUnit;
Public property paintOrder: TSVGPaintOrder read GetPaintOrder write SetPaintOrder;
Public property stroke: string read GetStroke write SetStroke;
Public property strokeColor: TBGRAPixel read GetStrokeColor write SetStrokeColor;
Public property strokeDashArray: string read GetStrokeDashArray write SetStrokeDashArray;
Public property strokeDashArrayF: ArrayOfFloat read GetStrokeDashArrayF write SetStrokeDashArrayF;
Public property strokeDashOffset: TFloatWithCSSUnit read GetStrokeDashOffset write SetStrokeDashOffset;
Public property strokeLineCap: string read GetStrokeLineCap write SetStrokeLineCap;
Public property strokeLineCapLCL: TPenEndCap read GetStrokeLineCapLCL write SetStrokeLineCapLCL;
Public property strokeLineJoin: string read GetStrokeLineJoin write SetStrokeLineJoin;
Public property strokeLineJoinLCL: TPenJoinStyle read GetStrokeLineJoinLCL write SetStrokeLineJoinLCL;
Public property strokeMiterLimit: single read GetStrokeMiterLimit write SetStrokeMiterLimit;
Public property strokeOpacity: single read GetStrokeOpacity write SetStrokeOpacity;
Public property strokeWidth: TFloatWithCSSUnit read GetStrokeWidth write SetStrokeWidth;
Public property transform: string read GetTransform write SetTransform;
Public property Units: TCSSUnitConverter read FUnits;
Public property VerticalAttribute[AName: string]: TSVGNumber read GetVerticalAttribute write SetVerticalAttribute;
Public property VerticalAttributeDef[AName: string; ADefault: TSVGNumber]: TSVGNumber read GetVerticalAttribute;
Public property VerticalAttributeOrStyleWithUnit[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetVerticalAttributeOrStyleWithUnit;
Public property VerticalAttributeWithUnit[AName: string]: TFloatWithCSSUnit read GetVerticalAttributeWithUnit write SetVerticalAttributeWithUnit;
Public property VerticalAttributeWithUnitDef[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetVerticalAttributeWithUnit;
Public property Visible: boolean read GetVisible write SetVisible;

Description

Fields

Protected FDataLink: TSVGDataLink;

This item has no description.

Methods

Public constructor Create(AElement: TDOMElement; AUnits: TCSSUnitConverter; ADataLink: TSVGDataLink); overload; virtual;

This item has no description.

Public constructor Create(ADocument: TDOMDocument; AUnits: TCSSUnitConverter; ADataLink: TSVGDataLink); overload; virtual;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function fillMode: TSVGFillMode;

This item has no description.

Public class function GetDOMTag: string; virtual;

This item has no description.

Protected function GetStyleFromStyleSheet(const AName,ADefault: string): string; override;

This item has no description.

Public procedure ConvertToUnit(AUnit: TCSSUnit); override;

This item has no description.

Public procedure CopyPathTo(ACanvas2d: TBGRACanvas2D; AUnit: TCSSUnit);

This item has no description.

Public procedure Draw(ACanvas2d: TBGRACanvas2D; AUnit: TCSSUnit);

This item has no description.

Public procedure fillNone;

This item has no description.

Public procedure ListIdentifiers(AResult: TStringList); virtual;

This item has no description.

Public procedure Recompute; virtual;

This item has no description.

Public procedure RenameIdentifiers(AFrom, ATo: TStringList); virtual;

This item has no description.

Public procedure strokeDashArrayNone;

This item has no description.

Public procedure strokeNone;

This item has no description.

Public procedure transformNone;

This item has no description.

Protected procedure ApplyFillStyle(ACanvas2D: TBGRACanvas2D; AUnit: TCSSUnit); virtual;

This item has no description.

Protected procedure ApplyStrokeStyle(ACanvas2D: TBGRACanvas2D; AUnit: TCSSUnit); virtual;

This item has no description.

Protected procedure Init(AElement: TDOMElement; AUnits: TCSSUnitConverter); overload;

This item has no description.

Protected procedure Init(ADocument: TDOMDocument; ATag: string; AUnits: TCSSUnitConverter); overload;

This item has no description.

Protected procedure Initialize; virtual;

This item has no description.

Protected procedure InternalCopyPathTo(ACanvas2d: TBGRACanvas2D; AUnit: TCSSUnit); virtual;

This item has no description.

Protected procedure InternalDraw(ACanvas2d: TBGRACanvas2D; AUnit: TCSSUnit); virtual;

This item has no description.

Protected procedure Paint(ACanvas2d: TBGRACanvas2D; AUnit: TCSSUnit);

This item has no description.

Protected procedure SetDatalink(AValue: TSVGDataLink); virtual;

This item has no description.

Protected procedure SetFill(AValue: string); virtual;

This item has no description.

Protected procedure SetStroke(AValue: string); virtual;

This item has no description.

Properties

Public property ArrayOfAttributeNumber[AName: string]: ArrayOfTSVGNumber read GetArrayOfAttributeNumber write SetArrayOfAttributeNumber;

This item has no description.

Public property ArrayOfAttributeNumberInherit[AName: string; ACanInherit: boolean]: ArrayOfTSVGNumber read GetArrayOfAttributeNumber;

This item has no description.

Public property ArrayOfAttributeWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfAttributeWithUnit write SetArrayOfAttributeWithUnit;

This item has no description.

Public property ArrayOfAttributeWithUnitInherit[AName: string; ACanInherit: boolean]: ArrayOfTFloatWithCSSUnit read GetArrayOfAttributeWithUnit;

This item has no description.

Public property ArrayOfHorizAttributeOrStyleWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfHorizAttributeOrStyleWithUnit;

This item has no description.

Public property ArrayOfHorizAttributeWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfHorizAttributeWithUnit write SetArrayOfHorizAttributeWithUnit;

This item has no description.

Public property ArrayOfHorizAttributeWithUnitInherit[AName: string; ACanInherit: boolean]: ArrayOfTFloatWithCSSUnit read GetArrayOfHorizAttributeWithUnit;

This item has no description.

Public property ArrayOfOrthoAttributeOrStyleWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfOrthoAttributeOrStyleWithUnit;

This item has no description.

Public property ArrayOfOrthoAttributeWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfOrthoAttributeWithUnit write SetArrayOfOrthoAttributeWithUnit;

This item has no description.

Public property ArrayOfVerticalAttributeOrStyleWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfVerticalAttributeOrStyleWithUnit;

This item has no description.

Public property ArrayOfVerticalAttributeWithUnit[AName: string]: ArrayOfTFloatWithCSSUnit read GetArrayOfVerticalAttributeWithUnit write SetArrayOfVerticalAttributeWithUnit;

This item has no description.

Public property ArrayOfVerticalAttributeWithUnitInherit[AName: string; ACanInherit: boolean]: ArrayOfTFloatWithCSSUnit read GetArrayOfVerticalAttributeWithUnit;

This item has no description.

Public property Attribute[AName: string]: string read GetAttribute write SetAttribute;

This item has no description.

Public property AttributeDef[AName,ADefault: string]: string read GetAttribute;

This item has no description.

Public property AttributeOrStyle[AName: string]: string read GetAttributeOrStyle;

This item has no description.

Public property AttributeOrStyleDef[AName,ADefault: string]: string read GetAttributeOrStyle;

This item has no description.

Public property AttributeWithUnit[AName: string]: TFloatWithCSSUnit read GetAttributeWithUnit write SetAttributeWithUnit;

This item has no description.

Public property AttributeWithUnitDef[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetAttributeWithUnit;

This item has no description.

Public property classAttr: string read GetClassAttr write SetClassAttr;

This item has no description.

Public property clipPath: string read GetClipPath write SetClipPath;

This item has no description.

Public property DataLink: TSVGDataLink read FDataLink write SetDataLink;

This item has no description.

Public property DOMElement: TDOMElement read GetDOMElement;

This item has no description.

Public property fill: string read GetFill write SetFill;

This item has no description.

Public property fillColor: TBGRAPixel read GetFillColor write SetFillColor;

This item has no description.

Public property fillOpacity: single read GetFillOpacity write SetFillOpacity;

This item has no description.

Public property fillRule: string read GetFillRule write SetFillRule;

This item has no description.

Public property HorizAttribute[AName: string]: TSVGNumber read GetHorizAttribute write SetHorizAttribute;

This item has no description.

Public property HorizAttributeDef[AName: string; ADefault: TSVGNumber]: TSVGNumber read GetHorizAttribute;

This item has no description.

Public property HorizAttributeOrStyleWithUnit[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetHorizAttributeOrStyleWithUnit;

This item has no description.

Public property HorizAttributeWithUnit[AName: string]: TFloatWithCSSUnit read GetHorizAttributeWithUnit write SetHorizAttributeWithUnit;

This item has no description.

Public property HorizAttributeWithUnitDef[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetHorizAttributeWithUnit;

This item has no description.

Public property ID: string read GetID write SetID;

This item has no description.

Public property isFillNone: boolean read GetIsFillNone;

This item has no description.

Public property isStrokeNone: boolean read GetIsStrokeNone;

This item has no description.

Public property mask: string read GetMask write SetMask;

This item has no description.

Public property matrix[AUnit: TCSSUnit]: TAffineMatrix read GetMatrix write SetMatrix;

This item has no description.

Public property mixBlendMode: TBlendOperation read GetMixBlendMode write SetMixBlendMode;

This item has no description.

Public property opacity: single read GetOpacity write SetOpacity;

This item has no description.

Public property OrthoAttributeOrStyleWithUnit[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetOrthoAttributeOrStyleWithUnit;

This item has no description.

Public property OrthoAttributeWithUnit[AName: string]: TFloatWithCSSUnit read GetOrthoAttributeWithUnit write SetOrthoAttributeWithUnit;

This item has no description.

Public property OrthoAttributeWithUnitDef[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetOrthoAttributeWithUnit;

This item has no description.

Public property paintOrder: TSVGPaintOrder read GetPaintOrder write SetPaintOrder;

This item has no description.

Public property stroke: string read GetStroke write SetStroke;

This item has no description.

Public property strokeColor: TBGRAPixel read GetStrokeColor write SetStrokeColor;

This item has no description.

Public property strokeDashArray: string read GetStrokeDashArray write SetStrokeDashArray;

This item has no description.

Public property strokeDashArrayF: ArrayOfFloat read GetStrokeDashArrayF write SetStrokeDashArrayF;

This item has no description.

Public property strokeDashOffset: TFloatWithCSSUnit read GetStrokeDashOffset write SetStrokeDashOffset;

This item has no description.

Public property strokeLineCap: string read GetStrokeLineCap write SetStrokeLineCap;

This item has no description.

Public property strokeLineCapLCL: TPenEndCap read GetStrokeLineCapLCL write SetStrokeLineCapLCL;

This item has no description.

Public property strokeLineJoin: string read GetStrokeLineJoin write SetStrokeLineJoin;

This item has no description.

Public property strokeLineJoinLCL: TPenJoinStyle read GetStrokeLineJoinLCL write SetStrokeLineJoinLCL;

This item has no description.

Public property strokeMiterLimit: single read GetStrokeMiterLimit write SetStrokeMiterLimit;

This item has no description.

Public property strokeOpacity: single read GetStrokeOpacity write SetStrokeOpacity;

This item has no description.

Public property strokeWidth: TFloatWithCSSUnit read GetStrokeWidth write SetStrokeWidth;

This item has no description.

Public property transform: string read GetTransform write SetTransform;

This item has no description.

Public property Units: TCSSUnitConverter read FUnits;

This item has no description.

Public property VerticalAttribute[AName: string]: TSVGNumber read GetVerticalAttribute write SetVerticalAttribute;

This item has no description.

Public property VerticalAttributeDef[AName: string; ADefault: TSVGNumber]: TSVGNumber read GetVerticalAttribute;

This item has no description.

Public property VerticalAttributeOrStyleWithUnit[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetVerticalAttributeOrStyleWithUnit;

This item has no description.

Public property VerticalAttributeWithUnit[AName: string]: TFloatWithCSSUnit read GetVerticalAttributeWithUnit write SetVerticalAttributeWithUnit;

This item has no description.

Public property VerticalAttributeWithUnitDef[AName: string; ADefault: TFloatWithCSSUnit]: TFloatWithCSSUnit read GetVerticalAttributeWithUnit;

This item has no description.

Public property Visible: boolean read GetVisible write SetVisible;

This item has no description.