org.formaria.svg
Class ViewBoxListener

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

public class ViewBoxListener
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  java.util.ArrayList components
           
protected  SvgImageMap imageMap
           
protected  PointSystem pointSystem
           
 
Constructor Summary
ViewBoxListener(SvgImageMap imageMap)
          Creates a new instance of ViewBoxListener.
 
Method Summary
 void registerComponent(java.awt.Component component)
          Register a component to be updated if the viewBox is modified.
 void removeComponent(java.awt.Component component)
          Remove a component from the list of registered components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

components

protected java.util.ArrayList components

imageMap

protected final SvgImageMap imageMap

pointSystem

protected PointSystem pointSystem
Constructor Detail

ViewBoxListener

public ViewBoxListener(SvgImageMap imageMap)
Creates a new instance of ViewBoxListener.

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

registerComponent

public void registerComponent(java.awt.Component component)
Register a component to be updated if the viewBox is modified.

Parameters:
component - the added Component

removeComponent

public void removeComponent(java.awt.Component component)
Remove a component from the list of registered components.

Parameters:
component - the removed Component