GrammarScope  4.0.0
Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
grammarscope.browser.dialog.ReportDialog Class Reference
Inheritance diagram for grammarscope.browser.dialog.ReportDialog:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.browser.dialog.ReportDialog:
Collaboration graph
[legend]

Public Member Functions

 ReportDialog (final Frame owner)
 
void addSentenceReports (final String[] tabTitles, final String[] tabIcons, final String... strs)
 
void addReports (final int ith, final String[] tabTitles, final String[] tabIcons, final String... strs)
 
void addMultipleReports (final String[] tabTitles, final String[] tabIcons, final String... strs)
 
void addMultipleReports (final String... strs)
 
void addReport (final String str, final String tab, final String tabImage)
 
void setVisible (final boolean show)
 

Static Public Attributes

static final String[] textTabTitles = { "Text", "Coreference" }
 
static final String[] textTabIcons = { "images/document-small.png" }
 
static final String[] sentenceTabTitles
 
static final String[] sentenceTabIcons
 

Private Member Functions

void initialize ()
 
void addTab (final String text, final JTextComponent textComponent, final String tabTitle, final String tabIcon)
 

Static Private Member Functions

static JTextComponent makeTextComponent (@SuppressWarnings("SameParameterValue") final Font font)
 
static JTextComponent makeTextArea (final Font font)
 
static JTextComponent makeTextPane (final Font font)
 

Private Attributes

final JTabbedPane tabbedPane
 

Static Private Attributes

static final long serialVersionUID = 1L
 
static final Font monoFont = new Font(Font.MONOSPACED, Font.PLAIN, 11)
 
static final Font textFont = new Font(Font.SANS_SERIF, Font.PLAIN, 12)
 
static final boolean isStyled = false
 

Constructor & Destructor Documentation

◆ ReportDialog()

grammarscope.browser.dialog.ReportDialog.ReportDialog ( final Frame  owner)

Constructor

Parameters
ownerowner frame

Member Function Documentation

◆ addMultipleReports() [1/2]

void grammarscope.browser.dialog.ReportDialog.addMultipleReports ( final String...  strs)

Add reports

Parameters
strssentence report strings

◆ addMultipleReports() [2/2]

void grammarscope.browser.dialog.ReportDialog.addMultipleReports ( final String[]  tabTitles,
final String[]  tabIcons,
final String...  strs 
)

Add reports

Parameters
tabTitlestab titles
tabIconstab icons
strssentence report strings

◆ addReport()

void grammarscope.browser.dialog.ReportDialog.addReport ( final String  str,
final String  tab,
final String  tabImage 
)

Add report

Parameters
strsentence report string
tabtab text
tabImagetab image

◆ addReports()

void grammarscope.browser.dialog.ReportDialog.addReports ( final int  ith,
final String[]  tabTitles,
final String[]  tabIcons,
final String...  strs 
)

Add reports

Parameters
ithreport index
tabTitlestab titles
tabIconstab icons
strssentence report strings

◆ addSentenceReports()

void grammarscope.browser.dialog.ReportDialog.addSentenceReports ( final String[]  tabTitles,
final String[]  tabIcons,
final String...  strs 
)

Add sentence reports

Parameters
tabTitlestab titles
tabIconstab icons
strssentence report strings

◆ addTab()

void grammarscope.browser.dialog.ReportDialog.addTab ( final String  text,
final JTextComponent  textComponent,
final String  tabTitle,
final String  tabIcon 
)
private

Add report

Parameters
texttext
textComponenttext component
tabTitletab text
tabIcontab image

◆ initialize()

void grammarscope.browser.dialog.ReportDialog.initialize ( )
private

Initialize

◆ makeTextArea()

static JTextComponent grammarscope.browser.dialog.ReportDialog.makeTextArea ( final Font  font)
staticprivate

Make text area

Parameters
fontfont
Returns
text area

◆ makeTextComponent()

static JTextComponent grammarscope.browser.dialog.ReportDialog.makeTextComponent ( @SuppressWarnings("SameParameterValue") final Font  font)
staticprivate

◆ makeTextPane()

static JTextComponent grammarscope.browser.dialog.ReportDialog.makeTextPane ( final Font  font)
staticprivate

Make text pane

Parameters
fontfont
Returns
text pane

◆ setVisible()

void grammarscope.browser.dialog.ReportDialog.setVisible ( final boolean  show)

Member Data Documentation

◆ isStyled

final boolean grammarscope.browser.dialog.ReportDialog.isStyled = false
staticprivate

◆ monoFont

final Font grammarscope.browser.dialog.ReportDialog.monoFont = new Font(Font.MONOSPACED, Font.PLAIN, 11)
staticprivate

◆ sentenceTabIcons

final String [] grammarscope.browser.dialog.ReportDialog.sentenceTabIcons
static
Initial value:
= { "images/document-small.png", "images/tokens-small.png", "images/parse-small.png",
"images/structure-small.png", "images/dependencies-small.png", "images/dependencies-small.png", "images/namedentities-small.png",
"images/sentiment-small.png", "images/entailments-small.png", "images/openie-small.png" }

◆ sentenceTabTitles

final String [] grammarscope.browser.dialog.ReportDialog.sentenceTabTitles
static
Initial value:
= { "Text", "Tokens", "Parse", "Grammatical Structure", "Typed Dependencies", "Semantic Graph",
"Named Entities", "Sentiment", "Entailments", "Information Extraction" }

◆ serialVersionUID

final long grammarscope.browser.dialog.ReportDialog.serialVersionUID = 1L
staticprivate

◆ tabbedPane

final JTabbedPane grammarscope.browser.dialog.ReportDialog.tabbedPane
private

◆ textFont

final Font grammarscope.browser.dialog.ReportDialog.textFont = new Font(Font.SANS_SERIF, Font.PLAIN, 12)
staticprivate

◆ textTabIcons

final String [] grammarscope.browser.dialog.ReportDialog.textTabIcons = { "images/document-small.png" }
static

◆ textTabTitles

final String [] grammarscope.browser.dialog.ReportDialog.textTabTitles = { "Text", "Coreference" }
static

The documentation for this class was generated from the following file: