Class AbstractSVGTransformList

    • Field Detail

      • SVG_TRANSFORMATION_LIST_SEPARATOR

        public static final java.lang.String SVG_TRANSFORMATION_LIST_SEPARATOR
        Separator for a point list.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractSVGTransformList

        public AbstractSVGTransformList()
    • Method Detail

      • getItemSeparator

        protected java.lang.String getItemSeparator()
        Return the separator between transform in the list.
        Specified by:
        getItemSeparator in class AbstractSVGList
      • createSVGException

        protected abstract org.w3c.dom.svg.SVGException createSVGException​(short type,
                                                                           java.lang.String key,
                                                                           java.lang.Object[] args)
        Create an SVGException when the checkItemType fails.
        Returns:
        SVGException
      • initialize

        public org.w3c.dom.svg.SVGTransform initialize​(org.w3c.dom.svg.SVGTransform newItem)
                                                throws org.w3c.dom.DOMException,
                                                       org.w3c.dom.svg.SVGException
        DOM: Implements SVGTransformList.initialize(SVGTransform).
        Specified by:
        initialize in interface org.w3c.dom.svg.SVGTransformList
        Throws:
        org.w3c.dom.DOMException
        org.w3c.dom.svg.SVGException
      • getItem

        public org.w3c.dom.svg.SVGTransform getItem​(int index)
                                             throws org.w3c.dom.DOMException
        DOM: Implements SVGTransformList.getItem(int).
        Specified by:
        getItem in interface org.w3c.dom.svg.SVGTransformList
        Throws:
        org.w3c.dom.DOMException
      • insertItemBefore

        public org.w3c.dom.svg.SVGTransform insertItemBefore​(org.w3c.dom.svg.SVGTransform newItem,
                                                             int index)
                                                      throws org.w3c.dom.DOMException,
                                                             org.w3c.dom.svg.SVGException
        DOM: Implements SVGTransformList.insertItemBefore(SVGTransform,int).
        Specified by:
        insertItemBefore in interface org.w3c.dom.svg.SVGTransformList
        Throws:
        org.w3c.dom.DOMException
        org.w3c.dom.svg.SVGException
      • replaceItem

        public org.w3c.dom.svg.SVGTransform replaceItem​(org.w3c.dom.svg.SVGTransform newItem,
                                                        int index)
                                                 throws org.w3c.dom.DOMException,
                                                        org.w3c.dom.svg.SVGException
        DOM: Implements SVGTransformList.replaceItem(SVGTransform,int).
        Specified by:
        replaceItem in interface org.w3c.dom.svg.SVGTransformList
        Throws:
        org.w3c.dom.DOMException
        org.w3c.dom.svg.SVGException
      • removeItem

        public org.w3c.dom.svg.SVGTransform removeItem​(int index)
                                                throws org.w3c.dom.DOMException
        DOM: Implements SVGTransformList.removeItem(int).
        Specified by:
        removeItem in interface org.w3c.dom.svg.SVGTransformList
        Throws:
        org.w3c.dom.DOMException
      • appendItem

        public org.w3c.dom.svg.SVGTransform appendItem​(org.w3c.dom.svg.SVGTransform newItem)
                                                throws org.w3c.dom.DOMException,
                                                       org.w3c.dom.svg.SVGException
        DOM: Implements SVGTransformList.appendItem(SVGTransform).
        Specified by:
        appendItem in interface org.w3c.dom.svg.SVGTransformList
        Throws:
        org.w3c.dom.DOMException
        org.w3c.dom.svg.SVGException
      • createSVGTransformFromMatrix

        public org.w3c.dom.svg.SVGTransform createSVGTransformFromMatrix​(org.w3c.dom.svg.SVGMatrix matrix)
        DOM: Implements SVGTransformList.createSVGTransformFromMatrix(SVGMatrix).
        Specified by:
        createSVGTransformFromMatrix in interface org.w3c.dom.svg.SVGTransformList
      • consolidate

        public org.w3c.dom.svg.SVGTransform consolidate()
        DOM: Implements SVGTransformList.consolidate().
        Specified by:
        consolidate in interface org.w3c.dom.svg.SVGTransformList
      • getAffineTransform

        public java.awt.geom.AffineTransform getAffineTransform()
        Returns an AffineTransform that represents the same transform as that specified by this transform list.
      • createSVGItem

        protected SVGItem createSVGItem​(java.lang.Object newItem)
        Creates a new SVGItem object from the given SVGTransform.
        Specified by:
        createSVGItem in class AbstractSVGList
        Parameters:
        newItem - the SVG object
        Returns:
        the newly created SVGItem object
      • doParse

        protected void doParse​(java.lang.String value,
                               ListHandler handler)
                        throws ParseException
        Parse the attribute associated with this SVGTransformList.
        Specified by:
        doParse in class AbstractSVGList
        Parameters:
        value - the transform list attribute value
        handler - transform list handler
        Throws:
        ParseException
      • checkItemType

        protected void checkItemType​(java.lang.Object newItem)
        Asserts that the given item is an SVGTransformList.
        Specified by:
        checkItemType in class AbstractSVGList