/* ========================
* JSynoptic : a free Synoptic editor
* ========================
*
* Project Info: http://jsynoptic.sourceforge.net/index.html
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*
* (C) Copyright 2001-2005, by :
* Corporate:
* EADS Astrium SAS
* EADS CRC
* Individual:
* Claude Cazenave
*
* $Id: PlotPropertiesDialogBox.java,v 1.3 2008/07/22 09:25:17 ogor Exp $
*
* Changes
* -------
* 22 ao�t 2006 : Initial public release (CC);
*
*/
package jsynoptic.builtin.ui;
import java.awt.Frame;
import java.awt.event.ActionListener;
import java.util.List;
import jsynoptic.builtin.Plot;
import jsynoptic.ui.JSynoptic;
import simtools.shapes.AbstractShape;
import simtools.shapes.ui.AbstractShapePropertiesDialogBox;
import simtools.ui.JPropertiesPanel;
public class PlotPropertiesDialogBox extends AbstractShapePropertiesDialogBox implements ActionListener{
public PlotPropertiesDialogBox(Frame parent, JPropertiesPanel content, String title, List shapes) {
super(parent, content, title, shapes, JSynoptic.gui.getActiveComponent());
}
/* (non-Javadoc)
* @see simtools.shapes.ui.AbstractShapePropertiesDialogBox#setShapesProperties()
*/
protected void setShapesProperties(){
super.setShapesProperties();
// Repaint plots
for(int i=0;i<shapes.size(); i++){
AbstractShape shape = (AbstractShape)shapes.get(i);
if (shape instanceof Plot){
((Plot)shape).repaintDiagram(((Plot)shape).getBounds());
}
}
}
}