Class MultiResGraphicsNode

    • Field Detail

      • srcs

        java.lang.ref.SoftReference[] srcs
      • srcElems

        org.w3c.dom.Element[] srcElems
      • minSz

        java.awt.Dimension[] minSz
      • maxSz

        java.awt.Dimension[] maxSz
      • bounds

        java.awt.geom.Rectangle2D bounds
      • multiImgElem

        org.w3c.dom.Element multiImgElem
    • Constructor Detail

      • MultiResGraphicsNode

        public MultiResGraphicsNode​(org.w3c.dom.Element multiImgElem,
                                    java.awt.geom.Rectangle2D bounds,
                                    org.w3c.dom.Element[] srcElems,
                                    java.awt.Dimension[] minSz,
                                    java.awt.Dimension[] maxSz,
                                    BridgeContext ctx)
    • Method Detail

      • primitivePaint

        public void primitivePaint​(java.awt.Graphics2D g2d)
        Paints this node without applying Filter, Mask, Composite, and clip.
        Specified by:
        primitivePaint in interface GraphicsNode
        Parameters:
        g2d - the Graphics2D to use
      • calcDist

        public double calcDist​(double loc,
                               java.awt.Dimension min,
                               java.awt.Dimension max)
      • getPrimitiveBounds

        public java.awt.geom.Rectangle2D getPrimitiveBounds()
        Returns the bounds of the area covered by this node's primitive paint.
        Specified by:
        getPrimitiveBounds in interface GraphicsNode
      • getGeometryBounds

        public java.awt.geom.Rectangle2D getGeometryBounds()
        Description copied from interface: GraphicsNode
        Returns the bounds of the area covered by this node, without taking any of its rendering attribute into account. That is, exclusive of any clipping, masking, filtering or stroking, for example.
        Specified by:
        getGeometryBounds in interface GraphicsNode
      • getSensitiveBounds

        public java.awt.geom.Rectangle2D getSensitiveBounds()
        Description copied from interface: GraphicsNode
        Returns the bounds of the sensitive area covered by this node, This includes the stroked area but does not include the effects of clipping, masking or filtering.
        Specified by:
        getSensitiveBounds in interface GraphicsNode
      • getOutline

        public java.awt.Shape getOutline()
        Returns the outline of this node.
        Specified by:
        getOutline in interface GraphicsNode
      • getGraphicsNode

        public GraphicsNode getGraphicsNode​(int idx)