org.formaria.svg
Class ViewBoxModifier

java.lang.Object
  extended by org.formaria.svg.ViewBoxModifier

public class ViewBoxModifier
extends java.lang.Object

Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.

$Revision: 1.2 $


Field Summary
protected  SvgImageMap imageMap
           
protected  PointSystem pointSystem
           
 
Constructor Summary
ViewBoxModifier(SvgImageMap imageMap)
          Creates a new instance of ViewBoxPosition
 
Method Summary
 void setPosition(double x, double y)
          Sets the viewboxs centre position on the map.
 void setSize(double w, double h)
          Sets the size of the view box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageMap

protected SvgImageMap imageMap

pointSystem

protected PointSystem pointSystem
Constructor Detail

ViewBoxModifier

public ViewBoxModifier(SvgImageMap imageMap)
Creates a new instance of ViewBoxPosition

Parameters:
imageMap - the SvgImageMap instance used by this class.
Method Detail

setPosition

public void setPosition(double x,
                        double y)
Sets the viewboxs centre position on the map.

Parameters:
x - double specifying the x coordinate of the view box's centre position.
y - double specifying the y coordinate of the view box's centre position.

setSize

public void setSize(double w,
                    double h)
Sets the size of the view box.

Parameters:
w - double specifying the new width of the viewBox.
h - double specifying the new width of the viewBox.