Class UserAgentViewport

  • All Implemented Interfaces:
    Viewport

    public class UserAgentViewport
    extends java.lang.Object
    implements Viewport
    Defines a viewport for a UserAgent.
    Version:
    $Id: UserAgentViewport.java 1733416 2016-03-03 07:07:13Z gadams $
    • Constructor Summary

      Constructors 
      Constructor Description
      UserAgentViewport​(UserAgent userAgent)
      Constructs a new viewport for the specified user agent.
    • 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

      • UserAgentViewport

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