本文整理汇总了Java中org.protege.editor.owl.OWLEditorKit类的典型用法代码示例。如果您正苦于以下问题:Java OWLEditorKit类的具体用法?Java OWLEditorKit怎么用?Java OWLEditorKit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OWLEditorKit类属于org.protege.editor.owl包,在下文中一共展示了OWLEditorKit类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: SuggestionsTable
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SuggestionsTable(OWLEditorKit editorKit){
super(new SuggestionsTableModel());
progressRenderer = new ProgressBarTableCellRenderer();
progressRenderer.setBackground(getBackground());
getColumn(0).setCellRenderer(progressRenderer);
OWLCellRenderer owlRenderer = new OWLCellRenderer(editorKit, false, false);
owlRenderer.setHighlightKeywords(true);
owlRenderer.setHighlightUnsatisfiableClasses(false);
owlRenderer.setHighlightUnsatisfiableProperties(false);
owlRenderer.setWrap(false);
getColumn(2).setCellRenderer(owlRenderer);
setColumnSizes();
Comparator<Integer> comparator = Integer::compareTo;
getColumnExt(0).setComparator(comparator);
}
开发者ID:SmartDataAnalytics,项目名称:DL-Learner-Protege-Plugin,代码行数:22,代码来源:SuggestionsTable.java
示例2: SKOSEntityCreationPanel
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SKOSEntityCreationPanel(OWLEditorKit owlEditorKit, String message, Class type) {
super(owlEditorKit, message, type);
this.owlEditorKit = owlEditorKit;
this.type = type;
this.conceptSchemeClass = owlEditorKit.getModelManager().getOWLDataFactory().getOWLClass(SKOSRDFVocabulary.CONCEPTSCHEME.getURI());
this.conceptClass = owlEditorKit.getModelManager().getOWLDataFactory().getOWLClass(SKOSRDFVocabulary.CONCEPT.getURI());
this.inScheme = owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.INSCHEME.getURI());
schemaBox = ConceptSchemeComboBox.getConceptSchemeComboBox(owlEditorKit);
if(!ConceptSchemeComboBox.getConceptSchemes(owlEditorKit).isEmpty()) {
JPanel schemeSelector = new JPanel(new BorderLayout(4,4));
JLabel jLabel = new JLabel("Choose a Concept Scheme for this Concept");
jLabel.setBorder(new EmptyBorder(2,10,2,2));
schemeSelector.add(jLabel, BorderLayout.NORTH);
schemeSelector.add(schemaBox, BorderLayout.CENTER);
add(schemeSelector);
}
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:22,代码来源:SKOSEntityCreationPanel.java
示例3: getConceptSchemeComboBox
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public static JComboBox getConceptSchemeComboBox(OWLEditorKit owlEditorKit) {
final Comparator<OWLIndividual> comp = owlEditorKit.getModelManager().getOWLObjectComparator();
List<OWLIndividual> sorted;
Collections.sort(sorted = new ArrayList<OWLIndividual>(getConceptSchemes(owlEditorKit)), new OWLObjectComparatorAdapter<OWLIndividual>(comp) {
public int compare(OWLIndividual o1, OWLIndividual o2) {
return super.compare(o1,o2);
}
});
JComboBox schemaBox = new JComboBox(sorted.toArray());
schemaBox.setRenderer(new OWLCellRendererSimple(owlEditorKit));
if(!getConceptSchemes(owlEditorKit).isEmpty()) {
schemaBox.setSelectedIndex(0);
}
return schemaBox;
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:22,代码来源:ConceptSchemeComboBox.java
示例4: SKOSObjectPropertyAssertionsFrame
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SKOSObjectPropertyAssertionsFrame(OWLEditorKit owlEditorKit) {
super(owlEditorKit.getModelManager().getOWLOntologyManager());
Set<OWLObjectProperty> filetrProps = new HashSet<OWLObjectProperty>(7);
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.RELATED.getURI()), "SKOS related assertion", con1 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.RELATED.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.INSCHEME.getURI()), "SKOS in scheme assertion", cons1 = new SKOSConceptSchemeSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.INSCHEME.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.TOPCONCEPTOF.getURI()), "SKOS top concept of assertion", cons2 = new SKOSConceptSchemeSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.TOPCONCEPTOF.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.BROADMATCH.getURI()), "SKOS broad match assertion", con2 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.BROADMATCH.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.NARROWMATCH.getURI()), "SKOS narrow match assertion", con3 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.NARROWMATCH.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.RELATEDMATCH.getURI()), "SKOS related match assertion", con4 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.RELATEDMATCH.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.EXACTMATCH.getURI()), "SKOS exact match assertion", con5 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.EXACTMATCH.getURI()));
addSection(new SKOSOtherObjectPropertyAssertionAxiomFrameSection(owlEditorKit, this, filetrProps));
// addSection(new OWLDataPropertyAssertionAxiomFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeObjectPropertyAssertionFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeDataPropertyAssertionFrameSection(owlEditorKit, this));
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:24,代码来源:SKOSObjectPropertyAssertionsFrame.java
示例5: SKOSDataPropertyAssertionsFrame
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SKOSDataPropertyAssertionsFrame(OWLEditorKit owlEditorKit) {
super(owlEditorKit.getModelManager().getOWLOntologyManager());
Set<OWLDataProperty> filterProps = new HashSet<OWLDataProperty>(7);
addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.PREFLABEL.getURI()), "SKOS preferred label"));
filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.PREFLABEL.getURI()));
addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.NOTATION .getURI()), "SKOS notation"));
filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.NOTATION.getURI()));
addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.ALTLABEL.getURI()), "SKOS alternate label"));
filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.ALTLABEL.getURI()));
addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.HIDDENLABEL.getURI()), "SKOS hidden label"));
filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.HIDDENLABEL.getURI()));
addSection(new SKOSOtherDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, filterProps));
// addSection(new OWLDataPropertyAssertionAxiomFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeObjectPropertyAssertionFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeDataPropertyAssertionFrameSection(owlEditorKit, this));
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:19,代码来源:SKOSDataPropertyAssertionsFrame.java
示例6: getConceptSchemeComboBox
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public static JComboBox getConceptSchemeComboBox(OWLEditorKit owlEditorKit) {
final Comparator<OWLObject> comp = owlEditorKit.getModelManager().getOWLObjectComparator();
List<OWLIndividual> sorted;
Collections.sort(sorted = new ArrayList<OWLIndividual>(getConceptSchemes(owlEditorKit)), new OWLObjectComparatorAdapter<OWLIndividual>(comp) {
public int compare(OWLIndividual o1, OWLIndividual o2) {
return super.compare(o1,o2);
}
});
JComboBox schemaBox = new JComboBox(sorted.toArray());
schemaBox.setRenderer(new OWLCellRendererSimple(owlEditorKit));
if(!getConceptSchemes(owlEditorKit).isEmpty()) {
schemaBox.setSelectedIndex(0);
}
return schemaBox;
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:22,代码来源:ConceptSchemeComboBox.java
示例7: SKOSObjectPropertyAssertionsFrame
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SKOSObjectPropertyAssertionsFrame(OWLEditorKit owlEditorKit) {
super(owlEditorKit.getModelManager().getOWLOntologyManager());
Set<OWLObjectProperty> filetrProps = new HashSet<OWLObjectProperty>(7);
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(
owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.RELATED.getIRI()), "SKOS related assertion", con1 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.RELATED.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.INSCHEME.getIRI()), "SKOS in scheme assertion", cons1 = new SKOSConceptSchemeSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.INSCHEME.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.TOPCONCEPTOF.getIRI()), "SKOS top concept of assertion", cons2 = new SKOSConceptSchemeSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.TOPCONCEPTOF.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.BROADMATCH.getIRI()), "SKOS broad match assertion", con2 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.BROADMATCH.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.NARROWMATCH.getIRI()), "SKOS narrow match assertion", con3 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.NARROWMATCH.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.RELATEDMATCH.getIRI()), "SKOS related match assertion", con4 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.RELATEDMATCH.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.EXACTMATCH.getIRI()), "SKOS exact match assertion", con5 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.EXACTMATCH.getIRI()));
addSection(new SKOSOtherObjectPropertyAssertionAxiomFrameSection(owlEditorKit, this, filetrProps));
// addSection(new OWLDataPropertyAssertionAxiomFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeObjectPropertyAssertionFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeDataPropertyAssertionFrameSection(owlEditorKit, this));
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:25,代码来源:SKOSObjectPropertyAssertionsFrame.java
示例8: SKOSDataPropertyAssertionsFrame
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SKOSDataPropertyAssertionsFrame(OWLEditorKit owlEditorKit) {
super(owlEditorKit.getModelManager().getOWLOntologyManager());
Set<OWLDataProperty> filterProps = new HashSet<OWLDataProperty>(7);
// addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.PREFLABEL.getIRI()), "SKOS preferred label"));
// filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.PREFLABEL.getIRI()));
addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.NOTATION .getIRI()), "SKOS notation"));
filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.NOTATION.getIRI()));
// addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.ALTLABEL.getIRI()), "SKOS alternate label"));
// filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.ALTLABEL.getIRI()));
// addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.HIDDENLABEL.getIRI()), "SKOS hidden label"));
// filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.HIDDENLABEL.getIRI()));
addSection(new SKOSOtherDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, filterProps));
// addSection(new OWLDataPropertyAssertionAxiomFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeObjectPropertyAssertionFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeDataPropertyAssertionFrameSection(owlEditorKit, this));
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:19,代码来源:SKOSDataPropertyAssertionsFrame.java
示例9: OOPSTreeCellRenderer
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public OOPSTreeCellRenderer(OWLEditorKit owlEditorKit, boolean renderExpression, boolean renderIcon) {
this.owlEditorKit = owlEditorKit;
this.renderExpression = renderExpression;
this.renderIcon = renderIcon;
this.equivalentObjects = new HashSet<>();
iconComponent.setOpaque(false);
textPane = new JTextPane();
textPane.setOpaque(false);
renderingComponent = new OWLCellRendererPanel(new OWLCellRendererLayoutManager());
renderingComponent.add(iconComponent);
renderingComponent.add(textPane);
entityColorProviders = new ArrayList<>();
OWLEntityColorProviderPluginLoader loader = new OWLEntityColorProviderPluginLoader(getOWLModelManager());
for (OWLEntityColorProviderPlugin plugin : loader.getPlugins()) {
try {
OWLEntityColorProvider prov = plugin.newInstance();
prov.initialise();
entityColorProviders.add(prov);
}
catch (Exception e) {
logger.error("An error occurred whilst trying to load an OWLEntityColorProviderPlugin", e);
}
}
crossedOutEntities = new HashSet<>();
unsatisfiableNames = new HashSet<>();
boxedNames = new HashSet<>();
prepareStyles();
setupFont();
}
开发者ID:lukasged,项目名称:oops-plugin,代码行数:34,代码来源:OOPSTreeCellRenderer.java
示例10: CheckBoxCellRenderer
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public CheckBoxCellRenderer(OWLEditorKit owlEditorKit) {
super();
this.setLayout(new BorderLayout());
checkBox = new JCheckBox();
add(checkBox, BorderLayout.CENTER);
setOpaque(false);
}
开发者ID:md-k-sarker,项目名称:OWLAx,代码行数:8,代码来源:JCheckBoxTree.java
示例11: OWLCellRenderer
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public OWLCellRenderer(OWLEditorKit owlEditorKit, boolean renderExpression, boolean renderIcon) {
this.owlEditorKit = owlEditorKit;
this.renderExpression = renderExpression;
this.renderIcon = renderIcon;
this.equivalentObjects = new HashSet<>();
iconLabel = new JLabel("");
iconLabel.setOpaque(false);
iconLabel.setVerticalAlignment(SwingConstants.CENTER);
textPane = new JTextPane();
textPane.setOpaque(false);
renderingComponent = new OWLCellRendererPanel(new OWLCellRendererLayoutManager());
renderingComponent.add(iconLabel);
renderingComponent.add(textPane);
entityColorProviders = new ArrayList<>();
OWLEntityColorProviderPluginLoader loader = new OWLEntityColorProviderPluginLoader(getOWLModelManager());
for (OWLEntityColorProviderPlugin plugin : loader.getPlugins()) {
try {
OWLEntityColorProvider prov = plugin.newInstance();
prov.initialise();
entityColorProviders.add(prov);
} catch (Exception e) {
logger.error("An error occurred whilst trying to load an OWLEntityColorProviderPlugin", e);
}
}
crossedOutEntities = new HashSet<>();
unsatisfiableNames = new HashSet<>();
boxedNames = new HashSet<>();
prepareStyles();
setupFont();
}
开发者ID:md-k-sarker,项目名称:OWLAx,代码行数:35,代码来源:OWLCellRenderer.java
示例12: GraphicalCoverageTextField
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public GraphicalCoverageTextField(EvaluatedDescription desc, OWLEditorKit editorKit) {
this.setContentType("text/html");
this.setEditable(false);
//textScroll = new JScrollPane(
// JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
// JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
this.setBackground(editorKit.getOWLWorkspace().getOWLComponentFactory().getOWLClassSelectorPanel().getBackground());
this.description = desc;
}
开发者ID:SmartDataAnalytics,项目名称:DL-Learner-Protege-Plugin,代码行数:10,代码来源:GraphicalCoverageTextField.java
示例13: DLLearnerView
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public DLLearnerView(OWLEditorKit editorKit, OWLEntity entity, AxiomType axiomType) {
this.editorKit = editorKit;
this.entity = entity;
this.axiomType = axiomType;
createUI();
}
开发者ID:SmartDataAnalytics,项目名称:DL-Learner-Protege-Plugin,代码行数:8,代码来源:DLLearnerView.java
示例14: MoreDetailForSuggestedConceptsPanel
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public MoreDetailForSuggestedConceptsPanel(OWLEditorKit editorKit) {
super();
setLayout(new GridLayout(1, 2));
setPreferredSize(new Dimension(WIDTH, HEIGHT));
graphicalPanel = new GraphicalCoveragePanel(eval);
graphicalText = new GraphicalCoverageTextField(eval, editorKit);
graphicalPanel.setBounds(5, 0, 300, 370);
add(graphicalPanel, BorderLayout.CENTER);
add(graphicalText.getTextScroll(), BorderLayout.EAST);
}
开发者ID:SmartDataAnalytics,项目名称:DL-Learner-Protege-Plugin,代码行数:11,代码来源:MoreDetailForSuggestedConceptsPanel.java
示例15: SuggestClassPanel
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SuggestClassPanel(OWLEditorKit editorKit) {
super();
this.setLayout(new BorderLayout());
// renders scroll bars if necessary
suggestScroll = new JScrollPane(
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
suggestionTable = new SuggestionsTable(editorKit);
suggestionTable.setVisibleRowCount(6);
suggestScroll.setViewportView(suggestionTable);
add(BorderLayout.CENTER, suggestScroll);
}
开发者ID:SmartDataAnalytics,项目名称:DL-Learner-Protege-Plugin,代码行数:13,代码来源:SuggestClassPanel.java
示例16: showDialog
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public static OWLIndividual showDialog(OWLEditorKit owlEditorKit) {
SKOSConceptSelectorPanel panel = new SKOSConceptSelectorPanel(owlEditorKit, true, owlEditorKit.getModelManager().getOntologies(), ListSelectionModel.SINGLE_SELECTION);
int ret = new UIHelper(owlEditorKit).showDialog("Create a new SKOS Concept", panel, panel.viewComponent);
if (ret == JOptionPane.OK_OPTION) {
OWLIndividual ind = panel.getSelectedObject();
panel.viewComponent.dispose();
return ind;
}
else {
panel.viewComponent.dispose();
return null;
}
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:16,代码来源:SKOSConceptSelectorPanel.java
示例17: showDialog
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public static OWLIndividual showDialog(OWLEditorKit owlEditorKit) {
SKOSConceptSchemeSelectorPanel panel = new SKOSConceptSchemeSelectorPanel(owlEditorKit, true, owlEditorKit.getModelManager().getOntologies(), ListSelectionModel.SINGLE_SELECTION);
int ret = new UIHelper(owlEditorKit).showDialog("Create a new SKOS Concept Scheme", panel, panel.viewComponent);
if (ret == JOptionPane.OK_OPTION) {
OWLIndividual ind = panel.getSelectedObject();
panel.viewComponent.dispose();
return ind;
}
else {
panel.viewComponent.dispose();
return null;
}
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:16,代码来源:SKOSConceptSchemeSelectorPanel.java
示例18: DataPropertyRendererPanel
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public DataPropertyRendererPanel(OWLEditorKit owlEditorKit) {
this.eKit = owlEditorKit;
setLayout(new BorderLayout());
toolbar = new JToolBar();
toolbar.setFloatable(false);
addToolbarAction(addAction);
addToolbarAction(removeAction);
toolbar.addSeparator(new Dimension(6, 6));
addToolbarAction(upAction);
addToolbarAction(downAction);
add(toolbar, BorderLayout.NORTH);
model = new DefaultTableModel(){
public boolean isCellEditable(int row, int col) {
return col > 0;
}
};
model.addTableModelListener(new TableModelListener(){
public void tableChanged(TableModelEvent tableModelEvent) {
dirty = true;
}
});
model.addColumn("SKOS Labels");
model.addColumn("Languages (comma separated in order of preference, ! for none)");
load();
table = new JTable(model);
table.setShowVerticalLines(false);
table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
table.getColumnModel().getColumn(0).setWidth(200);
final JScrollPane scroller = new JScrollPane(table);
add(scroller, BorderLayout.CENTER);
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:38,代码来源:DataPropertyRendererPanel.java
示例19: showDialog
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public static void showDialog(OWLEditorKit owlEditorKit) {
DataPropertyRendererPanel panel = new DataPropertyRendererPanel(owlEditorKit);
int ret = JOptionPaneEx.showConfirmDialog(owlEditorKit.getWorkspace(),
"Annotation Renderer",
panel,
JOptionPane.PLAIN_MESSAGE,
JOptionPane.OK_CANCEL_OPTION,
panel);
if(ret == JOptionPane.OK_OPTION) {
panel.applyChanges();
}
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:14,代码来源:DataPropertyRendererPanel.java
示例20: showDialog
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public static <T extends OWLEntity> OWLEntityCreationSet<T> showDialog(OWLEditorKit owlEditorKit, String message, Class<T> type) {
SKOSEntityCreationPanel panel = new SKOSEntityCreationPanel<T>(owlEditorKit, message, type);
int ret = new UIHelper(owlEditorKit).showValidatingDialog("Select a SKOS Concept", panel, panel.getFocusComponent());
if (ret == JOptionPane.OK_OPTION) {
return panel.getOWLEntityCreationSet();
}
else {
return null;
}
}
开发者ID:simonjupp,项目名称:skoseditor,代码行数:13,代码来源:SKOSEntityCreationPanel.java
注:本文中的org.protege.editor.owl.OWLEditorKit类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论