Class SVGSVGElementBridge.SVGSVGElementViewport

java.lang.Object
io.sf.carte.echosvg.bridge.SVGSVGElementBridge.SVGSVGElementViewport
All Implemented Interfaces:
Viewport
Enclosing class:
SVGSVGElementBridge

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

    • 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 Details

    • 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