Structured Vector Graphics. Svg elements occupy fractions of the canvas which is assumed to have the approximate aspect ratio specified when creating the Svg. The elements then try to fit themselves into their fractional areas as best they can.
Returns | Method | Signature | Attributes | Description |
| Svg
| void
| public
| A default square Svg
|
| Svg
| float, float
| public
| Create an Svg with the specified aspect ratio.
|
float
| getWidth
| void
| public
| The width of the Svg
|
float
| getHeight
| void
| public
| The height of the Svg
|
float
| aspectRatio
| void
| public
| Aspect ratio
|
void
| push
| Element
| public
| Add an element to the stack of elements to be displayed
|
void
| onShow
| void
| public
| Called when this Svg is shown or reshown after some other Svg has been shown
|
void
| draw
| Canvas
| public
| Draw the Svg to cover an entire canvas
|
void
| draw
| Canvas, float, float, float, float
| private
| Draw the Svg on a canvas at a specified location
|
boolean
| chooseDoubleMode
| void
|
| Choose either a single or a double gradient
|
float
| chooseStartAngle
| void
|
| Choose a start angle between 0 and 180 degrees
|
PorterDuffXfermode
| choosePorterDuffMode
| void
|
| Choose Porter=Duff blending method
|
Rectangle
| Rectangle
| float, float, float, float
|
| Create and push a rectangle
|
Text
| Text
| String, float, float, float, float, int, int
| public
| Create and push a new text element
|