📄 jmodelclassdefinition.java
字号:
/**
* Copyright (C) 2006, Laboratorio di Valutazione delle Prestazioni - Politecnico di Milano
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 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 General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
package jmt.gui.jmodel.definitions;
import jmt.gui.common.definitions.ClassDefinition;
import java.awt.*;
/**
* <p>Title: Jmodel Class Definition Interface</p>
* <p>Description: This interface provides methods for editing classes for JMODEL models.
* It actually extends JSIM ClassDefinition interface to provide a compatibility layer</p>
*
* @author Bertoli Marco
* Date: 14-giu-2005
* Time: 9.44.32
*/
public interface JmodelClassDefinition extends ClassDefinition {
/**Code for class color search*/
public int CLASS_COLOR = 5;
public int REFERENCE_SOURCE_NAME = 6;
/**
* Creates a new Class with default parameters and default generated name
* @return search key for newly created class
*/
public Object addClass();
/**
* Sets the color of a class
* @param key search key for class
* @param color Color that should be associated with given class
*/
public void setClassColor(Object key, Color color);
/**
* Returns a class color
* @param key search key for class
* @return Color associated with given class, or null if class does not exist
*/
public Color getClassColor(Object key);
/**
* Returns a serialized object for a given class, used to support cut/paste,
* undo/redo operations
* @param classKey Search's key for station
* @return Serialized class object
*/
public Object serializeClass(Object classKey);
/**
* Deserializes given class
* @param serializedForm class's Serialized form got from <code>serializeClass</code>
* method.
* @return search's key for inserted class
*/
public Object deserializeClass(Object serializedForm);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -