<commit_before>
/*
 *  Copyright (C) 2004  The Concord Consortium, Inc.,
 *  10 Concord Crossing, Concord, MA 01741
 *
 *  Web Site: http://www.concord.org
 *  Email: <EMAIL>
 *
 *  This library 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 library 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 library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

/*
 * Last modification information:
 * $Revision: 1.2 $
 * $Date: 2005-03-15 03:23:15 $
 * $Author: maven $
 *
 * Licence Information
 * Copyright 2004 The Concord Consortium 
*/
package org.concord.datagraph.ui;

import java.awt.event.ActionEvent;

import javax.swing.Action;
import javax.swing.Icon;

import org.concord.data.stream.PointsDataStore;
import org.concord.datagraph.engine.ControllableDataGraphable;
import org.concord.framework.data.stream.DataStore;
import org.concord.graph.engine.GraphableList;
import org.concord.graph.util.ui.ResourceLoader;
import org.concord.swing.SelectableAction;


/**
 * DrawDataGraphableAction
 * Class name and description
 *
 * Date created: Mar 14, 2005
 *
 * @author imoncada<p>
 *
 */
public class DrawDataGraphableAction extends SelectableAction
{
	protected ControllableDataGraphable dataGraphable;
	protected GraphableList objList;
	
	/**
	 * 
	 */
	public DrawDataGraphableAction()
	{
		super();
		setName("Draw");
	}

	/**
	 * Sets the name of the icon
	 * (Equivalent to the Action.NAME property)
	 * @param name
	 */
	public void setName(String name)
	{
		putValue(Action.NAME, name);
	}

	/**
	 * Sets the icon of the action given the url
	 */
	public void setIcon(String strURL)
	{
		setIcon(ResourceLoader.getImageIcon(strURL, ""));
	}

	/**
	 * Sets the icon of the action<commit_msg>Added pencil icon to the toolbar. Moved background image.<commit_after>
/*
 *  Copyright (C) 2004  The Concord Consortium, Inc.,
 *  10 Concord Crossing, Concord, MA 01741
 *
 *  Web Site: http://www.concord.org
 *  Email: <EMAIL>
 *
 *  This library 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 library 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 library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

/*
 * Last modification information:
 * $Revision: 1.3 $
 * $Date: 2005-03-15 05:45:54 $
 * $Author: imoncada $
 *
 * Licence Information
 * Copyright 2004 The Concord Consortium 
*/
package org.concord.datagraph.ui;

import java.awt.event.ActionEvent;

import javax.swing.Action;
import javax.swing.Icon;

import org.concord.data.stream.PointsDataStore;
import org.concord.datagraph.engine.ControllableDataGraphable;
import org.concord.framework.data.stream.DataStore;
import org.concord.graph.engine.GraphableList;
import org.concord.graph.util.ui.ResourceLoader;
import org.concord.swing.SelectableAction;


/**
 * DrawDataGraphableAction
 * Class name and description
 *
 * Date created: Mar 14, 2005
 *
 * @author imoncada<p>
 *
 */
public class DrawDataGraphableAction extends SelectableAction
{
	protected ControllableDataGraphable dataGraphable;
	protected GraphableList objList;
	
	/**
	 * 
	 */
	public DrawDataGraphableAction()
	{
		super();
		//setName("Draw");
		setIcon("pencil.gif");
	}

	/**
	 * Sets the name of the icon
	 * (Equivalent to the Action.NAME property)
	 * @param name
	 */
	public void setName(String name)
	{
		putValue(Action.NAME, name);
	}

	/**
	 * Sets the icon of the action given the url
	 */
	public void setIcon(String strURL)
	{
		setIcon(ResourceLoader.getImageIcon(strURL, ""));
	}

	/**
	 * Sets the icon of the action
{'fraction_non_alphanumeric': 0.0958963282937365, 'fraction_numerical': 0.022894168466522678, 'mean_word_length': 3.779153766769866, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4737539', 'n_tokens_mistral': 1519, 'n_tokens_neox': 1383, 'n_words': 484}