public static final enum

PreserveAspectRatio.Alignment

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.caverock.androidsvg.PreserveAspectRatio.Alignment

Class Overview

Determines how the document is to me positioned relative to the viewport (normally the canvas).

For the value none, the document is stretched to fit the viewport dimensions. For all other values, the aspect ratio of the document is kept the same but the document is scaled to fit the viewport.

Summary

Enum Values
PreserveAspectRatio.Alignment  None  Document is stretched to fit both the width and height of the viewport. 
PreserveAspectRatio.Alignment  XMaxYMax  Document is positioned at the bottom right of the viewport. 
PreserveAspectRatio.Alignment  XMaxYMid  Document is positioned at the middle right of the viewport. 
PreserveAspectRatio.Alignment  XMaxYMin  Document is positioned at the top right of the viewport. 
PreserveAspectRatio.Alignment  XMidYMax  Document is positioned at the bottom centre of the viewport. 
PreserveAspectRatio.Alignment  XMidYMid  Document is centred in the viewport both vertically and horizontally. 
PreserveAspectRatio.Alignment  XMidYMin  Document is positioned at the centre top of the viewport. 
PreserveAspectRatio.Alignment  XMinYMax  Document is positioned at the bottom left of the viewport. 
PreserveAspectRatio.Alignment  XMinYMid  Document is positioned at the middle left of the viewport. 
PreserveAspectRatio.Alignment  XMinYMin  Document is positioned at the top left of the viewport. 
Public Methods
static PreserveAspectRatio.Alignment valueOf(String name)
final static Alignment[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final PreserveAspectRatio.Alignment None

Document is stretched to fit both the width and height of the viewport. When using this Alignment value, the value of Scale is not used and will be ignored.

public static final PreserveAspectRatio.Alignment XMaxYMax

Document is positioned at the bottom right of the viewport.

public static final PreserveAspectRatio.Alignment XMaxYMid

Document is positioned at the middle right of the viewport.

public static final PreserveAspectRatio.Alignment XMaxYMin

Document is positioned at the top right of the viewport.

public static final PreserveAspectRatio.Alignment XMidYMax

Document is positioned at the bottom centre of the viewport.

public static final PreserveAspectRatio.Alignment XMidYMid

Document is centred in the viewport both vertically and horizontally.

public static final PreserveAspectRatio.Alignment XMidYMin

Document is positioned at the centre top of the viewport.

public static final PreserveAspectRatio.Alignment XMinYMax

Document is positioned at the bottom left of the viewport.

public static final PreserveAspectRatio.Alignment XMinYMid

Document is positioned at the middle left of the viewport.

public static final PreserveAspectRatio.Alignment XMinYMin

Document is positioned at the top left of the viewport.

Public Methods

public static PreserveAspectRatio.Alignment valueOf (String name)

public static final Alignment[] values ()