Class SVGSVGElementBridge.SVGSVGElementViewport

  • All Implemented Interfaces:
    Viewport
    Enclosing class:
    SVGSVGElementBridge

    public static class SVGSVGElementBridge.SVGSVGElementViewport
    extends java.lang.Object
    implements Viewport
    A viewport defined an <svg> element.
    • Constructor Summary

      Constructors 
      Constructor Description
      SVGSVGElementViewport​(float w, float h)
      Constructs a new viewport with the specified SVGSVGElement.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getHeight()
      Returns the height of this viewport.
      float getWidth()
      Returns the width of this viewport.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SVGSVGElementViewport

        public SVGSVGElementViewport​(float w,
                                     float h)
        Constructs a new viewport with the specified SVGSVGElement.
        Parameters:
        w - the width of the viewport
        h - the height of the viewport
    • Method Detail

      • getWidth

        public float getWidth()
        Returns the width of this viewport.
        Specified by:
        getWidth in interface Viewport
      • getHeight

        public float getHeight()
        Returns the height of this viewport.
        Specified by:
        getHeight in interface Viewport