📄 conceptpartition.java
字号:
package toocom.ocgl;
import java.util.*;
import java.awt.Graphics;
/**
* This class represents the partition of a concept, that is its abstraction and
* the disjunction between all its children.
*
* @author Fr閐閞ic F黵st
*/
public class ConceptPartition extends AxiomSchemaOne{
public ConceptPartition(ConceptType c){
super(CGConstants.getConceptPartitionTerms(),c);
}
/** A primitive can be a partition if it is a concept. */
public boolean isValid(){
return (super.cp instanceof ConceptType);
}
public Axiom getAxiomForm(){
return null;
}
public LinkedList getOperationalForm(Ontology onto,Language l){
return new LinkedList();
}
public void paint(Graphics g,Language l){
g.setColor(CGConstants.PARTITION_COLOR);
g.drawString("P",super.cp.x - (CGConstants.PROPERTY_SYMBOLS_SPACING * 3),super.cp.y - (CGConstants.PROPERTY_SYMBOLS_SPACING * 4));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -