public OWLAnnotationCellRenderer(OWLEditorKit owlEditorKit) { this.owlEditorKit = owlEditorKit; setLayout(new BorderLayout()); setBorder(BorderFactory.createEmptyBorder(1, 2, 1, 2)); annotationURILabel = new JLabel(); annotationURILabel.setForeground(LABEL_COLOR); normalFont = annotationURILabel.getFont(); activeOntologyFont = normalFont.deriveFont(Font.BOLD); annotationContentArea = new JTextArea(); annotationContentArea.setFont(new Font("Dialog", Font.PLAIN, 12)); annotationContentArea.setLineWrap(true); annotationContentArea.setWrapStyleWord(true); annotationContentArea.setOpaque(false); iconLabel = new JLabel(); iconLabel.setIcon(OWLIcons.getIcon("individual.png")); JPanel contentPanel = new JPanel(new BorderLayout(3, 3)); contentPanel.setBorder(BorderFactory.createEmptyBorder(2, 20, 2, 2)); contentPanel.setOpaque(false); contentPanel.add(annotationContentArea, BorderLayout.CENTER); contentPanel.add(iconLabel, BorderLayout.WEST); add(annotationURILabel, BorderLayout.NORTH); add(contentPanel, BorderLayout.SOUTH); }
public OWLAnnotationCellRenderer(OWLEditorKit owlEditorKit) { this.owlEditorKit = owlEditorKit; setLayout(new BorderLayout()); setBorder(BorderFactory.createEmptyBorder(1, 2, 1, 2)); annotationURILabel = new JLabel(); annotationURILabel.setForeground(LABEL_COLOR); normalFont = annotationURILabel.getFont(); activeOntologyFont = normalFont.deriveFont(Font.BOLD); annotationContentArea = new JTextArea(); annotationContentArea.setFont(new Font("Dialog", Font.PLAIN, 12)); annotationContentArea.setLineWrap(true); annotationContentArea.setWrapStyleWord(true); annotationContentArea.setOpaque(false); iconLabel = new JLabel(); iconLabel.setIcon(OWLIcons.getIcon("individual.png")); JPanel contentPanel = new JPanel(new BorderLayout(3, 3)); contentPanel.setBorder(BorderFactory.createEmptyBorder(2, 20, 2, 2)); contentPanel.setOpaque(false); contentPanel.add(annotationContentArea, BorderLayout.CENTER); contentPanel.add(iconLabel, BorderLayout.WEST); add(annotationURILabel, BorderLayout.NORTH); add(contentPanel, BorderLayout.SOUTH); }
public OWLAnnotationCellRenderer(OWLEditorKit owlEditorKit) { this.owlEditorKit = owlEditorKit; setLayout(new BorderLayout()); setBorder(BorderFactory.createEmptyBorder(1, 2, 1, 2)); annotationURILabel = new JLabel(); annotationURILabel.setForeground(LABEL_COLOR); normalFont = annotationURILabel.getFont(); activeOntologyFont = normalFont.deriveFont(Font.BOLD); annotationContentArea = new JTextArea(); annotationContentArea.setFont(new Font("Dialog", Font.PLAIN, 12)); annotationContentArea.setLineWrap(true); annotationContentArea.setWrapStyleWord(true); annotationContentArea.setOpaque(false); iconLabel = new JLabel(); iconLabel.setIcon(OWLIcons.getIcon("individual.png")); JPanel contentPanel = new JPanel(new BorderLayout(3, 3)); contentPanel.setBorder(BorderFactory.createEmptyBorder(2, 20, 2, 2)); contentPanel.setOpaque(false); contentPanel.add(annotationContentArea, BorderLayout.CENTER); contentPanel.add(iconLabel, BorderLayout.WEST); add(annotationURILabel, BorderLayout.NORTH); add(contentPanel, BorderLayout.SOUTH); }
public OWLAnnotationCellRenderer(OWLEditorKit owlEditorKit) { this.owlEditorKit = owlEditorKit; setLayout(new BorderLayout()); setBorder(BorderFactory.createEmptyBorder(1, 2, 1, 2)); annotationURILabel = new JLabel(); annotationURILabel.setForeground(LABEL_COLOR); normalFont = annotationURILabel.getFont(); activeOntologyFont = normalFont.deriveFont(Font.BOLD); annotationContentArea = new JTextArea(); annotationContentArea.setFont(new Font("Dialog", Font.PLAIN, 12)); annotationContentArea.setLineWrap(true); annotationContentArea.setWrapStyleWord(true); annotationContentArea.setOpaque(false); iconLabel = new JLabel(); iconLabel.setIcon(OWLIcons.getIcon("individual.png")); JPanel contentPanel = new JPanel(new BorderLayout(3, 3)); contentPanel.setBorder(BorderFactory.createEmptyBorder(2, 20, 2, 2)); contentPanel.setOpaque(false); contentPanel.add(annotationContentArea, BorderLayout.CENTER); contentPanel.add(iconLabel, BorderLayout.WEST); add(annotationURILabel, BorderLayout.NORTH); add(contentPanel, BorderLayout.SOUTH); }