/** * Renderes an annotation value that is an IRI * * @param page The page that the value will be rendered into. * @param iri The IRI that is the annotation value. * @param defaultForeground The default foreground color. * @param defaultBackgound The default background color. * @param isSelected Whether or not the cell containing the annotation is selected. * @param hasFocus Whether or not the cell containing the annotation has the focus. * @return A list of paragraphs that represent the rendering of the annotation value. */ private List<Paragraph> renderIRI(Page page, IRI iri, Color defaultForeground, Color defaultBackgound, boolean isSelected, boolean hasFocus) { OWLModelManager modelManager = editorKit.getOWLModelManager(); Set<OWLEntity> entities = modelManager.getOWLEntityFinder().getEntities(iri); List<Paragraph> paragraphs; if (entities.isEmpty()) { paragraphs = renderExternalIRI(page, iri); } else { paragraphs = renderEntities(page, entities); } return paragraphs; }
/** * Renderes an annotation value that is an IRI * @param page The page that the value will be rendered into. * @param iri The IRI that is the annotation value. * @param defaultForeground The default foreground color. * @param defaultBackgound The default background color. * @param isSelected Whether or not the cell containing the annotation is selected. * @param hasFocus Whether or not the cell containing the annotation has the focus. * @return A list of paragraphs that represent the rendering of the annotation value. */ private List<Paragraph> renderIRI(Page page, IRI iri, Color defaultForeground, Color defaultBackgound, boolean isSelected, boolean hasFocus) { OWLModelManager modelManager = editorKit.getOWLModelManager(); Set<OWLEntity> entities = modelManager.getOWLEntityFinder().getEntities(iri); List<Paragraph> paragraphs; if (entities.isEmpty()) { paragraphs = renderExternalIRI(page, iri); } else { paragraphs = renderEntities(page, entities); } return paragraphs; }
/** * Renderes an annotation value that is an IRI * * @param page The page that the value will be rendered into. * @param iri The IRI that is the annotation value. * @param defaultForeground The default foreground color. * @param defaultBackgound The default background color. * @param isSelected Whether or not the cell containing the annotation is selected. * @param hasFocus Whether or not the cell containing the annotation has the focus. * @return A list of paragraphs that represent the rendering of the annotation value. */ private List<Paragraph> renderIRI(Page page, IRI iri, Color defaultForeground, Color defaultBackgound, boolean isSelected, boolean hasFocus) { OWLModelManager modelManager = editorKit.getOWLModelManager(); Set<OWLEntity> entities = modelManager.getOWLEntityFinder().getEntities(iri); List<Paragraph> paragraphs; if (entities.isEmpty()) { paragraphs = renderExternalIRI(page, iri); } else { paragraphs = renderEntities(page, entities); } return paragraphs; }
double y = Double.parseDouble(items[2]); Set<OWLEntity> entities = owlModelManager.getOWLEntityFinder().getEntities(IRI.create(uri)); if(entities != null && entities.size() > 0) { for(OWLEntity owlEntity : entities) {