org.apache.batik.bridge

Class UserAgentViewport

public class UserAgentViewport extends Object implements Viewport

Defines a viewport for a UserAgent.
Constructor Summary
UserAgentViewport(UserAgent userAgent)
Constructs a new viewport for the specified user agent.
Method Summary
floatgetHeight()
Returns the height of this viewport.
floatgetWidth()
Returns the width of this viewport.

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

getHeight

public float getHeight()
Returns the height of this viewport.

getWidth

public float getWidth()
Returns the width of this viewport.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.