javauis/m2g_qt/javasrc/com/nokia/microedition/m2g/M2GSVGSVGElement.java
changeset 87 1627c337e51e
parent 56 abc41079b313
equal deleted inserted replaced
80:d6dafc5d983f 87:1627c337e51e
     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".
    25 public class M2GSVGSVGElement extends M2GSVGLocatableElement implements SVGSVGElement
    25 public class M2GSVGSVGElement extends M2GSVGLocatableElement implements SVGSVGElement
    26 {
    26 {
    27     //--------------------------------------------------
    27     //--------------------------------------------------
    28     // STATIC CONSTANTS
    28     // STATIC CONSTANTS
    29     //--------------------------------------------------
    29     //--------------------------------------------------
    30     /* Optimization: static finals changed to local variables
    30 
    31     public static final String INVALID_SVG_VERSION_ESTR =
       
    32       "Invalid version.";
       
    33     public static final String INVALID_SVG_BASE_PROFILE_ESTR =
       
    34       "Invalid base profile.";
       
    35     */
       
    36 
    31 
    37     //------------------------------------------------------------------
    32     //------------------------------------------------------------------
    38     // VARIABLES
    33     // VARIABLES
    39     //------------------------------------------------------------------
    34     //------------------------------------------------------------------
    40     // Exception text
    35     // Exception text
   248         {
   243         {
   249             iMatrix.getComponentsToArray(matrixComponents);
   244             iMatrix.getComponentsToArray(matrixComponents);
   250         }
   245         }
   251 
   246 
   252         M2GSVGElement._setMatrixTrait(
   247         M2GSVGElement._setMatrixTrait(
   253              getNativeSVGProxyHandle(), getHandle(),
   248             getNativeSVGProxyHandle(), getHandle(),
   254             M2GSVGConstants.AT_TRANSFORM, matrixComponents);
   249             M2GSVGConstants.AT_TRANSFORM, matrixComponents);
   255 
   250 
   256         // inform observer about changes in DOM
   251         // inform observer about changes in DOM
   257         iDocument.notifyDOMChangeObserver();
   252         iDocument.notifyDOMChangeObserver();
   258     }
   253     }
   396 
   391 
   397     //------------------------------------------------------------------
   392     //------------------------------------------------------------------
   398     // NATIVE METHODS
   393     // NATIVE METHODS
   399     //------------------------------------------------------------------
   394     //------------------------------------------------------------------
   400     protected native static float _getMediaTime(
   395     protected native static float _getMediaTime(
   401          int aSvgProxyHandle, int aDocumentHandle);
   396         int aSvgProxyHandle, int aDocumentHandle);
   402     private native static void _setMediaTime(
   397     private native static void _setMediaTime(
   403         int aSvgProxyHandle, int aDocumentHandle,
   398         int aSvgProxyHandle, int aDocumentHandle,
   404         float aSeconds );
   399         float aSeconds);
   405 }
   400 }
   406 
   401