org.apache.batik.bridge
Class UserAgentViewport

java.lang.Object
  extended byorg.apache.batik.bridge.UserAgentViewport
All Implemented Interfaces:
Viewport

public class UserAgentViewport
extends java.lang.Object
implements Viewport

Defines a viewport for a UserAgent.

Version:
$Id: UserAgentViewport.java,v 1.4 2003/08/08 11:38:51 vhardy Exp $
Author:
Thierry Kormann

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


<oXygen/> XML Editor uses Batik from the Apache Foundation to provide support for previewing SVG documents. See the SVG Editor section for more info.