Class UserAgentViewport

java.lang.Object
io.sf.carte.echosvg.bridge.UserAgentViewport
All Implemented Interfaces:
Viewport

public class UserAgentViewport extends Object implements Viewport
Defines a viewport for a UserAgent.
  • Constructor Details

    • UserAgentViewport

      public UserAgentViewport(UserAgent userAgent)
      Constructs a new viewport for the specified user agent.
      Parameters:
      userAgent - the user agent that defines 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