- getAlignment() - Method in class com.caverock.androidsvg.PreserveAspectRatio
-
Returns the alignment value of this instance.
- getDocumentAspectRatio() - Method in class com.caverock.androidsvg.SVG
-
Returns the aspect ratio of the document as a width/height fraction.
- getDocumentDescription() - Method in class com.caverock.androidsvg.SVG
-
Returns the contents of the <desc> element in the SVG document.
- getDocumentHeight() - Method in class com.caverock.androidsvg.SVG
-
Returns the height of the document as specified in the SVG file.
- getDocumentPreserveAspectRatio() - Method in class com.caverock.androidsvg.SVG
-
Return the "preserveAspectRatio" attribute of the root
<svg>
element in the form of an
PreserveAspectRatio object.
- getDocumentSVGVersion() - Method in class com.caverock.androidsvg.SVG
-
Returns the SVG version number as provided in the root <svg> tag of the document.
- getDocumentTitle() - Method in class com.caverock.androidsvg.SVG
-
Returns the contents of the <title> element in the SVG document.
- getDocumentViewBox() - Method in class com.caverock.androidsvg.SVG
-
Returns the viewBox attribute of the current SVG document.
- getDocumentWidth() - Method in class com.caverock.androidsvg.SVG
-
Returns the width of the document as specified in the SVG file.
- getFromAsset(AssetManager, String) - Static method in class com.caverock.androidsvg.SVG
-
Read and parse an SVG from the assets folder.
- getFromInputStream(InputStream) - Static method in class com.caverock.androidsvg.SVG
-
Read and parse an SVG from the given InputStream.
- getFromResource(Context, int) - Static method in class com.caverock.androidsvg.SVG
-
Read and parse an SVG from the given resource location.
- getFromResource(Resources, int) - Static method in class com.caverock.androidsvg.SVG
-
Read and parse an SVG from the given resource location.
- getFromString(String) - Static method in class com.caverock.androidsvg.SVG
-
Read and parse an SVG from the given String.
- getRenderDPI() - Method in class com.caverock.androidsvg.SVG
-
Get the current render DPI setting.
- getScale() - Method in class com.caverock.androidsvg.PreserveAspectRatio
-
Returns the scale value of this instance.
- getVersion() - Static method in class com.caverock.androidsvg.SVG
-
Returns the version number of this library.
- getViewList() - Method in class com.caverock.androidsvg.SVG
-
Returns a list of ids for all <view> elements in this SVG document.
- registerExternalFileResolver(SVGExternalFileResolver) - Static method in class com.caverock.androidsvg.SVG
-
Register an
SVGExternalFileResolver instance that the renderer should use when resolving
external references such as images, fonts, and CSS stylesheets.
- RenderOptions - Class in com.caverock.androidsvg
-
- RenderOptions() - Constructor for class com.caverock.androidsvg.RenderOptions
-
Create a new RenderOptions instance.
- RenderOptions(RenderOptions) - Constructor for class com.caverock.androidsvg.RenderOptions
-
Creates a copy of the given RenderOptions object.
- renderToCanvas(Canvas) - Method in class com.caverock.androidsvg.SVG
-
Renders this SVG document to a Canvas object.
- renderToCanvas(Canvas, RectF) - Method in class com.caverock.androidsvg.SVG
-
Renders this SVG document to a Canvas object.
- renderToCanvas(Canvas, RenderOptions) - Method in class com.caverock.androidsvg.SVG
-
Renders this SVG document to a Canvas object.
- renderToPicture() - Method in class com.caverock.androidsvg.SVG
-
Renders this SVG document to a Picture object.
- renderToPicture(int, int) - Method in class com.caverock.androidsvg.SVG
-
Renders this SVG document to a
Picture.
- renderToPicture(RenderOptions) - Method in class com.caverock.androidsvg.SVG
-
Renders this SVG document to a
Picture.
- renderToPicture(int, int, RenderOptions) - Method in class com.caverock.androidsvg.SVG
-
Renders this SVG document to a
Picture.
- renderViewToCanvas(String, Canvas) - Method in class com.caverock.androidsvg.SVG
-
Renders this SVG document to a Canvas using the specified view defined in the document.
- renderViewToCanvas(String, Canvas, RectF) - Method in class com.caverock.androidsvg.SVG
-
Renders this SVG document to a Canvas using the specified view defined in the document.
- renderViewToPicture(String, int, int) - Method in class com.caverock.androidsvg.SVG
-
Renders this SVG document to a
Picture using the specified view defined in the document.
- resolveCSSStyleSheet(String) - Method in class com.caverock.androidsvg.SimpleAssetResolver
-
Attempt to find the specified stylesheet file in the "assets" folder and return its string contents.
- resolveCSSStyleSheet(String) - Method in class com.caverock.androidsvg.SVGExternalFileResolver
-
Called by the parser to resolve CSS stylesheet file references in <?xml-stylesheet?>
processing instructions.
- resolveFont(String, int, String) - Method in class com.caverock.androidsvg.SimpleAssetResolver
-
Attempt to find the specified font in the "assets" folder and return a Typeface object.
- resolveFont(String, int, String) - Method in class com.caverock.androidsvg.SVGExternalFileResolver
-
Called by renderer to resolve font references in <text> elements.
- resolveImage(String) - Method in class com.caverock.androidsvg.SimpleAssetResolver
-
Attempt to find the specified image file in the assets folder and return a decoded Bitmap.
- resolveImage(String) - Method in class com.caverock.androidsvg.SVGExternalFileResolver
-
Called by renderer to resolve image file references in <image> elements.
- setCSS(String) - Method in class com.caverock.androidsvg.SVGImageView
-
Directly set the CSS.
- setDocumentHeight(float) - Method in class com.caverock.androidsvg.SVG
-
Change the height of the document by altering the "height" attribute
of the root <svg> element.
- setDocumentHeight(String) - Method in class com.caverock.androidsvg.SVG
-
Change the height of the document by altering the "height" attribute
of the root <svg> element.
- setDocumentPreserveAspectRatio(PreserveAspectRatio) - Method in class com.caverock.androidsvg.SVG
-
Change the document positioning by altering the "preserveAspectRatio"
attribute of the root <svg> element.
- setDocumentViewBox(float, float, float, float) - Method in class com.caverock.androidsvg.SVG
-
Change the document view box by altering the "viewBox" attribute
of the root <svg> element.
- setDocumentWidth(float) - Method in class com.caverock.androidsvg.SVG
-
Change the width of the document by altering the "width" attribute
of the root <svg> element.
- setDocumentWidth(String) - Method in class com.caverock.androidsvg.SVG
-
Change the width of the document by altering the "width" attribute
of the root <svg> element.
- setImageAsset(String) - Method in class com.caverock.androidsvg.SVGImageView
-
Load an SVG image from the given asset filename.
- setImageResource(int) - Method in class com.caverock.androidsvg.SVGImageView
-
Load an SVG image from the given resource id.
- setImageURI(Uri) - Method in class com.caverock.androidsvg.SVGImageView
-
Load an SVG image from the given resource URI.
- setInternalEntitiesEnabled(boolean) - Static method in class com.caverock.androidsvg.SVG
-
Tells the parser whether to allow the expansion of internal entities.
- setRenderDPI(float) - Method in class com.caverock.androidsvg.SVG
-
Set the DPI (dots-per-inch) value to use when rendering.
- setSVG(SVG) - Method in class com.caverock.androidsvg.SVGImageView
-
Directly set the SVG that should be rendered by this view.
- setSVG(SVG, String) - Method in class com.caverock.androidsvg.SVGImageView
-
Directly set the SVG and the CSS.
- SimpleAssetResolver - Class in com.caverock.androidsvg
-
- SimpleAssetResolver(AssetManager) - Constructor for class com.caverock.androidsvg.SimpleAssetResolver
-
- START - Static variable in class com.caverock.androidsvg.PreserveAspectRatio
-
Keep the document's aspect ratio, but scale it so that it fits neatly inside the viewport.
- STRETCH - Static variable in class com.caverock.androidsvg.PreserveAspectRatio
-
Stretch horizontally and vertically to fill the viewport.
- SVG - Class in com.caverock.androidsvg
-
AndroidSVG is a library for reading, parsing and rendering SVG documents on Android devices.
- SVGExternalFileResolver - Class in com.caverock.androidsvg
-
Resolver class used by the renderer when resolving font, image, and external CSS references.
- SVGExternalFileResolver() - Constructor for class com.caverock.androidsvg.SVGExternalFileResolver
-
- SVGImageView - Class in com.caverock.androidsvg
-
SVGImageView is a View widget that allows users to include SVG images in their layouts.
- SVGImageView(Context) - Constructor for class com.caverock.androidsvg.SVGImageView
-
- SVGImageView(Context, AttributeSet) - Constructor for class com.caverock.androidsvg.SVGImageView
-
- SVGImageView(Context, AttributeSet, int) - Constructor for class com.caverock.androidsvg.SVGImageView
-
- SVGParseException - Exception in com.caverock.androidsvg
-
Thrown by the parser if a problem is found in the SVG file.