除了elementModel外,还有两个父类。
1.与label的显示有关的类吧。
public interface IShowHideLabel {
public void setLabelShow(Object sel, boolean show);
public boolean isLabelShow(Object sel);
public boolean hasShowHideLabel(Object sel);
}
2.与连接有关的类
public interface IConnectMessage {
public boolean canConnect(PortInstanceModel port);
public void connectToPort(PortInstanceModel port); 不需要定义connectFromPort么?
public PortInstanceModel getPort();
public boolean isResizableMessage(); 做什么的?
}
3.connectionElementModel
public abstract class ConnectionElementModel extends ElementModel
implements IShowHideLabel,IConnectMessage{
public ConnectionElementModel(String label, String modelID, Dimension size) {
super(label, modelID,size);
// TODO Auto-generated constructor stub
directionShow = false;
valueShow = false;
senderShow = false;
paramShow = false;
typeOrProcShow = false;
templateShow =false;
}
6.5 connectionElementModel
时间: 2024-10-26 15:43:02