Skip navigation links
B C D E F G H I L O P R S T U V 

B

BOTTOM - 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.

C

com.caverock.androidsvg - package com.caverock.androidsvg
 
create() - Static method in class com.caverock.androidsvg.RenderOptions
Create a new RenderOptions instance.
css(String) - Method in class com.caverock.androidsvg.RenderOptions
Specifies some additional CSS rules that will be applied during render in addition to any specified in the file itself.

D

deregisterExternalFileResolver() - Static method in class com.caverock.androidsvg.SVG
De-register the current SVGExternalFileResolver instance.

E

END - 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.
equals(Object) - Method in class com.caverock.androidsvg.PreserveAspectRatio
 

F

FULLSCREEN - Static variable in class com.caverock.androidsvg.PreserveAspectRatio
Keep the document's aspect ratio, but scale it so that it fills the entire viewport.
FULLSCREEN_START - Static variable in class com.caverock.androidsvg.PreserveAspectRatio
Keep the document's aspect ratio, but scale it so that it fills the entire viewport.

G

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.

H

hasCss() - Method in class com.caverock.androidsvg.RenderOptions
Returns true if this RenderOptions instance has had CSS set with css().
hasPreserveAspectRatio() - Method in class com.caverock.androidsvg.RenderOptions
Returns true if this RenderOptions instance has had a preserveAspectRatio value set with preserveAspectRatio().
hasTarget() - Method in class com.caverock.androidsvg.RenderOptions
Returns true if this RenderOptions instance has had a target set with target().
hasView() - Method in class com.caverock.androidsvg.RenderOptions
Returns true if this RenderOptions instance has had a view set with view().
hasViewBox() - Method in class com.caverock.androidsvg.RenderOptions
Returns true if this RenderOptions instance has had a viewBox set with viewBox().
hasViewPort() - Method in class com.caverock.androidsvg.RenderOptions
Returns true if this RenderOptions instance has had a viewPort set with viewPort().

I

isFormatSupported(String) - Method in class com.caverock.androidsvg.SimpleAssetResolver
Returns true when passed the MIME types for SVG, JPEG, PNG or any of the other bitmap image formats supported by Android's BitmapFactory class.
isFormatSupported(String) - Method in class com.caverock.androidsvg.SVGExternalFileResolver
Called by renderer to determine whether a particular format is supported.
isInternalEntitiesEnabled() - Static method in class com.caverock.androidsvg.SVG
 

L

LETTERBOX - 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.

O

of(String) - Static method in class com.caverock.androidsvg.PreserveAspectRatio
Parse the given SVG preserveAspectRation attribute value and return an equivalent instance of this class.

P

PreserveAspectRatio - Class in com.caverock.androidsvg
The PreserveAspectRatio class tells the renderer how to scale and position the SVG document in the current viewport.
preserveAspectRatio(PreserveAspectRatio) - Method in class com.caverock.androidsvg.RenderOptions
Specifies how the renderer should handle aspect ratio when rendering the SVG.
PreserveAspectRatio.Alignment - Enum in com.caverock.androidsvg
Determines how the document is to me positioned relative to the viewport (normally the canvas).
PreserveAspectRatio.Scale - Enum in com.caverock.androidsvg
Determine whether the scaled document fills the viewport entirely or is scaled to fill the viewport without overflowing.

R

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
A fluent builder class that creates a render configuration object for the SVG.renderToCanvas(Canvas,RenderOptions) and SVG.renderToPicture(int,int,RenderOptions) methods.
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.

S

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
A sample implementation of SVGExternalFileResolver that retrieves files from an application's "assets" folder.
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.

T

target(String) - Method in class com.caverock.androidsvg.RenderOptions
Specifies the id of an element, in the SVG, to treat as the target element when using the :target CSS pseudo class.
TOP - 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.
toString() - Method in class com.caverock.androidsvg.PreserveAspectRatio
 

U

UNSCALED - Static variable in class com.caverock.androidsvg.PreserveAspectRatio
Draw document at its natural position and scale.

V

valueOf(String) - Static method in enum com.caverock.androidsvg.PreserveAspectRatio.Alignment
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.caverock.androidsvg.PreserveAspectRatio.Scale
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.caverock.androidsvg.PreserveAspectRatio.Alignment
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.caverock.androidsvg.PreserveAspectRatio.Scale
Returns an array containing the constants of this enum type, in the order they are declared.
view(String) - Method in class com.caverock.androidsvg.RenderOptions
Specifies the id of a <view> element in the SVG.
viewBox(float, float, float, float) - Method in class com.caverock.androidsvg.RenderOptions
Specifies alternative values to use for the root element viewBox.
viewPort(float, float, float, float) - Method in class com.caverock.androidsvg.RenderOptions
Describes the viewport into which the SVG should be rendered.
B C D E F G H I L O P R S T U V 
Skip navigation links