//----------------------------BEGIN LICENSE----------------------------
/* 
 * Willow : the Open Source WorkFlow Project
 * Distributable under GNU LGPL license by gun.org
 *
 * Copyright (C) 2004-2010 huihoo.org 
 * Copyright (C) 2004-2010  ZosaTapo <dertyang@hotmail.com> 
 * 
 * ====================================================================
 * Project Homepage : http://www.huihoo.org/god4j
 * Source Forge     : http://sourceforge.net/projects/huihoo
 * Mailing list     : god4j@lists.sourceforge.net 
 */
//----------------------------END  LICENSE-----------------------------
package org.huihoo.god4j.jgraph.event;

import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;

import org.huihoo.god4j.jgraph.XPDLJGraph;

/**
 * @author reic
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class XPDLJGraphComponentListener implements ComponentListener
{
	XPDLJGraph adaptee = null;
	public XPDLJGraphComponentListener(XPDLJGraph argAdaptee)
	{
		adaptee = argAdaptee;
	}
	public void componentResized(ComponentEvent e)
	{
		Object obj = adaptee.getSelectionCell();
		adaptee.scrollCellToVisible(obj);
	}
	/**
	 * Invoked when the component's position changes.
	 */
	public void componentMoved(ComponentEvent e)
	{
	}
	/**
	 * Invoked when the component has been made visible.
	 */
	public void componentShown(ComponentEvent e)
	{
	}
	/**
	 * Invoked when the component has been made invisible.
	 */
	public void componentHidden(ComponentEvent e)
	{
	}
}