equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
42 */ |
42 */ |
43 public SVGRect getBBox() |
43 public SVGRect getBBox() |
44 { |
44 { |
45 M2GSVGRect bbox = new M2GSVGRect(); |
45 M2GSVGRect bbox = new M2GSVGRect(); |
46 M2GSVGElement._getBBox(getNativeSVGProxyHandle(), getHandle(), |
46 M2GSVGElement._getBBox(getNativeSVGProxyHandle(), getHandle(), |
47 M2GSVGConstants.AT_BBOX, bbox.getComponents()); |
47 M2GSVGConstants.AT_BBOX, bbox.getComponents()); |
48 // Checks element's type |
48 // Checks element's type |
49 if ((iElementTypeId == M2GSVGConstants.EL_G) || |
49 if ((iElementTypeId == M2GSVGConstants.EL_G) || |
50 (iElementTypeId == M2GSVGConstants.EL_PATH) || |
50 (iElementTypeId == M2GSVGConstants.EL_PATH) || |
51 (iElementTypeId == M2GSVGConstants.EL_SVG)) |
51 (iElementTypeId == M2GSVGConstants.EL_SVG)) |
52 { |
52 { |