4
import java.awt.geom.*;
7
* This class has been automatically generated using <a
8
* href="https://flamingo.dev.java.net">Flamingo SVG transcoder</a>.
10
public class TOKEN_CLASSNAME {
12
* Paints the transcoded SVG image on the specified graphics context. You
13
* can install a custom transformation on the graphics context to scale the
19
public static void paint(Graphics2D g) {
24
float origAlpha = 1.0f;
25
Composite origComposite = ((Graphics2D)g).getComposite();
26
if (origComposite instanceof AlphaComposite) {
27
AlphaComposite origAlphaComposite =
28
(AlphaComposite)origComposite;
29
if (origAlphaComposite.getRule() == AlphaComposite.SRC_OVER) {
30
origAlpha = origAlphaComposite.getAlpha();
38
* Returns the X of the bounding box of the original SVG image.
40
* @return The X of the bounding box of the original SVG image.
42
public static int getOrigX() {
47
* Returns the Y of the bounding box of the original SVG image.
49
* @return The Y of the bounding box of the original SVG image.
51
public static int getOrigY() {
56
* Returns the width of the bounding box of the original SVG image.
58
* @return The width of the bounding box of the original SVG image.
60
public static int getOrigWidth() {
61
return TOKEN_ORIG_WIDTH;
65
* Returns the height of the bounding box of the original SVG image.
67
* @return The height of the bounding box of the original SVG image.
69
public static int getOrigHeight() {
70
return TOKEN_ORIG_HEIGHT;