Class SVGGraphicContext

    • Field Detail

      • leafOnlyAttributes

        private static final java.lang.String[] leafOnlyAttributes
      • defaultValues

        private static final java.lang.String[] defaultValues
      • context

        private java.util.Map context
      • groupContext

        private java.util.Map groupContext
      • graphicElementContext

        private java.util.Map graphicElementContext
    • Constructor Detail

      • SVGGraphicContext

        public SVGGraphicContext​(java.util.Map context,
                                 TransformStackElement[] transformStack)
        Parameters:
        context - Set of style attributes in this context.
        transformStack - Sequence of transforms that where applied to create the context's current transform.
      • SVGGraphicContext

        public SVGGraphicContext​(java.util.Map groupContext,
                                 java.util.Map graphicElementContext,
                                 TransformStackElement[] transformStack)
        Parameters:
        groupContext - Set of attributes that apply to group
        graphicElementContext - Set of attributes that apply to elements but not to groups (e.g., opacity, filter).
        transformStack - Sequence of transforms that where applied to create the context's current transform.
    • Method Detail

      • getContext

        public java.util.Map getContext()
        Returns:
        set of all attributes.
      • getGroupContext

        public java.util.Map getGroupContext()
        Returns:
        set of attributes that can be set on a group
      • getGraphicElementContext

        public java.util.Map getGraphicElementContext()
        Returns:
        set of attributes that can be set on leaf node
      • getTransformStack

        public TransformStackElement[] getTransformStack()
        Returns:
        set of TransformStackElement for this context
      • computeContext

        private void computeContext()
      • computeGroupAndGraphicElementContext

        private void computeGroupAndGraphicElementContext()