CSvgJavaInterfaceImpl Class Reference

class CSvgJavaInterfaceImpl : public CSvgEngineInterfaceImpl
The SVG Engine is fundamental object for 2D rendering. The rendering can only be achieved through the render method provided by the SVG Engine object. NOTE: Java MIDlet can uses multiple SVG Engine objects. NOTE: Java side cannot provide the SVG Engine object for:
  • the SVG Document operations

  • the SVG Element operations

The SVG Rendering Surface functions are not used in java side.

SVG Document

/** The SVG Document represents an XML Document.

The SVG Document is a subset of the Document interface defined in the DOM Level 3 Core. Description of an SVG element in the document tree. Element's id can be set only if it does not already have an id. Elements with non-null id can be inserted, but cannot be removed from the DOM tree.

An SVG element's "traits" value can be read and manipulated. Each trait corresponds to an attribute or property,which is parsed and understood by the element and in most cases animatable. Unlike attributes, each element has a well-defined set of traits and attempting to access undefined trait is an error. Also unlike attributes traits are typed and their values are normalized; for instance SVG path specification is parsed and all path commands are converted to their absolute variants, it is not possible to say through the value of the trait if a path command was absolute or relative. When getting and setting trait values, accessor of the correct type must be used or exception will be thrown.

Initial trait values come from parsing corresponding attributes. If value is not specified, but corresponing attribute (or property for environments where styling is supported) is inherited, inherited value is returned as a result of the trait query method. If it is not inherited, default value is returned. Default values are also returned in the case when there is no parent to inherit from, for ex: when you create a new element, set a trait value to 'inherit', but there is no parent for inheritance. It is important to note that the value which is returned is always a base value (i.e. before animation is applied), and this is true for both static and animated content.

Setting a trait value has the same effect as changing a corresponding attribute, but trait setters can operate on typed values. The value which is modified is always a base value. For inheritable traits the trait value can always be set to "inherit" (but querying the value will always return the actual inherited value as explained above).

Traits supported in this specification, SVG Tiny 1.1 DOM

The table below shows the list of attributes and properties that SVG Tiny DOM 1.1 implementations must support. Each light gray section lists one or multiple elements for which the subsequent attributes or properties apply. Each attribute row lists the allowed getter and setter (s). The last column specifies the default values that must be used for each attribute or property.

Note: For 'REQUIRED' attributes, there are two cases:

  • i) The document is in error, if this attribute was not present at the time of loading.

  • ii) When using uDOM API, the specified default value (in parenthesis) must be used.

Property

Trait Getter [possible return value(s)]

Trait Setter [allowed value(s)]

Default Values

<svg>, <rect>, <circle>, <ellipse>, <line>, <path>, <g>, <image>, <text>, <a>, and <use>

color

getRGBColorTrait [SVGRGBColor]

setTrait [inherit]setRGBColorTrait [SVGRGBColor]

rgb(0,0,0)

display

getTrait [inline | none ]

setTrait [inline | none | inherit ]

"inline"

fill

getRGBColorTrait [null, SVGRGBColor]

setRGBColorTrait [SVGRGBColor]setTrait(none | currentColor | inherit)

rgb(0,0,0)

fill-rule

getTrait [nonzero | evenodd]

setTrait [nonzero | evenodd | inherit]

"nonzero"

stroke

getRGBColorTrait [null, SVGRGBColor]

setRGBColorTrait [SVGRGBColor]setTrait [none | currentColor | inherit]

"none"

stroke-dashoffset

getFloatTrait

setTrait [inherit]setFloatTrait

0.0f

stroke-linecap

getTrait [butt | round | square]

setTrait [butt | round | square | inherit]

"butt"

stroke-linejoin

getTrait [miter | round | bevel ]

setTrait [miter | round | bevel | inherit]

"miter"

stroke-miterlimit

getFloatTrait [ value >= 1]

setTrait [inherit]setFloatTrait [value >= 1]

4.0f

stroke-width

getFloatTrait [value >= 0]

setTrait [inherit] setFloatTrait [value >= 0]

1.0f

visibility

getTrait [visible | hidden]

setTrait [visible | hidden | inherit]

"visible"

<svg>, <text>, <g>, <a&gt, and <use>;

font-family

getTrait [single, computed font-family value]

setTrait [same syntax as font-family attribute]

User-Agent

font-size

getFloatTrait  [value >= 0]

setFloatTrait [value >= 0]setTrait [inherit]

User-Agent

font-style

getTrait [normal | italic | oblique ]

setTrait [normal | italic | oblique | inherit]

"normal"

font-weight

getTrait [100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 ]

setTrait [normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit]

"normal"

text-anchor

getTrait [start | middle | end]

setTrait [start | middle | end | inherit ]

"start"

Attribute

Trait Getter

Trait Setter

Default Values

<rect>, <circle>, <ellipse>, <line>, <path>, <g>, <image>, <text>, <a>, and <use>

transform

getMatrixTrait [SVGMatrix]

setMatrixTrait [SVGMatrix]

Identity matrix (1,0,0,1,0,0)

<rect>

height

getFloatTrait [ value >= 0]

setFloatTrait [ value >= 0]

REQUIRED(0.0f)

width

getFloatTrait [ value >= 0]

setFloatTrait [ value >= 0]

REQUIRED(0.0f)

x

getFloatTrait

setFloatTrait

0.0f

y

getFloatTrait

setFloatTrait

0.0f

rx

getFloatTrait [value >= 0]

setFloatTrait [value >= 0]

0.0f

ry

getFloatTrait [value >= 0]

setFloatTrait [value >= 0]

0.0f

<circle>

cx

getFloatTrait

setFloatTrait

0.0f

cy

getFloatTrait

setFloatTrait

0.0f

r

getFloatTrait [ value >= 0]

setFloatTrait [value >= 0]

REQUIRED(0.0f)

<ellipse>

cx

getFloatTrait

setFloatTrait

0.0f

cy

getFloatTrait

setFloatTrait

0.0f

rx

getFloatTrait [value >= 0]

setFloatTrait [value >= 0]

REQUIRED(0.0f)

ry

getFloatTrait [value >= 0]

setFloatTrait [value >= 0]

REQUIRED(0.0f)

<line>

x1

getFloatTrait

setFloatTrait

0.0f

x2

getFloatTrait

setFloatTrait

0.0f

y1

getFloatTrait

setFloatTrait

0.0f

y2

getFloatTrait

setFloatTrait

0.0f

<path> (path-length is not supported)

d

getPathTrait [SVGPath]

setPathTrait [SVGPath]

REQUIRED<br>(Empty SVGPath)

<image>

x

getFloatTrait

setFloatTrait

0.0f

y

getFloatTrait

setFloatTrait

0.0f

width

getFloatTrait [value >= 0]

setFloatTrait [value >= 0]

REQUIRED(0.0f)

height

getFloatTrait [value >= 0]

setFloatTrait [value >= 0]

REQUIRED(0.0f)

xlink:href

getTrait NS[absolute URI]

setTraitNS [non local-URI value]

REQUIRED( "" )

<use>

x

getFloatTrait

setFloatTrait

0.0f

y

getFloatTrait

setFloatTrait

0.0f

xlink:href

getTraitNS[absolute URI]

setTraitNS

""

<a>

target

getTrait

setTrait

""

xlink:href

getTraitNS[absolute URI]

setTraitNS

""

<text>(Notes: For 'x' and 'y', it is only possible to provide floating point scalar values; an array of x or y values is not supported. 'rotate' attribute is not supported.)

x

getFloatTrait

setFloatTrait

0.0f

y

getFloatTrait

setFloatTrait

0.0f

text

getTrait [not null]

setTrait [not null]

""

<svg>

version

getTrait

Not available (readonly)

"1.1"

baseProfile

getTrait

Not available (readonly)

"tiny"

viewBox

getRectTrait [null, SVGRect]

setRectTrait [SVGRect]

null

zoomAndPan

getTrait [disable | magnify]

setTrait [disable | magnify]

"magnify"

</tbody>

An SVG Path datatype is used to define the path geometry. Corresponds to SVG path specification or the "d" attribute.

The native implementations must support the following simplifications or canonicalization of path segments. Any simplifications should be lossless.

  • Relative commands (c, h, l, m, q, s, t, and v) must be converted to their absolute counterparts

  • Horizontal and Vertical lines (H, h, V, and v) must be converted to general lines (L and l)

  • Translate command S to command C

  • Translate command T to command Q.

The CSvgJavaInterfaceImpl class specializes the CSvgEngineInterfaceImpl class

Inherits from

Public Member Functions
~CSvgJavaInterfaceImpl()
TInt MapSegmentType(TInt)
TBool MouseEntered(RPointerArray< CSvgElementImpl > &, TInt, TInt)
TBool MouseExited(RPointerArray< CSvgElementImpl > &, TInt, TInt)
TBool MouseMoved(RPointerArray< CSvgElementImpl > &, TInt, TInt)
TBool MousePressed(RPointerArray< CSvgElementImpl > &, TInt, TInt)
TBool MouseReleased(RPointerArray< CSvgElementImpl > &, TInt, TInt)
IMPORT_C CSvgJavaInterfaceImpl *NewL(TFontSpec &)
IMPORT_C CSvgJavaInterfaceImpl *NewL()
IMPORT_C voidSvgDocumentActivate(SvgDocumentHandle)
IMPORT_C voidSvgDocumentBeginElementAt(SvgDocumentHandle, SvgElementHandle, TReal32)
IMPORT_C SvgDocumentHandleSvgDocumentCreateEmpty()
IMPORT_C SvgDocumentHandleSvgDocumentCreateL(const TPtrC16 &)
IMPORT_C voidSvgDocumentDestroy(SvgDocumentHandle)
IMPORT_C SvgElementHandleSvgDocumentDispatchMouseEvent(SvgDocumentHandle, TInt, TInt)
IMPORT_C voidSvgDocumentEndElementAt(SvgDocumentHandle, SvgElementHandle, TReal32)
IMPORT_C voidSvgDocumentFocusOn(SvgDocumentHandle, SvgElementHandle)
IMPORT_C voidSvgDocumentFocusOut(SvgDocumentHandle, SvgElementHandle)
IMPORT_C SvgElementHandleSvgDocumentGetElementById(SvgDocumentHandle, const TPtrC16 &)
IMPORT_C TIntSvgDocumentGetExternalListItem(SvgDocumentHandle, TInt, TPtrC16 &)
IMPORT_C TIntSvgDocumentGetExternalListSize(SvgDocumentHandle)
IMPORT_C SvgElementHandleSvgDocumentGetFocus(SvgDocumentHandle)
IMPORT_C TIntSvgDocumentGetId(SvgDocumentHandle, TInt, TPtrC16 &)
IMPORT_C TReal32SvgDocumentGetMediaTime(SvgDocumentHandle)
IMPORT_C TIntSvgDocumentGetNumberOfIds(SvgDocumentHandle)
IMPORT_C SvgElementHandleSvgDocumentGetRootElement(SvgDocumentHandle)
IMPORT_C TIntSvgDocumentGetViewportHeight(SvgDocumentHandle)
IMPORT_C TIntSvgDocumentGetViewportHeightUnits(SvgDocumentHandle)
IMPORT_C TIntSvgDocumentGetViewportWidth(SvgDocumentHandle)
IMPORT_C TIntSvgDocumentGetViewportWidthUnits(SvgDocumentHandle)
IMPORT_C TIntSvgDocumentHasAnimation(SvgDocumentHandle)
EXPORT_C TIntSvgDocumentRequestCompleted(SvgDocumentHandle, const TPtrC16 &, const TPtrC8 &)
IMPORT_C voidSvgDocumentSetMediaTime(SvgDocumentHandle, TReal32)
IMPORT_C voidSvgDocumentSetViewportHeight(SvgDocumentHandle, TInt)
IMPORT_C voidSvgDocumentSetViewportWidth(SvgDocumentHandle, TInt)
IMPORT_C voidSvgDocumentViewportInit(SvgDocumentHandle)
IMPORT_C voidSvgElementAddEventListener(SvgElementHandle, TInt, SvgAttrType)
IMPORT_C voidSvgElementAppendChild(SvgElementHandle, SvgElementHandle)
IMPORT_C TIntSvgElementCheckRemoveable(SvgElementHandle)
IMPORT_C SvgElementHandleSvgElementCreate(SvgAttrType)
IMPORT_C voidSvgElementDestroy(SvgElementHandle)
IMPORT_C TIntSvgElementElementInDOM(TInt, TInt)
IMPORT_C voidSvgElementGetBBox(SvgElementHandle, SvgAttrType, TReal32 *, TReal32 *, TReal32 *, TReal32 *)
IMPORT_C TIntSvgElementGetColorAttribute(SvgElementHandle, SvgAttrType, TInt *, TInt *, TInt *)
IMPORT_C shortSvgElementGetEnumAttribute(SvgElementHandle, SvgAttrType)
IMPORT_C SvgElementHandleSvgElementGetFirstElementChild(SvgElementHandle)
IMPORT_C TReal32SvgElementGetFloatAttribute(SvgElementHandle, SvgAttrType)
IMPORT_C TIntSvgElementGetMatrixAttribute(SvgElementHandle, SvgAttrType, TReal32 *, TReal32 *, TReal32 *, TReal32 *, TReal32 *, TReal32 *)
IMPORT_C SvgElementHandleSvgElementGetNextElementSibling(SvgElementHandle)
IMPORT_C SvgElementHandleSvgElementGetParent(SvgElementHandle)
IMPORT_C TIntSvgElementGetPathAttribute(SvgElementHandle, SvgAttrType)
IMPORT_C TIntSvgElementGetRectAttribute(SvgElementHandle, SvgAttrType, TReal32 *, TReal32 *, TReal32 *, TReal32 *)
IMPORT_C voidSvgElementGetScreenBBox(TInt, TReal32 *, TReal32 *, TReal32 *, TReal32 *)
IMPORT_C TIntSvgElementGetStringAttribute(SvgElementHandle, SvgAttrType, TPtrC16 &)
IMPORT_C TIntSvgElementGetType(SvgElementHandle)
IMPORT_C TIntSvgElementGetUsedFromElement(TInt)
IMPORT_C TIntSvgElementHasAnimation(SvgElementHandle)
IMPORT_C voidSvgElementInsertBefore(SvgElementHandle, SvgElementHandle, SvgElementHandle)
IMPORT_C TIntSvgElementIsActive(SvgElementHandle)
IMPORT_C TIntSvgElementIsUsed(TInt)
IMPORT_C SvgElementHandleSvgElementRemoveChild(SvgElementHandle, SvgElementHandle)
IMPORT_C voidSvgElementRemoveEventListener(SvgElementHandle, TInt, SvgAttrType)
IMPORT_C voidSvgElementSetColorAttribute(SvgElementHandle, SvgAttrType, TInt, TInt, TInt)
IMPORT_C voidSvgElementSetEnumAttribute(SvgElementHandle, SvgAttrType, short)
IMPORT_C voidSvgElementSetFloatAttribute(SvgElementHandle, SvgAttrType, TReal32)
IMPORT_C voidSvgElementSetMatrixAttribute(SvgElementHandle, SvgAttrType, TReal32, TReal32, TReal32, TReal32, TReal32, TReal32)
IMPORT_C voidSvgElementSetPathAttribute(SvgElementHandle, SvgAttrType, SvgPathHandle)
IMPORT_C voidSvgElementSetRectAttribute(SvgElementHandle, SvgAttrType, TReal32, TReal32, TReal32, TReal32)
IMPORT_C voidSvgElementSetStringAttribute(SvgElementHandle, SvgAttrType, const TPtrC16 &)
IMPORT_C voidSvgElementUpdatePath(SvgElementHandle, SvgPathHandle)
IMPORT_C SvgEngineHandleSvgEngineCreate()
IMPORT_C voidSvgEngineDestroy(SvgEngineHandle)
IMPORT_C voidSvgEngineRenderDocument(SvgEngineHandle, SvgDocumentHandle, TInt, TInt, TReal32)
IMPORT_C voidSvgEngineRenderDocumentL(SvgEngineHandle, SvgDocumentHandle, TInt, const TPoint &, const TRect &, TReal32, TReal32)
IMPORT_C voidSvgEngineResume(SvgEngineHandle)
IMPORT_C voidSvgEngineSetRenderQuality(SvgEngineHandle, TInt)
IMPORT_C voidSvgEngineStart(SvgEngineHandle)
IMPORT_C voidSvgEngineStop(SvgEngineHandle)
IMPORT_C voidSvgPathAddClose(SvgPathHandle)
IMPORT_C voidSvgPathAddCurveTo(SvgPathHandle, TReal32, TReal32, TReal32, TReal32, TReal32, TReal32)
IMPORT_C voidSvgPathAddLineTo(SvgPathHandle, TReal32, TReal32)
IMPORT_C voidSvgPathAddMoveTo(SvgPathHandle, TReal32, TReal32)
IMPORT_C voidSvgPathAddQuadTo(SvgPathHandle, TReal32, TReal32, TReal32, TReal32)
IMPORT_C SvgPathHandleSvgPathCreate()
IMPORT_C voidSvgPathDestroy(SvgPathHandle)
IMPORT_C TIntSvgPathGetSegmentCount(SvgPathHandle)
IMPORT_C TReal32SvgPathGetSegmentParameter(SvgPathHandle, TInt, TInt)
IMPORT_C TIntSvgPathGetSegmentType(SvgPathHandle, TInt)
IMPORT_C voidSvgRenderingSurfaceClearBuffer(SvgSurfaceHandle)
IMPORT_C SvgSurfaceHandleSvgRenderingSurfaceCreate(TInt, TInt)
IMPORT_C voidSvgRenderingSurfaceDestroy(SvgSurfaceHandle)
IMPORT_C TUint *SvgRenderingSurfaceGetBuffer(SvgSurfaceHandle)
IMPORT_C TIntSvgRenderingSurfaceGetHeight(SvgSurfaceHandle)
IMPORT_C TIntSvgRenderingSurfaceGetWidth(SvgSurfaceHandle)
Private Member Functions
CSvgJavaInterfaceImpl()
voidConstructL(TFontSpec &)
voidConstructL()
TBool IsAnimationElemId(const TInt)
TInt SvgEnumerationMappingJSRtoSVG(const TInt, TInt)
TInt SvgEnumerationMappingSVGtoJSR(const TInt, TInt32)
TInt SvgEnumerationtoStringMappingJSRtoSVG(const TInt, short, TDes &)
TInt SvgGetAttributeTypeMappingJSRtoSVG(SvgAttrType)
SvgAttrType SvgGetAttributeTypeMappingSVGtoJSR(const TInt)
TInt SvgGetElementTypeMappingJSRtoSVG(SvgAttrType)
SvgAttrType SvgGetElementTypeMappingSVGtoJSR(const TInt)
TInt SvgStringtoEnumerationMappingSVGtoJSR(const TInt, TPtrC16)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSvgEngineInterfaceImpl::ADDCloseTo(CGfxGeneralPath *)
CSvgEngineInterfaceImpl::ADDCurveTo(CGfxGeneralPath *,TReal32,TReal32,TReal32,TReal32,TReal32,TReal32)
CSvgEngineInterfaceImpl::ADDLineTo(CGfxGeneralPath *,TReal32,TReal32)
CSvgEngineInterfaceImpl::ADDMoveTo(CGfxGeneralPath *,TReal32,TReal32)
CSvgEngineInterfaceImpl::ADDQuadTo(CGfxGeneralPath *,TReal32,TReal32,TReal32,TReal32)
CSvgEngineInterfaceImpl::ActivateObjectInFocus()
CSvgEngineInterfaceImpl::AddAnimationListener(MSvgAnimationListener *,TInt)
CSvgEngineInterfaceImpl::AddExternalData(CSvgDocumentImpl *,const TDesC &,const TDesC8 &,TBool,TInt,TInt)
CSvgEngineInterfaceImpl::AddHyperlinkListener(MSvgHyperlinkListener *,TInt)
CSvgEngineInterfaceImpl::AddListener(const MSvgListener *,TSvgListenerType,TInt)
CSvgEngineInterfaceImpl::AddTextAreaListener(MSvgTextAreaListener *,TInt)
CSvgEngineInterfaceImpl::AddTextListener(MSvgTextListener *,TInt)
CSvgEngineInterfaceImpl::AddToEventReceiverList(CXmlElementImpl *,const TUint8)
CSvgEngineInterfaceImpl::AppendChild(CXmlElementImpl *,CXmlElementImpl *,TBool)
CSvgEngineInterfaceImpl::AssignImageData(const TDesC &,HBufC8 *)
CSvgEngineInterfaceImpl::CSvgEngineInterfaceImpl()
CSvgEngineInterfaceImpl::CancelLoad(TInt)
CSvgEngineInterfaceImpl::ChooseViewBoxIfNotSet(TInt)
CSvgEngineInterfaceImpl::ClearFrameBuffer(CFbsBitmap *,TUint32,TInt)
CSvgEngineInterfaceImpl::ConstructL(CFbsBitmap *,MSvgRequestObserver *,TFontSpec &)
CSvgEngineInterfaceImpl::ConstructL(CFbsBitmap *,MSvgRequestObserver *,TFontSpec &,SVGRendererId)
CSvgEngineInterfaceImpl::ContentDimensions(TInt)
CSvgEngineInterfaceImpl::ContentDimensions(TReal32 &,TReal32 &,TInt)
CSvgEngineInterfaceImpl::ContentDimensionsInPercentage(TInt)
CSvgEngineInterfaceImpl::CreateElementL(CSvgDocumentImpl *,TInt)
CSvgEngineInterfaceImpl::CurrentState(TInt)
CSvgEngineInterfaceImpl::CustomOption(TBool,TInt)
CSvgEngineInterfaceImpl::DeleteDom(TInt)
CSvgEngineInterfaceImpl::Destroy()
CSvgEngineInterfaceImpl::DestroyDocument(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::DestroyElement(CXmlElementImpl *)
CSvgEngineInterfaceImpl::DestroyEngine(CSvgEngineImpl *)
CSvgEngineInterfaceImpl::DispatchFocusInEvent(CSvgDocumentImpl *,CSvgElementImpl *)
CSvgEngineInterfaceImpl::DispatchFocusOutEvent(CSvgDocumentImpl *,CSvgElementImpl *)
CSvgEngineInterfaceImpl::DispatchMouseEventsAt(CSvgDocumentImpl *,TInt,TInt,MSvgMouseListener *)
CSvgEngineInterfaceImpl::DrawBox(TRect,TInt)
CSvgEngineInterfaceImpl::Duration(TInt)
CSvgEngineInterfaceImpl::FillDocumentL(CSvgDocumentImpl *,const TDesC16 &)
CSvgEngineInterfaceImpl::FindAllElements(CSvgElementImpl *,TInt,RPointerArray< CSvgElementImpl > &,TInt)
CSvgEngineInterfaceImpl::FocusNext()
CSvgEngineInterfaceImpl::FocusPrevious()
CSvgEngineInterfaceImpl::FramesPerSecond(TBool,TInt)
CSvgEngineInterfaceImpl::GenerateMask(CFbsBitmap *,TInt)
CSvgEngineInterfaceImpl::GetElementBoundingbox(CSvgElementImpl *,TReal32 &,TReal32 &,TReal32 &,TReal32 &)
CSvgEngineInterfaceImpl::GetElementById(CSvgDocumentImpl *,const TDesC &)
CSvgEngineInterfaceImpl::GetElementColorAttribute(CSvgElementImpl *,const TInt)
CSvgEngineInterfaceImpl::GetElementDesAttribute(CSvgElementImpl *,const TInt,TPtrC16 &)
CSvgEngineInterfaceImpl::GetElementFloatAttribute(CSvgElementImpl *,const TInt)
CSvgEngineInterfaceImpl::GetElementType(CXmlElementImpl *)
CSvgEngineInterfaceImpl::GetElementUnScaledBoundingBox(CSvgElementImpl *,TReal32 &,TReal32 &,TReal32 &,TReal32 &)
CSvgEngineInterfaceImpl::GetEnumAttribute(CSvgElementImpl *,const TInt,TInt32 &)
CSvgEngineInterfaceImpl::GetExternalListItemL(CSvgDocumentImpl *,TInt,TPtrC16 &)
CSvgEngineInterfaceImpl::GetExternalListSize(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::GetFirstChild(CXmlElementImpl *)
CSvgEngineInterfaceImpl::GetFocusedElement(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::GetFourPointElementBoundingBox(CSvgTextElementImpl *,TPoint &,TPoint &,TPoint &,TPoint &)
CSvgEngineInterfaceImpl::GetId(CSvgDocumentImpl *,TInt)
CSvgEngineInterfaceImpl::GetMatrixAttribute(CXmlElementImpl *,TInt,float *,float *,float *,float *,float *,float *)
CSvgEngineInterfaceImpl::GetMatrixAttribute(CXmlElementImpl *,float *,float *,float *,float *,float *,float *)
CSvgEngineInterfaceImpl::GetNextSibling(CXmlElementImpl *)
CSvgEngineInterfaceImpl::GetNumberOfIds(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::GetOwnerDocument(CXmlElementImpl *)
CSvgEngineInterfaceImpl::GetParentElement(CXmlElementImpl *)
CSvgEngineInterfaceImpl::GetPathAttribute(CXmlElementImpl *,TInt)
CSvgEngineInterfaceImpl::GetRectAttribute(CXmlElementImpl *,float *,float *,float *,float *)
CSvgEngineInterfaceImpl::GetRenderQuality()
CSvgEngineInterfaceImpl::GetRootElement(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::GetSegmentCount(CGfxGeneralPath *)
CSvgEngineInterfaceImpl::GetSegmentParameter(CGfxGeneralPath *,TInt,TInt)
CSvgEngineInterfaceImpl::GetSegmentType(CGfxGeneralPath *,TInt)
CSvgEngineInterfaceImpl::GetSvgBoundingBox(TInt)
CSvgEngineInterfaceImpl::GetTextForTextAreaElement(TInt,TBool &,TDes &)
CSvgEngineInterfaceImpl::GetTextForTextElement(TInt,TBool &,TDes &)
CSvgEngineInterfaceImpl::GetUnscaledContentSize(TInt)
CSvgEngineInterfaceImpl::GetViewportHeight(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::GetViewportUnits(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::GetViewportWidth(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::InitRootElement(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::InitSvgStylePropertiesWithNullL(CSvgElementImpl *)
CSvgEngineInterfaceImpl::InitializeEngine(CSvgEngineImpl *,TBool)
CSvgEngineInterfaceImpl::IsContentInteractive(CSvgDocumentImpl *,TInt)
CSvgEngineInterfaceImpl::IsElementActive(CSvgElementImpl *)
CSvgEngineInterfaceImpl::IsElementVisible(TInt,TInt)
CSvgEngineInterfaceImpl::IsLoading(TInt)
CSvgEngineInterfaceImpl::IsPanPossible(TInt,TInt,TInt)
CSvgEngineInterfaceImpl::IsPanPossibleFourWay(TBool &,TBool &,TBool &,TBool &,TInt)
CSvgEngineInterfaceImpl::IsRemoveable(CSvgElementImpl *,TBool)
CSvgEngineInterfaceImpl::KeyPress(const TKeyEvent &,TInt)
CSvgEngineInterfaceImpl::Load(RFile &)
CSvgEngineInterfaceImpl::Load(const TDesC &)
CSvgEngineInterfaceImpl::Load(const TDesC8 &)
CSvgEngineInterfaceImpl::MediaTime(TInt)
CSvgEngineInterfaceImpl::MouseDown(TInt,TInt,TInt)
CSvgEngineInterfaceImpl::MouseMove(TInt,TInt,TInt)
CSvgEngineInterfaceImpl::MouseUp(TInt,TInt,TInt)
CSvgEngineInterfaceImpl::MuteAudioVolume(TInt)
CSvgEngineInterfaceImpl::NewL(CFbsBitmap *,MSvgRequestObserver *,TFontSpec &)
CSvgEngineInterfaceImpl::NewL(CFbsBitmap *,MSvgRequestObserver *,TFontSpec &,SVGRendererId)
CSvgEngineInterfaceImpl::NewLC(CFbsBitmap *,MSvgRequestObserver *,TFontSpec &)
CSvgEngineInterfaceImpl::NewLC(CFbsBitmap *,MSvgRequestObserver *,TFontSpec &,SVGRendererId)
CSvgEngineInterfaceImpl::OriginalView(TInt)
CSvgEngineInterfaceImpl::Pan(TInt,TInt,TInt)
CSvgEngineInterfaceImpl::PanPosition(TInt)
CSvgEngineInterfaceImpl::Pause(CSvgEngineImpl *)
CSvgEngineInterfaceImpl::Position(TInt)
CSvgEngineInterfaceImpl::PrepareDom(RFile &,TInt &,TInt)
CSvgEngineInterfaceImpl::PrepareDom(const TDesC &,TInt &,TInt)
CSvgEngineInterfaceImpl::PrepareDom(const TDesC8 &,TInt &,TInt)
CSvgEngineInterfaceImpl::PrintAllElements(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::PrintElementsStyles(CSvgElementImpl *)
CSvgEngineInterfaceImpl::Redraw(TBool,TInt)
CSvgEngineInterfaceImpl::RemoveAnimationListener(MSvgAnimationListener *,TInt)
CSvgEngineInterfaceImpl::RemoveChild(CXmlElementImpl *,CXmlElementImpl *)
CSvgEngineInterfaceImpl::RemoveFromEventReceiverList(CXmlElementImpl *)
CSvgEngineInterfaceImpl::RemoveHyperlinkListener(MSvgHyperlinkListener *,TInt)
CSvgEngineInterfaceImpl::RemoveListener(const MSvgListener *,TSvgListenerType,TInt)
CSvgEngineInterfaceImpl::RemoveTextAreaListener(MSvgTextAreaListener *,TInt)
CSvgEngineInterfaceImpl::RemoveTextListener(MSvgTextListener *,TInt)
CSvgEngineInterfaceImpl::RenderDom(TInt,CFbsBitmap *,CFbsBitmap *)
CSvgEngineInterfaceImpl::RenderFrame(CSvgEngineImpl *,TUint)
CSvgEngineInterfaceImpl::RenderFrames(TInt,const TSize &,TUint,TUint,TUint,TDisplayMode,TDisplayMode,RPointerArray< CFbsBitmap > &,RPointerArray< CFbsBitmap > &,RArray< TUint > &,TBool)
CSvgEngineInterfaceImpl::Replay(TInt)
CSvgEngineInterfaceImpl::ResetContext(TInt)
CSvgEngineInterfaceImpl::ResetFocusIndex(TInt32)
CSvgEngineInterfaceImpl::Resume(CSvgEngineImpl *)
CSvgEngineInterfaceImpl::Rotate(TReal32,TInt,TInt,TInt)
CSvgEngineInterfaceImpl::SVGElementGetUsedElement(CXmlElementImpl *)
CSvgEngineInterfaceImpl::SVGElementInDom(CSvgDocumentImpl *,CXmlElementImpl *)
CSvgEngineInterfaceImpl::SaveSvg(TBool,const TDesC &,TInt)
CSvgEngineInterfaceImpl::SaveSvgDom(TInt,const TDesC &,TInt)
CSvgEngineInterfaceImpl::SearchForText(const TDesC &,RPointerArray< MRect > &,RArray< TPtrC > &,RArray< TInt > &,TBool,TInt)
CSvgEngineInterfaceImpl::SetAnimFrameDuration(TUint,TInt)
CSvgEngineInterfaceImpl::SetAudioVolume(TInt,TInt)
CSvgEngineInterfaceImpl::SetBackgroundColor(TUint32,CSvgEngineImpl *)
CSvgEngineInterfaceImpl::SetClientWindow(RWindow *)
CSvgEngineInterfaceImpl::SetDRMMode(TBool,TInt)
CSvgEngineInterfaceImpl::SetDRMRights(TBool)
CSvgEngineInterfaceImpl::SetDataRetrievalTimeOut(TUint,TInt)
CSvgEngineInterfaceImpl::SetDocument(CSvgEngineImpl *,CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::SetElementColorAttribute(CSvgElementImpl *,const TInt,TInt32)
CSvgEngineInterfaceImpl::SetElementDesAttribute(CSvgElementImpl *,const TInt,const TDesC &)
CSvgEngineInterfaceImpl::SetElementFloatAttribute(CSvgElementImpl *,const TInt,TReal32)
CSvgEngineInterfaceImpl::SetEnumAttribute(CSvgElementImpl *,const TInt,TInt32)
CSvgEngineInterfaceImpl::SetFirstChildElement(CXmlElementImpl *,CXmlElementImpl *)
CSvgEngineInterfaceImpl::SetFocusElement(CXmlElementImpl *,CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::SetFrameBuffer(CFbsBitmap *,TInt)
CSvgEngineInterfaceImpl::SetGdiContextL(CSvgEngineImpl *,CFbsBitmap *)
CSvgEngineInterfaceImpl::SetMatrixAttribute(CXmlElementImpl *,float,float,float,float,float,float)
CSvgEngineInterfaceImpl::SetMediaTime(TInt32,TInt)
CSvgEngineInterfaceImpl::SetNextSibling(CXmlElementImpl *,CXmlElementImpl *)
CSvgEngineInterfaceImpl::SetParentElement(CXmlElementImpl *,CXmlElementImpl *)
CSvgEngineInterfaceImpl::SetPathAttribute(CSvgElementImpl *,TInt,CGfxGeneralPath *)
CSvgEngineInterfaceImpl::SetPreserveAspectRatio(CSvgDocumentImpl *,TSvgPreserveAspectAlignType,TSvgMeetOrSliceType,TBool)
CSvgEngineInterfaceImpl::SetRectAttribute(CXmlElementImpl *,float,float,float,float)
CSvgEngineInterfaceImpl::SetRenderQuality(TRenderingQuality,TInt)
CSvgEngineInterfaceImpl::SetRequestObserver(CSvgEngineImpl *,MSvgRequestObserver *)
CSvgEngineInterfaceImpl::SetSvgDimensionToFrameBuffer(TUint,TUint,TInt)
CSvgEngineInterfaceImpl::SetTextForTextAreaElement(TInt,TDesC &)
CSvgEngineInterfaceImpl::SetTextForTextElement(TInt,TDesC &)
CSvgEngineInterfaceImpl::SetThumbNailMode(TBool,TInt)
CSvgEngineInterfaceImpl::SetViewportHeight(CSvgDocumentImpl *,TInt)
CSvgEngineInterfaceImpl::SetViewportWidth(CSvgDocumentImpl *,TInt)
CSvgEngineInterfaceImpl::Size(TInt)
CSvgEngineInterfaceImpl::Start(CSvgEngineImpl *,TBool)
CSvgEngineInterfaceImpl::Start(MSvgError *&,CSvgEngineImpl *)
CSvgEngineInterfaceImpl::Start(MSvgError *&,const TDesC8 *,CSvgEngineImpl *)
CSvgEngineInterfaceImpl::Start(const TDesC8 *,CSvgEngineImpl *,TBool)
CSvgEngineInterfaceImpl::StartEngine(CSvgEngineImpl *)
CSvgEngineInterfaceImpl::Stop(CSvgEngineImpl *)
CSvgEngineInterfaceImpl::SvgActivateAnimation(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::SvgBeginElementAt(CXmlElementImpl *,TUint32,CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::SvgCreatePath()
CSvgEngineInterfaceImpl::SvgDestroyPath(CGfxGeneralPath *)
CSvgEngineInterfaceImpl::SvgDocument()
CSvgEngineInterfaceImpl::SvgDocumentNewL()
CSvgEngineInterfaceImpl::SvgElementAssignDocument(CSvgElementImpl *,CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::SvgEndElementAt(CXmlElementImpl *,TUint32,CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::SvgEngineNewL()
CSvgEngineInterfaceImpl::SvgGetMediaTime(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::SvgHasAnimation(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::SvgSetMediaTime(CSvgDocumentImpl *,TUint32)
CSvgEngineInterfaceImpl::SwitchDebugInfo(TInt)
CSvgEngineInterfaceImpl::TLVEncodedData()const
CSvgEngineInterfaceImpl::UpdatePath(TInt,CSvgElementImpl *)
CSvgEngineInterfaceImpl::UseDom(TInt,CFbsBitmap *,CFbsBitmap *,TInt)
CSvgEngineInterfaceImpl::UseDom(TInt,CFbsBitmap *,CFbsBitmap *,TSize,TDisplayMode,TDisplayMode,TInt)
CSvgEngineInterfaceImpl::ViewportInit(CSvgDocumentImpl *)
CSvgEngineInterfaceImpl::WaitForImages(TBool,TInt)
CSvgEngineInterfaceImpl::Zoom(TReal32,TInt)
CSvgEngineInterfaceImpl::~CSvgEngineInterfaceImpl()
Public Attributes
CSvgDocumentImpl *iTempDoc
Inherited Attributes
CSvgEngineInterfaceImpl::iFileIsLoaded
CSvgEngineInterfaceImpl::iSvgDocumentPointers
CSvgEngineInterfaceImpl::iSvgEngine
CSvgEngineInterfaceImpl::iSvgEnginePointers
CSvgEngineInterfaceImpl::iSvgError
CSvgEngineInterfaceImpl::iSvgLoadedDocument
CSvgEngineInterfaceImpl::iTotalRotation

Constructor & Destructor Documentation

CSvgJavaInterfaceImpl()

CSvgJavaInterfaceImpl()[private]

~CSvgJavaInterfaceImpl()

IMPORT_C~CSvgJavaInterfaceImpl()

Destruct an instance of CSvgJavaInterfaceImpl

Member Functions Documentation

ConstructL(TFontSpec &)

voidConstructL(TFontSpec &aFontSpec)[private]

Parameters

TFontSpec & aFontSpec

ConstructL()

voidConstructL()[private]

This method is a special case "ConstructL" method used for polymorphic DLL loading, which enforces this method to be public.

Since
1.0

IsAnimationElemId(const TInt)

TBool IsAnimationElemId(const TIntaElementId)[private]

Tells if the element id is an animation or not.

Parameters

const TInt aElementId

MapSegmentType(TInt)

TInt MapSegmentType(TIntaSvgSegmentType)

Parameters

TInt aSvgSegmentType

MouseEntered(RPointerArray< CSvgElementImpl > &, TInt, TInt)

TBool MouseEntered(RPointerArray< CSvgElementImpl > &aElements,
TIntaX,
TIntaY
)

Parameters

RPointerArray< CSvgElementImpl > & aElements
TInt aX
TInt aY

MouseExited(RPointerArray< CSvgElementImpl > &, TInt, TInt)

TBool MouseExited(RPointerArray< CSvgElementImpl > &aElements,
TIntaX,
TIntaY
)

Parameters

RPointerArray< CSvgElementImpl > & aElements
TInt aX
TInt aY

MouseMoved(RPointerArray< CSvgElementImpl > &, TInt, TInt)

TBool MouseMoved(RPointerArray< CSvgElementImpl > &aElements,
TIntaX,
TIntaY
)

Parameters

RPointerArray< CSvgElementImpl > & aElements
TInt aX
TInt aY

MousePressed(RPointerArray< CSvgElementImpl > &, TInt, TInt)

TBool MousePressed(RPointerArray< CSvgElementImpl > &aElements,
TIntaX,
TIntaY
)

Parameters

RPointerArray< CSvgElementImpl > & aElements
TInt aX
TInt aY

MouseReleased(RPointerArray< CSvgElementImpl > &, TInt, TInt)

TBool MouseReleased(RPointerArray< CSvgElementImpl > &aElements,
TIntaX,
TIntaY
)

Parameters

RPointerArray< CSvgElementImpl > & aElements
TInt aX
TInt aY

NewL(TFontSpec &)

IMPORT_C CSvgJavaInterfaceImpl *NewL(TFontSpec &aFontSpec)[static]

Construct an instance of CSvgJavaInterfaceImpl

Parameters

TFontSpec & aFontSpec

NewL()

IMPORT_C CSvgJavaInterfaceImpl *NewL()[static]

SvgDocumentActivate(SvgDocumentHandle)

IMPORT_C voidSvgDocumentActivate(SvgDocumentHandleaDocumentHandle)

Activate the element that has the focus. NOTE: Java doesn't use this method.

Since
1.0
javax.microedition.m2g.SVGImage::activate() Activate the element that has the focus.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle

SvgDocumentBeginElementAt(SvgDocumentHandle, SvgElementHandle, TReal32)

IMPORT_C voidSvgDocumentBeginElementAt(SvgDocumentHandleaDocumentHandle,
SvgElementHandleaElementHandle,
TReal32aOffsetTime
)

Set the begin animation time for the given element in the given SVG document. The new time is added to the begin instance times list.

Since
1.0
org.w3c.dom.svg.SVGAnimationElement::beginElementAt() Set the begin animation time for the given element.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle
SvgElementHandle aElementHandleElement handle
TReal32 aOffsetTimeThe time in seconds at which to begin the element.

SvgDocumentCreateEmpty()

IMPORT_C SvgDocumentHandleSvgDocumentCreateEmpty()

Create an empty svg document. NOTE: Java doesn't use this method. Java side uses the SvgDocumentCreateL method to create an empty SVG document that contains a root <svg> element with default viewport size of 100x100.

Since
1.0
javax.microedition.m2g.SVGImage::createEmptyImage() Create an empty svg document.

SvgDocumentCreateL(const TPtrC16 &)

IMPORT_C SvgDocumentHandleSvgDocumentCreateL(const TPtrC16 &aString)
Create a svg document by parsing the given string. The image size is determined by the content specification (eg: width/height attributes on root SVG element). The default viewport size of 100-by-100 pixels is used when the size is unspecified. This method will throw an exception when the document is in error:
  • the SVG document does not conform to the XML 1.0 specification

  • an element has an attribute or property value which is not permissible according to the SVG specification

  • the required or mandatory attributes according to the SVG specification are missing

  • the document contains circular references on the <use> element

  • the document contains <image> element(s) with local references

  • the document contains elements with duplicate Id's

  • the document contains animation(s) in error

The native engine might be invoked for any external resource referenced in the document by calling the SvgDocumentRequestCompleted. However, please note that data URIs (for ex: base64 encoded images like <image xlink:href="data:image/png;base64,/9j/4AAQ..."/>) are required to be decoded by the native engine. The engine must only make one call if there exist multiple resources with the same URI.

If a svg document contains external resources and SvgDocumentRequestCompleted is not called then the engine's default implementation is used automatically, but it might not be able to load all of external resources. For example, if the svg document is loaded from a file in a Jar file, the implementation will not be able to load images that have relative URIs (ex; <image xlink:href="myImage.png" />).

Note that SvgDocumentRequestCompleted is also called when the xlink:href attribute on <image> is set or changed by the application, but the call is made only when the element is hooked into the document tree i.e. when the ancestors go all the way up to the root <svg> element. There are two cases:
  • When changing the xlink:href attribute of an existing <image> element that is already hooked or part of the tree.

  • When creating a new <image>, setting its xlink:href and hooking it to the document tree.

Since
1.0
javax.microedition.m2g.ScalableImage::createImage()
Exceptions
MJavaError

if an error occurs while loading the content.

Create a svg document by parsing the given STRING (not file).

Parameters

const TPtrC16 & aStringThe string from which the SVG content should be read

SvgDocumentDestroy(SvgDocumentHandle)

IMPORT_C voidSvgDocumentDestroy(SvgDocumentHandleaDocumentHandle)

Destroy the given svg document (by handle). NOTE: Java MIDlet could use multiple documents.

Since
1.0
Destroy the given svg document (by handle).

Parameters

SvgDocumentHandle aDocumentHandleDocument handle.

SvgDocumentDispatchMouseEvent(SvgDocumentHandle, TInt, TInt)

IMPORT_C SvgElementHandleSvgDocumentDispatchMouseEvent(SvgDocumentHandleaDocumentHandle,
TIntaMouseX,
TIntaMouseY
)

Request a mouse event at the given coordinate. This method is used to dispatch a mouse "click" event to the given document. The mouse position is given as screen coordinates aMouseX, aMouseY. If the aMouseX, aMouseY values are outside the viewport area or no target is available for the aMouseX, aMouseY coordinates, the event is not dispatched.

Since
1.0
javax.microedition.m2g.SVGImage::dispatchMouseEvent() Request a mouse event at the given coordinate.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle
TInt aMouseXThe y location of the mouse/pointer in viewport coordinate system.
TInt aMouseY

SvgDocumentEndElementAt(SvgDocumentHandle, SvgElementHandle, TReal32)

IMPORT_C voidSvgDocumentEndElementAt(SvgDocumentHandleaDocumentHandle,
SvgElementHandleaElementHandle,
TReal32aOffsetTime
)

Set the end animation time for the given element in the given SVG document. The new time is added to the end instance times list. NOTE: Native engine checks the element is active before set the new end time.

Since
1.0
org.w3c.dom.svg.SVGAnimationElement::endElementAt() Set the end animation time for the given element.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle
SvgElementHandle aElementHandleElement handle
TReal32 aOffsetTimeThe time in seconds at which to end the element.

SvgDocumentFocusOn(SvgDocumentHandle, SvgElementHandle)

IMPORT_C voidSvgDocumentFocusOn(SvgDocumentHandleaDocumentHandle,
SvgElementHandleaElementHandle
)

Set the given element to have the focus in the given SVG document. The initial focus is always null and setting NULL will remove the current focus. NOTE: Java doesn't use this method.

Since
1.0
javax.microedition.m2g.SVGImage::focusOn() changes made for Focus-in/focus-out bug(AMIA-6T8EEG)

Set the given element to have the focus.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle
SvgElementHandle aElementHandleThe element to set the focus on.

SvgDocumentFocusOut(SvgDocumentHandle, SvgElementHandle)

IMPORT_C voidSvgDocumentFocusOut(SvgDocumentHandleaDocumentHandle,
SvgElementHandleaElementHandle
)

Set the focus out of the given element. The initial focus is always null and setting NULL will remove the current focus. NOTE: Java doesn't use this method.

Since
1.0
javax.microedition.m2g.SVGImage::focusOut() changes made for Focus-in/focus-out bug(AMIA-6T8EEG)

Unset the focus from the given element passed as parameter.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle
SvgElementHandle aElementHandleThe element for which to set the focus out.

SvgDocumentGetElementById(SvgDocumentHandle, const TPtrC16 &)

IMPORT_C SvgElementHandleSvgDocumentGetElementById(SvgDocumentHandleaDocumentHandle,
const TPtrC16 &aID
)

Get the svg element in the given SVG document with the given unique ID string.If no such element exists, this returns NULL.

Since
1.0
org.w3c.dom.Document::getElementById() Get the svg element identified by the given id-string.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle
const TPtrC16 & aID

SvgDocumentGetExternalListItem(SvgDocumentHandle, TInt, TPtrC16 &)

IMPORT_C TIntSvgDocumentGetExternalListItem(SvgDocumentHandleaDocumentHandle,
TIntaIndex,
TPtrC16 &aItem
)

Get an external item indicated in a SVG document. Java side might request an external resouce and once the requested external resource is available, java side forwards this information (SvgDocumentGetExternalListItem) to the SVG engine. Note: Returning null indicates that the SVG engine tryes to handle the requested resource.

Since
1.0
Svg Document GetExternalListItem.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle
TInt aIndex
TPtrC16 & aItem

SvgDocumentGetExternalListSize(SvgDocumentHandle)

IMPORT_C TIntSvgDocumentGetExternalListSize(SvgDocumentHandleaDocumentHandle)

Get number of external list items in a SVG document. After the SVG document is created (see SvgDocumentCreateL) java side checks if the SVG document contains external item(s)

Since
1.0
Svg Document get external list item.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle

SvgDocumentGetFocus(SvgDocumentHandle)

IMPORT_C SvgElementHandleSvgDocumentGetFocus(SvgDocumentHandleaDocumentHandle)

Get the element having the focus. NOTE: Java doesn't use this method.

Since
1.0
javax.microedition.m2g.SVGImage::focusOn() Get the element having the focus.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle

SvgDocumentGetId(SvgDocumentHandle, TInt, TPtrC16 &)

IMPORT_C TIntSvgDocumentGetId(SvgDocumentHandleaDocumentHandle,
TIntindex,
TPtrC16 &aId
)

Get an id (at index) from the current SVG document. NOTE: Java doesn't use this method.

Since
1.0

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle
TInt indexID index
TPtrC16 & aId

SvgDocumentGetMediaTime(SvgDocumentHandle)

IMPORT_C TReal32SvgDocumentGetMediaTime(SvgDocumentHandleaDocumentHandle)

Get current animation or media timeline time for the specified document.

Since
1.0
org.w3c.dom.svg.SVGSVGElement::getCurrentTime() Get Media time for the specified document.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle

SvgDocumentGetNumberOfIds(SvgDocumentHandle)

IMPORT_C TIntSvgDocumentGetNumberOfIds(SvgDocumentHandleaDocumentHandle)

Get the number of ids in the current SVG document. NOTE: Java doesn't use this method.

Since
1.0

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle

SvgDocumentGetRootElement(SvgDocumentHandle)

IMPORT_C SvgElementHandleSvgDocumentGetRootElement(SvgDocumentHandleaDocumentHandle)

Return a child element of the given SVG document Node which corresponds to the top-most tag in XML file. For SVG files it must be SVGSVGElement.

Since
1.0
org.w3c.dom.Document::getDocumentElement() Get the root element for the given document.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle

SvgDocumentGetViewportHeight(SvgDocumentHandle)

IMPORT_C TIntSvgDocumentGetViewportHeight(SvgDocumentHandleaDocumentHandle)

Get the viewport height of the given SVG document. The value returned is always in pixels. If the specified height is defined in percentages, the values are mapped to the default view port size of 100x100. If the viewport height is explicitly changed by the java application, then the percentages are ignored and the content is made to fit to this new viewport height.

Since
1.0
javax.microedition.m2g.ScalableImage::getViewportHeight() SvgDocumentSetViewportHeight Get the viewport height for the given document.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle

SvgDocumentGetViewportHeightUnits(SvgDocumentHandle)

IMPORT_C TIntSvgDocumentGetViewportHeightUnits(SvgDocumentHandleaDocumentHandle)

Get the viewport height units for the given document. NOTE: Java side is not actually need this method.

Since
1.0
Get the viewport height units for the given document.

Parameters

SvgDocumentHandle aDocumentHandleDocument

SvgDocumentGetViewportWidth(SvgDocumentHandle)

IMPORT_C TIntSvgDocumentGetViewportWidth(SvgDocumentHandleaDocumentHandle)

Get the viewport width of the given SVG document. The value returned is always in pixels. If the specified width is defined in percentages, the values are mapped to the default view port size of 100x100. If the viewport width is explicitly changed by the java application, then the percentages are ignored and the content is made to fit to this new viewport width.

Since
1.0
javax.microedition.m2g.ScalableImage::getViewportWidth() SvgDocumentSetViewportWidth Get the viewport width for the given document.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle

SvgDocumentGetViewportWidthUnits(SvgDocumentHandle)

IMPORT_C TIntSvgDocumentGetViewportWidthUnits(SvgDocumentHandleaDocumentHandle)

Get the viewport width units for the given document. NOTE: Java side is not actually need this method.

Since
1.0
Get the viewport width units for the given document.

Parameters

SvgDocumentHandle aDocumentHandleDocument

SvgDocumentHasAnimation(SvgDocumentHandle)

IMPORT_C TIntSvgDocumentHasAnimation(SvgDocumentHandleaDocumentHandle)

Check if document has animation. NOTE: Java doesn't use this method.

Since
1.0
Check if document has animation.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle

SvgDocumentRequestCompleted(SvgDocumentHandle, const TPtrC16 &, const TPtrC8 &)

EXPORT_C TIntSvgDocumentRequestCompleted(SvgDocumentHandlehDocument,
const TPtrC16 &aUri,
const TPtrC8 &
)

Svg Document request complete. Once the requested external resource is available, the application forwards this information (data) to the SVG engine. If this method is called a second time for a same URL (uri) of a same SVG document, the engine will replace the current resource data with the new one. Note: Setting NULL for data (0 for data_size) indicates that the requested resource could not be fetched by java side, and in this event the SVG engine will not make further attempts to load this resource.

Since
1.0
javax.microedition.m2g.ScalableImage::requestCompleted() Svg Document RequestCompleted

Parameters

SvgDocumentHandle hDocumentSVG document handle
const TPtrC16 & aUri
const TPtrC8 &

SvgDocumentSetMediaTime(SvgDocumentHandle, TReal32)

IMPORT_C voidSvgDocumentSetMediaTime(SvgDocumentHandleaDocumentHandle,
TReal32seconds
)

Increments the animation or media timeline for the specified document aDocumentHandle (in seconds). This method is intended to move only forward in the timeline. It is important to note that setting large increments of time would result in skipping parts of the animation as per the SVG animation model.

Since
1.0
javax.microedition.m2g.SVGImage::incrementTime() org.w3c.dom.svg.SVGSVGElement::setCurrentTime() Set Media time for the specified document.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle.
TReal32 secondsthe value of time to be set in seconds.

SvgDocumentSetViewportHeight(SvgDocumentHandle, TInt)

IMPORT_C voidSvgDocumentSetViewportHeight(SvgDocumentHandleaDocumentHandle,
TIntaHeight
)

Set the new (viewport) height for the given SVG document.

Since
1.0
javax.microedition.m2g.ScalableImage::setViewportHeight() SvgDocumentGetViewportHeight Set the viewport height for the given document.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle
TInt aHeightThe new height to be set.

SvgDocumentSetViewportWidth(SvgDocumentHandle, TInt)

IMPORT_C voidSvgDocumentSetViewportWidth(SvgDocumentHandleaDocumentHandle,
TIntaWidth
)

Set the new (viewport) width for the given SVG document.

Since
1.0
javax.microedition.m2g.ScalableImage::setViewportWidth() SvgDocumentGetViewportWidth Set the viewport width for the given document.

Parameters

SvgDocumentHandle aDocumentHandleSVG document handle
TInt aWidthThe new width to be set.

SvgDocumentViewportInit(SvgDocumentHandle)

IMPORT_C voidSvgDocumentViewportInit(SvgDocumentHandleaDocumentHandle)

Set the default viewport size for the given SVG document. The default viewport size of 100-by-100 pixels is used when the size is unspecified.

Since
1.0

Parameters

SvgDocumentHandle aDocumentHandleDocument

SvgElementAddEventListener(SvgElementHandle, TInt, SvgAttrType)

IMPORT_C voidSvgElementAddEventListener(SvgElementHandleaElementHandle,
TIntaListener,
SvgAttrTypeaType
)

Add event listener to the given element. Note: need to replace void* with specific class NOTE: Java doesn't use this method.

Since
1.0
Add event listener to the given element. Note: need to replace void* with specific class

Parameters

SvgElementHandle aElementHandleThe element handle.
TInt aListenerListener
SvgAttrType aTypeType

SvgElementAppendChild(SvgElementHandle, SvgElementHandle)

IMPORT_C voidSvgElementAppendChild(SvgElementHandleaElementHandle,
SvgElementHandleaChildElementHandle
)

Append the given child element to the given svg element.

Since
1.0
org.w3c.dom.Node::appendChild() Append the given child element to the given svg element.

Parameters

SvgElementHandle aElementHandleElement handle
SvgElementHandle aChildElementHandleNew child element handle

SvgElementCheckRemoveable(SvgElementHandle)

IMPORT_C TIntSvgElementCheckRemoveable(SvgElementHandleaElementHandle)

Check if the given element is removable (no id or children with ids).

Since
1.0
org.w3c.dom.Node::removeChild() Check removable element. any element that doesnt have an id and its children dont have ids

Parameters

SvgElementHandle aElementHandleThe element handle.

SvgElementCreate(SvgAttrType)

IMPORT_C SvgElementHandleSvgElementCreate(SvgAttrTypeaType)

Create a new svg element based on the specified (aType) SVG tag name. Only the following elements must be supported: <rect>, <circle>, <ellipse>, <line>, <path> <use> <image> <text>, <a> and <g>.

Since
1.0
org.w3c.dom.Document::createElementNS() Create a new svg element of the given tag string and append to the given svg element parent.

Parameters

SvgAttrType aType

SvgElementDestroy(SvgElementHandle)

IMPORT_C voidSvgElementDestroy(SvgElementHandlehElement)

Destroy svg element of the given handle. NOTE: Java doesn't use this method.

Since
1.0
Destroy svg element of the given handle.

Parameters

SvgElementHandle hElementElement handle

SvgElementElementInDOM(TInt, TInt)

IMPORT_C TIntSvgElementElementInDOM(TInthDocument,
TInthElement
)

Find whether the element is present in a document.

Since
1.0

Parameters

TInt hDocumentThe SVG document handle.
TInt hElementThe element handle.

SvgElementGetBBox(SvgElementHandle, SvgAttrType, TReal32 *, TReal32 *, TReal32 *, TReal32 *)

IMPORT_C voidSvgElementGetBBox(SvgElementHandleaElementHandle,
SvgAttrTypeaAttributeType,
TReal32 *aX,
TReal32 *aY,
TReal32 *aWidth,
TReal32 *aHeight
)

Returns the tight bounding box in current user coordinate space. Tight bounding box is the smallest possible rectangle that includes the geometry of all contained graphics elements excluding stroke. The calculation is done in the user coordinate space of the element. When bounding box is calculated elements with display property (trait) set to none are ignored. Exact rules for the bounding box calculation are given in the SVG spec.

Since
1.0
org.w3c.dom.svg.SVGLocatableElement::getBBox() Get the bounding box rectangle attribute value.

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgAttrType aAttributeTypeThe name of the attribute (trait) to retrieve.
TReal32 * aXX coordinate.
TReal32 * aYY coordinate.
TReal32 * aWidthWidth.
TReal32 * aHeightHeight.

SvgElementGetColorAttribute(SvgElementHandle, SvgAttrType, TInt *, TInt *, TInt *)

IMPORT_C TIntSvgElementGetColorAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaAttribute,
TInt *aRedValue,
TInt *aGreenValue,
TInt *aBlueValue
)

Get a color attribute from the given element. The values are copied into the color components given.

Since
1.0
org.w3c.dom.svg.SVGRGBColor Get a color attribute from the given element. The values are copied into the color object given.

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgAttrType aAttribute
TInt * aRedValueThe red value
TInt * aGreenValueThe green value
TInt * aBlueValueThe blue value

SvgElementGetEnumAttribute(SvgElementHandle, SvgAttrType)

IMPORT_C shortSvgElementGetEnumAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaAttribute
)

Get enum attribute (trait) value.

Since
1.0
org.w3c.dom.svg.SVGElement Get enum attribute value.

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgAttrType aAttributeThe name of the attribute (trait).

SvgElementGetFirstElementChild(SvgElementHandle)

IMPORT_C SvgElementHandleSvgElementGetFirstElementChild(SvgElementHandleaElementHandle)

Returns the first child element node of the given element. Return NULL if this element has no child elements.

Since
1.0
org.w3c.dom.svg.SVGElement::getFirstElementChild() Get the first child element for the given svg element.

Parameters

SvgElementHandle aElementHandleElement handle

SvgElementGetFloatAttribute(SvgElementHandle, SvgAttrType)

IMPORT_C TReal32SvgElementGetFloatAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaAttribute
)

Return a attribute (trait) value as float.

Since
1.0
org.w3c.dom.svg.SVGElement::getFloatTrait() Get a float attribute value.

Parameters

SvgElementHandle aElementHandleThe element.
SvgAttrType aAttributeAttribute's (or trait's) name

SvgElementGetMatrixAttribute(SvgElementHandle, SvgAttrType, TReal32 *, TReal32 *, TReal32 *, TReal32 *, TReal32 *, TReal32 *)

IMPORT_C TIntSvgElementGetMatrixAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaMatrixAttribute,
TReal32 *aAVal,
TReal32 *aBVal,
TReal32 *aCVal,
TReal32 *aDVal,
TReal32 *aEVal,
TReal32 *aFVal
)
Get the matrix attribute (trait) values. NOTE: The returned values are copies of the actual attribute (trait) values and will not change if the corresponding trait changes.
 [aAVal aCVal aEVal]
 [aBVal aDVal aFVal]
 
Since
1.0
org.w3c.dom.svg.SVGElement::getMatrixTrait() Get the matrix attribute value.

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgAttrType aMatrixAttributeThe name of the attribute (trait) to retrieve.
TReal32 * aAValThe x scaling component
TReal32 * aBValThe y shearing component
TReal32 * aCValThe x shearing component
TReal32 * aDValThe y scaling component
TReal32 * aEValThe x translation component
TReal32 * aFValThe y translation component

SvgElementGetNextElementSibling(SvgElementHandle)

IMPORT_C SvgElementHandleSvgElementGetNextElementSibling(SvgElementHandleaElementHandle)

Returns the next sibling element of the given element. Return NULL if the given element has no element sibling nodes that come after this one in the document tree.

Since
1.0
org.w3c.dom.svg.SVGElement::getNextElementSibling() Get the next sibling element for the given svg element.

Parameters

SvgElementHandle aElementHandleElement handle

SvgElementGetParent(SvgElementHandle)

IMPORT_C SvgElementHandleSvgElementGetParent(SvgElementHandleaElementHandle)

Returns a parent element of the given element.

Since
1.0
org.w3c.dom.svg.SVGElement::getParentNode() Get the parent element for the given svg element.

Parameters

SvgElementHandle aElementHandleElement handle

SvgElementGetPathAttribute(SvgElementHandle, SvgAttrType)

IMPORT_C TIntSvgElementGetPathAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaPathAttribute
)

Get the path attribute (trait)value. NOTE: The returned values are copies of the actual attribute values and will not change if the corresponding trait changes.

Since
1.0
org.w3c.dom.svg.SVGElement::getPathTrait() org.w3c.dom.svg.SVGPath Get the path attribute value.

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgAttrType aPathAttributeThe name of the attribute (trait) to retrieve.

SvgElementGetRectAttribute(SvgElementHandle, SvgAttrType, TReal32 *, TReal32 *, TReal32 *, TReal32 *)

IMPORT_C TIntSvgElementGetRectAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaRectAttribute,
TReal32 *aX,
TReal32 *aY,
TReal32 *aWidth,
TReal32 *aHeight
)

Return the rectangle attribute (trait) values. NOTE: The returned values are copies of the actual attribute (trait) values and will not change if the corresponding trait changes.

Since
1.0
org.w3c.dom.svg.SVGElement::getRectTrait() Get the rectangle attribute value.

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgAttrType aRectAttributeThe name of the attribute (trait) to retrieve.
TReal32 * aXX coordinate.
TReal32 * aYY coordinate.
TReal32 * aWidthWidth.
TReal32 * aHeightHeight.

SvgElementGetScreenBBox(TInt, TReal32 *, TReal32 *, TReal32 *, TReal32 *)

IMPORT_C voidSvgElementGetScreenBBox(TInthElement,
TReal32 *x,
TReal32 *y,
TReal32 *w,
TReal32 *h
)

Gets a screen bounding box for the given element. Returns the tight bounding box in screen coordinate space. Tight bounding box is the smallest possible rectangle that includes the geometry of all contained graphics elements excluding stroke. The box coordinates are in the screen coordinate space, which is connected to the current user coordinate space by the matrix returned by SvgElementGetMatrixAttribute (with attribute id=<svg>).

Since
1.0
org.w3c.dom.svg.SVGLocatableElement::getScreenBBox() org.w3c.dom.svg.SVGLocatableElement::getScreenCTM()

Parameters

TInt hElementThe element handle.
TReal32 * x
TReal32 * y
TReal32 * w
TReal32 * h

SvgElementGetStringAttribute(SvgElementHandle, SvgAttrType, TPtrC16 &)

IMPORT_C TIntSvgElementGetStringAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaAttributeName,
TPtrC16 &aStrAttribute
)

Get a string attribute from the given element.

Since
1.0
org.w3c.dom.svg.SVGElement Get a string attribute from the given element. returning 16 bit characters now instead of 8 bit ones that the original JSR used...

Parameters

SvgElementHandle aElementHandleThe element.
SvgAttrType aAttributeNameAttribute's name
TPtrC16 & aStrAttribute

SvgElementGetType(SvgElementHandle)

IMPORT_C TIntSvgElementGetType(SvgElementHandleaElementHandle)

Request element type. The following element type are supported: <a>, <animate>, <animateColor>, <animateMotion>, <animateTransform> <circle> <defs> <ellipse>, <font>, <font-face>, <font-face-name>, <font-face-src>, <foreignObject>, <g>, <glyph>, <hkern>, <image>, <line>, <metadata>, <missing-glyph>, <metadata>, <mpath>. <path>, <polygon>, <polyline>, <rect>, <set>, <svg>, <switch>, <text>, <title>, <use>.

Since
1.0
org.w3c.dom.svg.SVGElement Request element type.

Parameters

SvgElementHandle aElementHandleThe element.

SvgElementGetUsedFromElement(TInt)

IMPORT_C TIntSvgElementGetUsedFromElement(TInthElement)

Finds the handle to the actual cloned element.

Since
1.0
javax.microedition.m2g.SVGImage::dispatchMouseEvent()

Parameters

TInt hElementaElement This is handle to the cloned element. this is child of the <use> element.

SvgElementHasAnimation(SvgElementHandle)

IMPORT_C TIntSvgElementHasAnimation(SvgElementHandleaElementHandle)

Check if document has animation. NOTE: Java doesn't use this method.

Since
1.0
Check if element has animation.

Parameters

SvgElementHandle aElementHandleSVG element handle

SvgElementInsertBefore(SvgElementHandle, SvgElementHandle, SvgElementHandle)

IMPORT_C voidSvgElementInsertBefore(SvgElementHandleaElementHandle,
SvgElementHandleaChildElementHandle,
SvgElementHandleaReferenceElementHandle
)

Inserts aChildElementHandle before aReferenceElementHandle in the child list for the aElementHandle. If aReferenceElementHandle is NULL, aChildElementHandle is inserted at the end of the list. If the aChildElementHandle is already part of the tree, it is first removed.

Since
1.0
org.w3c.dom.Node::insertBefore()
Exceptions
TODO

Should throw exception if the aChildElementHandle would cause the SVG document to go into error, for ex: when the newChild contains a <use> element with an invalid xlink:href attribute.

Add the given child element to the given svg element, before the given reference element.

Parameters

SvgElementHandle aElementHandleThe parent element.
SvgElementHandle aChildElementHandleThe child to add
SvgElementHandle aReferenceElementHandleThe child before which the new child should be added.

SvgElementIsActive(SvgElementHandle)

IMPORT_C TIntSvgElementIsActive(SvgElementHandleaElementHandle)
Check if element is active. i.e. an animation element is active in these cases:
  • A media time is 1s.
        <rect id="&lt;element&gt;" x="&lt;0&gt;" y="&lt;20&gt;" width="&lt;20&gt;" height="&lt;20&gt;">
              <animate id=<animationElement> attributeName=<x> attributeType=<XML>
                     begin=<1s> dur=<4s> end=<2s> fill=<freeze> 
    				 from=<0> to=<80>
    		   </animate>
    		   </rect>
     
  • A media time is 2s.
        <rect id="&lt;element&gt;" x="&lt;0&gt;" y="&lt;20&gt;" width="&lt;20&gt;" height="&lt;20&gt;">
              <animate id=<animationElement> attributeName=<x> attributeType=<XML>
                     begin=<1s> dur=<4s> end=<2s> fill=<freeze> 
    				 from=<0> to=<80>
    		   </animate>
    		   </rect>
     
Since
1.0
org.w3c.dom.svg.SVGAnimationElement::endElementAt() Check if element is active.

Parameters

SvgElementHandle aElementHandleThe element handle.

SvgElementIsUsed(TInt)

IMPORT_C TIntSvgElementIsUsed(TInthElement)

Checks whether this element is child of a use element.

Since
1.0
javax.microedition.m2g.SVGImage::dispatchMouseEvent()

Parameters

TInt hElementThe element handle.

SvgElementRemoveChild(SvgElementHandle, SvgElementHandle)

IMPORT_C SvgElementHandleSvgElementRemoveChild(SvgElementHandleaElementHandle,
SvgElementHandleaChildElementHandle
)

Remove the given child element from the given svg element. Elements that have ids cannot be removed from the tree.

Since
1.0
org.w3c.dom.Node::removeChild() Remove the given child element from the given svg element.

Parameters

SvgElementHandle aElementHandleThe parent element.
SvgElementHandle aChildElementHandleThe element that is to be removed TODO

SvgElementRemoveEventListener(SvgElementHandle, TInt, SvgAttrType)

IMPORT_C voidSvgElementRemoveEventListener(SvgElementHandleaElementHandle,
TIntaListener,
SvgAttrTypeaType
)

Remove event listener from the given element. Note: need to replace void* with specific class NOTE: Java doesn't use this method.

Since
1.0
Remove event listener from the given element. Note: need to replace void* with specific class

Parameters

SvgElementHandle aElementHandleThe element handle.
TInt aListenerListener
SvgAttrType aTypeType

SvgElementSetColorAttribute(SvgElementHandle, SvgAttrType, TInt, TInt, TInt)

IMPORT_C voidSvgElementSetColorAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaAttribute,
TIntaRedValue,
TIntaGreenValue,
TIntaBlueValue
)

Set a color attribute for the given element.

Since
1.0
org.w3c.dom.svg.SVGRGBColor Set a color attribute for the given element.

Parameters

SvgElementHandle aElementHandleThe element.
SvgAttrType aAttributeAttribute's name
TInt aRedValueThe red value
TInt aGreenValueThe green value
TInt aBlueValueThe blue value

SvgElementSetEnumAttribute(SvgElementHandle, SvgAttrType, short)

IMPORT_C voidSvgElementSetEnumAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaAttribute,
shortaValue
)

Set enum attribute (trait) value.

Since
1.0
org.w3c.dom.svg.SVGElement Set enum attribute value.

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgAttrType aAttributeThe name of the attribute (trait) to be set.
short aValueThe value of the attribute (trait) to be set.

SvgElementSetFloatAttribute(SvgElementHandle, SvgAttrType, TReal32)

IMPORT_C voidSvgElementSetFloatAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaAttribute,
TReal32aFloatValue
)

Set the attribute (trait) value as float.

Since
1.0
org.w3c.dom.svg.SVGElement::getFloatTrait() Set a float attribute value.

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgAttrType aAttributeThe name of the attribute (trait) to be set.
TReal32 aFloatValueThe value of the attribute (trait) to be set as float.

SvgElementSetMatrixAttribute(SvgElementHandle, SvgAttrType, TReal32, TReal32, TReal32, TReal32, TReal32, TReal32)

IMPORT_C voidSvgElementSetMatrixAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaMatrixAttribute,
TReal32aAVal,
TReal32aBVal,
TReal32aCVal,
TReal32aDVal,
TReal32aEVal,
TReal32aFVal
)
Set the matrix attribute (trait) values.
 [aAVal aCVal aEVal]
 [aBVal aDVal aFVal]
 
Since
1.0
org.w3c.dom.svg.SVGElement::setMatrixTrait() Set the matrix attribute value.

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgAttrType aMatrixAttributeThe name of the attribute (trait) to be set.
TReal32 aAValThe x scaling component
TReal32 aBValThe y shearing component
TReal32 aCValThe x shearing component
TReal32 aDValThe y scaling component
TReal32 aEValThe x translation component
TReal32 aFValThe y translation component

SvgElementSetPathAttribute(SvgElementHandle, SvgAttrType, SvgPathHandle)

IMPORT_C voidSvgElementSetPathAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaPathAttribute,
SvgPathHandleaPathHandle
)

Set the path attribute (trait) value. NOTE: Value is a copy in the trait so subsequent changes to the given aPathHandle have no effect on the value of the attribute (trait).

Since
1.0
org.w3c.dom.svg.SVGElement::setPathTrait() org.w3c.dom.svg.SVGPath

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgAttrType aPathAttributeThe name of the attribute (trait) to be set.
SvgPathHandle aPathHandleThe value of the attribute (trait) to be set as.

SvgElementSetRectAttribute(SvgElementHandle, SvgAttrType, TReal32, TReal32, TReal32, TReal32)

IMPORT_C voidSvgElementSetRectAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaRectAttribute,
TReal32aX,
TReal32aY,
TReal32aWidth,
TReal32aHeight
)

Set the rectangle attribute (trait) values.

Since
1.0
org.w3c.dom.svg.SVGElement::setRectTrait() Set the rectangle attribute value.

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgAttrType aRectAttributeThe name of the attribute (trait) to be set.
TReal32 aXX coordinate.
TReal32 aYY coordinate.
TReal32 aWidthWidth.
TReal32 aHeightHeight.

SvgElementSetStringAttribute(SvgElementHandle, SvgAttrType, const TPtrC16 &)

IMPORT_C voidSvgElementSetStringAttribute(SvgElementHandleaElementHandle,
SvgAttrTypeaAttributeName,
const TPtrC16 &aAttributeValue
)

Set a string attribute in the given element.

Since
1.0
org.w3c.dom.svg.SVGElement Set a string attribute on the given element.

Parameters

SvgElementHandle aElementHandleThe SVG element handle.
SvgAttrType aAttributeNameAttribute's name
const TPtrC16 & aAttributeValueAtribute's value.

SvgElementUpdatePath(SvgElementHandle, SvgPathHandle)

IMPORT_C voidSvgElementUpdatePath(SvgElementHandleaElementHandle,
SvgPathHandleaPathHandle
)

Update path info. NOTE: Java doesn't use this method.

Since
1.0
Update path info.

Parameters

SvgElementHandle aElementHandleThe element handle.
SvgPathHandle aPathHandleThe path handle.

SvgEngineCreate()

IMPORT_C SvgEngineHandleSvgEngineCreate()

Create an SvgEngine instance. NOTE: Java side uses engine only during rendering phase.

Since
1.0
javax.microedition.m2g.ScalableGraphics::render() Create an SvgEngine instance.

SvgEngineDestroy(SvgEngineHandle)

IMPORT_C voidSvgEngineDestroy(SvgEngineHandleaEngineHandle)

Request to destroy the given engine by handle. NOTE: Java MIDlet could use multiple engines.

Since
1.0
Request to destroy the given engine by handle.

Parameters

SvgEngineHandle aEngineHandleEngine

SvgEngineRenderDocument(SvgEngineHandle, SvgDocumentHandle, TInt, TInt, TReal32)

IMPORT_C voidSvgEngineRenderDocument(SvgEngineHandleaEngineHandle,
SvgDocumentHandleaDocumentHandle,
TIntaSurfaceHandle,
TIntaSurfaceMaskHandle = NULL,
TReal32aCurrentTime = 0.0f
)

Request to render the SVG document.

Since
1.0
javax.microedition.m2g.ScalableGraphics::render() Request to render the SVG document.

Parameters

SvgEngineHandle aEngineHandleSvg engine handle
SvgDocumentHandle aDocumentHandleSvg document handle
TInt aSurfaceHandleSvg surface handle
TInt aSurfaceMaskHandle = NULLMask that defines what pixels should be thrown and what not.
TReal32 aCurrentTime = 0.0fCurrent frame time. NOTE might be obsolete since the

SvgEngineRenderDocumentL(SvgEngineHandle, SvgDocumentHandle, TInt, const TPoint &, const TRect &, TReal32, TReal32)

IMPORT_C voidSvgEngineRenderDocumentL(SvgEngineHandleaEngineHandle,
SvgDocumentHandleaDocumentHandle,
TIntaSurfaceHandle,
const TPoint &aAnchor,
const TRect &aRenderArea,
TReal32aCurrentTime,
TReal32aAlpha
)

Parameters

SvgEngineHandle aEngineHandle
SvgDocumentHandle aDocumentHandle
TInt aSurfaceHandle
const TPoint & aAnchor
const TRect & aRenderArea
TReal32 aCurrentTime
TReal32 aAlpha

SvgEngineResume(SvgEngineHandle)

IMPORT_C voidSvgEngineResume(SvgEngineHandleaEngineHandle)

Parameters

SvgEngineHandle aEngineHandle

SvgEngineSetRenderQuality(SvgEngineHandle, TInt)

IMPORT_C voidSvgEngineSetRenderQuality(SvgEngineHandleaEngineHandle,
TIntaQuality
)

Request to set render quality. Set the quality of rendering. It can take one of the values, RENDERING_QUALITY_LOW (=1) or RENDERING_QUALITY_HIGH (=2). Default value is RENDERING_QUALITY_HIGH. The implementation of these quality levels is implementation dependent and should be mapped to definitions in SVG spec (shape, text, image and color rendering)

Since
1.0
javax.microedition.m2g.ScalableGraphics::setRenderingQuality() Request to set render quality.

Parameters

SvgEngineHandle aEngineHandleEngine handle.
TInt aQualityThis value indicates the quality of rendering required.

SvgEngineStart(SvgEngineHandle)

IMPORT_C voidSvgEngineStart(SvgEngineHandleaEngineHandle)

Parameters

SvgEngineHandle aEngineHandle

SvgEngineStop(SvgEngineHandle)

IMPORT_C voidSvgEngineStop(SvgEngineHandleaEngineHandle)

Parameters

SvgEngineHandle aEngineHandle

SvgEnumerationMappingJSRtoSVG(const TInt, TInt)

TInt SvgEnumerationMappingJSRtoSVG(const TIntaAttributeId,
TIntaJsrEnumValue
)[private]

Gets the Enumeration value mapping from JSR to SVG. Attribute t

This maps the Enumeration Mapping form JSR specific to SVG specific

Parameters

const TInt aAttributeId
TInt aJsrEnumValue

SvgEnumerationMappingSVGtoJSR(const TInt, TInt32)

TInt SvgEnumerationMappingSVGtoJSR(const TIntaAttributeId,
TInt32aSvgEnumValue
)[private]

Gets the Enumeration value mapping from JSR to SVG. Attribute t

This maps the Enumeration from SVG to JSR.

Parameters

const TInt aAttributeId
TInt32 aSvgEnumValue

SvgEnumerationtoStringMappingJSRtoSVG(const TInt, short, TDes &)

TInt SvgEnumerationtoStringMappingJSRtoSVG(const TIntaAttributeId,
shortaJsrEnumValue,
TDes &aValue
)[private]

Gets the Enumeration value to string mapping from JSR to SVG. Attribute t

This maps the Enumeration from JSR to SVG. SVG enumerated value here is string type.

Parameters

const TInt aAttributeId
short aJsrEnumValue
TDes & aValue

SvgGetAttributeTypeMappingJSRtoSVG(SvgAttrType)

TInt SvgGetAttributeTypeMappingJSRtoSVG(SvgAttrTypeaType)[private]

Gets the attribute type mapping from JSR to SVG. Attribute t

This maps the Attribute ids form JSR specific to SVG specific

Parameters

SvgAttrType aType

SvgGetAttributeTypeMappingSVGtoJSR(const TInt)

SvgAttrType SvgGetAttributeTypeMappingSVGtoJSR(const TIntaElementId)[private]

Gets the attribute type mapping from SVG to JSR. Attribute t

This maps the Attribute ids form SVG specific to JSR specific

Parameters

const TInt aElementId

SvgGetElementTypeMappingJSRtoSVG(SvgAttrType)

TInt SvgGetElementTypeMappingJSRtoSVG(SvgAttrTypeaType)[private]

Gets The corresponding JSR-to-SVG element id. Ids of the elements differ in the svg engine and the JSR-API's.

This maps the element ids form JSR specific to SVG specific

Parameters

SvgAttrType aType

SvgGetElementTypeMappingSVGtoJSR(const TInt)

SvgAttrType SvgGetElementTypeMappingSVGtoJSR(const TIntaElementId)[private]

Gets The corresponding SVG-to-JSR element id. Ids of the elements differ in the svg engine and the JSR-API's.

This maps the element ids form SVG specific to JSR specific

Parameters

const TInt aElementId

SvgPathAddClose(SvgPathHandle)

IMPORT_C voidSvgPathAddClose(SvgPathHandleaPathHandle)

Appends 'Z' (close path) segment to the path

Since
1.0
org.w3c.dom.svg.SVGPath::close() Send a close-path command to the given path.

Parameters

SvgPathHandle aPathHandleThe path handle.

SvgPathAddCurveTo(SvgPathHandle, TReal32, TReal32, TReal32, TReal32, TReal32, TReal32)

IMPORT_C voidSvgPathAddCurveTo(SvgPathHandleaPathHandle,
TReal32aX1,
TReal32aY1,
TReal32aX2,
TReal32aY2,
TReal32aX3,
TReal32aY3
)

Appends 'C' (absolute cubic curve) segment to the path.

Since
1.0
org.w3c.dom.svg.SVGPath::curveTo() Add a curve-to command to the given path.

Parameters

SvgPathHandle aPathHandleThe path handle.
TReal32 aX1the x-axis coordinate of the first control point.
TReal32 aY1the y-axis coordinate of the first control point.
TReal32 aX2the x-axis coordinate of the second end point.
TReal32 aY2the y-axis coordinate of the second end point.
TReal32 aX3the x-axis coordinate of the final end point.
TReal32 aY3the y-axis coordinate of the final end point.

SvgPathAddLineTo(SvgPathHandle, TReal32, TReal32)

IMPORT_C voidSvgPathAddLineTo(SvgPathHandleaPathHandle,
TReal32aX,
TReal32aY
)

Appends 'L' (absolute line) segment to the path with the specified coordinates.

Since
1.0
org.w3c.dom.svg.SVGPath::moveTo() Add a line-to command to the given path.

Parameters

SvgPathHandle aPathHandleThe path handle.
TReal32 aXThe x-axis coordinate for the specified point.
TReal32 aYThe y-axis coordinate for the specified point.

SvgPathAddMoveTo(SvgPathHandle, TReal32, TReal32)

IMPORT_C voidSvgPathAddMoveTo(SvgPathHandleaPathHandle,
TReal32aX,
TReal32aY
)

Appends 'M' (absolute move) segment to the path with the specified coordinates.

Since
1.0
org.w3c.dom.svg.SVGPath::moveTo() Add a move-to command to the given path.

Parameters

SvgPathHandle aPathHandleThe path handle.
TReal32 aXThe x-axis coordinate for the specified point.
TReal32 aYThe y-axis coordinate for the specified point.

SvgPathAddQuadTo(SvgPathHandle, TReal32, TReal32, TReal32, TReal32)

IMPORT_C voidSvgPathAddQuadTo(SvgPathHandleaPathHandle,
TReal32aX1,
TReal32aY1,
TReal32aX2,
TReal32aY2
)

Appends 'Q' (absolute quadratic curve) segment to the path.

Since
1.0
org.w3c.dom.svg.SVGPath::quadTo() Add a quad-to command to the given path.

Parameters

SvgPathHandle aPathHandleThe path handle.
TReal32 aX1the x-axis coordinate of the first control point.
TReal32 aY1the y-axis coordinate of the first control point.
TReal32 aX2the x-axis coordinate of the final end point.
TReal32 aY2the y-axis coordinate of the final end point.

SvgPathCreate()

IMPORT_C SvgPathHandleSvgPathCreate()

Creates new path object that is empty. This object can be used to modify value of path traits

Since
1.0
org.w3c.dom.svg.SVGSVGElement::createSVGPath() org.w3c.dom.svg.SVGPath Create an empty path

SvgPathDestroy(SvgPathHandle)

IMPORT_C voidSvgPathDestroy(SvgPathHandleaPathHandle)

Destroy the specified path path

Since
1.0
org.w3c.dom.svg.SVGPath Destroy the specified path path

Parameters

SvgPathHandle aPathHandleHandle to the path to be deleted.

SvgPathGetSegmentCount(SvgPathHandle)

IMPORT_C TIntSvgPathGetSegmentCount(SvgPathHandleaPathHandle)

Get the segment count of the given path.

Since
1.0
org.w3c.dom.svg.SVGPath::getNumberOfSegments() Get the segment count for the given path.

Parameters

SvgPathHandle aPathHandleThe path handle.

SvgPathGetSegmentParameter(SvgPathHandle, TInt, TInt)

IMPORT_C TReal32SvgPathGetSegmentParameter(SvgPathHandleaPathHandle,
TIntaSegmentIndex,
TIntaSegmentParameterIndex
)

Returns segment parameter by zero-based command index and zero-based parametr index.

Since
1.0
org.w3c.dom.svg.SVGPath::getSegmentParameter() Get the segment parameter for the given path.

Parameters

SvgPathHandle aPathHandleThe path handle.
TInt aSegmentIndexThe command index for the segment command to retrieve.
TInt aSegmentParameterIndexThe parameter index for the segment parameter to retrieve.

SvgPathGetSegmentType(SvgPathHandle, TInt)

IMPORT_C TIntSvgPathGetSegmentType(SvgPathHandleaPathHandle,
TIntaSegmentIndex
)

Returns segment command by zero-based command index. Returns one of MOVE_TO, LINE_TO, CURVE_TO, QUAD_TO or CLOSE.

Since
1.0
org.w3c.dom.svg.SVGPath::getSegment() Get the segment type for the given path.

Parameters

SvgPathHandle aPathHandleThe path handle.
TInt aSegmentIndexThe command index for the segment command to retrieve.

SvgRenderingSurfaceClearBuffer(SvgSurfaceHandle)

IMPORT_C voidSvgRenderingSurfaceClearBuffer(SvgSurfaceHandleaSurface)

Clear the Svg Rendering Surface. NOTE: Java doesn't use this method.

Since
1.0

Parameters

SvgSurfaceHandle aSurfaceSurface

SvgRenderingSurfaceCreate(TInt, TInt)

IMPORT_C SvgSurfaceHandleSvgRenderingSurfaceCreate(TIntaWidth,
TIntaHeight
)

Create a Svg Rendering Surface. NOTE: Java doesn't use this method.

Since
1.0
Create a Svg Rendering Surface.

Parameters

TInt aWidthWidth
TInt aHeightHeight

SvgRenderingSurfaceDestroy(SvgSurfaceHandle)

IMPORT_C voidSvgRenderingSurfaceDestroy(SvgSurfaceHandleaSurface)

Destroy a Svg Rendering Surface. NOTE: Java doesn't use this method.

Since
1.0
Destroy a Svg Rendering Surface.

Parameters

SvgSurfaceHandle aSurfaceSurface

SvgRenderingSurfaceGetBuffer(SvgSurfaceHandle)

IMPORT_C TUint *SvgRenderingSurfaceGetBuffer(SvgSurfaceHandleaSurface)

Get a pointer to the Svg Rendering surface. NOTE: Java doesn't use this method.

Since
1.0
Get a pointer to the Svg Rendering surface.

Parameters

SvgSurfaceHandle aSurfaceSurface

SvgRenderingSurfaceGetHeight(SvgSurfaceHandle)

IMPORT_C TIntSvgRenderingSurfaceGetHeight(SvgSurfaceHandleaSurface)

Get the height of the Svg Rendering Surface. NOTE: Java doesn't use this method.

Since
1.0
Get the height of the Svg Rendering Surface

Parameters

SvgSurfaceHandle aSurfaceSurface

SvgRenderingSurfaceGetWidth(SvgSurfaceHandle)

IMPORT_C TIntSvgRenderingSurfaceGetWidth(SvgSurfaceHandleaSurface)

Get the width of the Svg Rendering Surface. NOTE: Java doesn't use this method.

Since
1.0
Get the width of the Svg Rendering Surface.

Parameters

SvgSurfaceHandle aSurfaceSurface

SvgStringtoEnumerationMappingSVGtoJSR(const TInt, TPtrC16)

TInt SvgStringtoEnumerationMappingSVGtoJSR(const TIntaAttrbuteId,
TPtrC16aValue
)[private]

Gets the string to enumeration value mapping from SVG to JSR. Attribute t

This maps the Enumeration from SVG to JSR. SVG enumerated value here is string type.

Parameters

const TInt aAttrbuteId
TPtrC16 aValue

Member Data Documentation

CSvgDocumentImpl * iTempDoc

CSvgDocumentImpl *iTempDoc