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". |
50 public void beginElementAt(float offset) |
50 public void beginElementAt(float offset) |
51 { |
51 { |
52 _beginElementAt( |
52 _beginElementAt( |
53 getNativeSVGProxyHandle(), |
53 getNativeSVGProxyHandle(), |
54 getDocument().getHandle(), getHandle(), offset, |
54 getDocument().getHandle(), getHandle(), offset, |
55 getDocument().getRootElement().getCurrentTime() ); |
55 getDocument().getRootElement().getCurrentTime()); |
56 } |
56 } |
57 |
57 |
58 /** |
58 /** |
59 * Same as the beginElementAt with offset 0.0f |
59 * Same as the beginElementAt with offset 0.0f |
60 * @see org.w3c.dom.svg.SVGAnimationElement#beginElementAt() |
60 * @see org.w3c.dom.svg.SVGAnimationElement#beginElementAt() |
69 */ |
69 */ |
70 public void endElementAt(float offset) |
70 public void endElementAt(float offset) |
71 { |
71 { |
72 short endAttribute = _getEnumTrait( |
72 short endAttribute = _getEnumTrait( |
73 getNativeSVGProxyHandle(), |
73 getNativeSVGProxyHandle(), |
74 getHandle(), M2GSVGConstants.AT_END ); |
74 getHandle(), M2GSVGConstants.AT_END); |
75 // NOTE Native SVG engine checks that element is active so |
75 // NOTE Native SVG engine checks that element is active so |
76 // java side doesn't have to do that |
76 // java side doesn't have to do that |
77 if (endAttribute == M2GSVGConstants.ANIM_INDEFINITE) |
77 if (endAttribute == M2GSVGConstants.ANIM_INDEFINITE) |
78 { |
78 { |
79 Logger.LOG(Logger.EJavaUI, Logger.EInfo, |
79 Logger.LOG(Logger.EJavaUI, Logger.EInfo, |
82 else |
82 else |
83 { |
83 { |
84 _endElementAt( |
84 _endElementAt( |
85 getNativeSVGProxyHandle(), |
85 getNativeSVGProxyHandle(), |
86 getDocument().getHandle(), getHandle(), |
86 getDocument().getHandle(), getHandle(), |
87 (offset + getDocument().getRootElement().getCurrentTime()) ); |
87 (offset + getDocument().getRootElement().getCurrentTime())); |
88 } |
88 } |
89 } |
89 } |
90 |
90 |
91 |
91 |
92 //-------------------------------------------------- |
92 //-------------------------------------------------- |