java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | com.caverock.androidsvg.PreserveAspectRatio.Alignment |
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.
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
|
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.
Document is positioned at the bottom right of the viewport.
Document is positioned at the middle right of the viewport.
Document is positioned at the top right of the viewport.
Document is positioned at the bottom centre of the viewport.
Document is centred in the viewport both vertically and horizontally.
Document is positioned at the centre top of the viewport.
Document is positioned at the bottom left of the viewport.
Document is positioned at the middle left of the viewport.
Document is positioned at the top left of the viewport.