edu.princeton.wordnet.browser.tree.renderers.dom4j.Renderer Class Reference

Inherits javax::swing::tree::TreeCellRenderer.

Collaboration diagram for edu.princeton.wordnet.browser.tree.renderers.dom4j.Renderer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Renderer ()
JLabel makeLabel ()
JTextPane makeText ()
JPanel makePanel (final Component thisIconComponent, final Component thisTextComponent)
Component getTreeCellRendererComponent (final JTree tree, final Object value, final boolean sel, final boolean expanded, final boolean leaf, final int row, final boolean hasFocus)

Protected Member Functions

void registerPatterns ()
void applyStyleToPatterns (final String thisString, final int thisOffset)
DefaultDecorator makeDecorator (final Node thisNode)

Protected Attributes

List< Pattern > thePatterns
Map< Pattern, SimpleAttributeSet > thePatternToStyleMap
JLabel theIconComponent
JTextPane theTextComponent

Static Package Functions

 [static initializer]

Detailed Description

Renderer

Author:
Bernard Bou

Constructor & Destructor Documentation

edu.princeton.wordnet.browser.tree.renderers.dom4j.Renderer.Renderer (  ) 

Constructor


Member Function Documentation

edu.princeton.wordnet.browser.tree.renderers.dom4j.Renderer.[static initializer] (  )  [static, package]

Initialize

void edu.princeton.wordnet.browser.tree.renderers.dom4j.Renderer.applyStyleToPatterns ( final String  thisString,
final int  thisOffset 
) [protected]

Apply styles to patterns

Parameters:
thisString value string
thisOffset offset of value in text
DefaultDecorator edu.princeton.wordnet.browser.tree.renderers.dom4j.Renderer.makeDecorator ( final Node  thisNode  )  [protected]

Make node decorator

Parameters:
thisNode node
Returns:
node decorator
JLabel edu.princeton.wordnet.browser.tree.renderers.dom4j.Renderer.makeLabel (  ) 

Make default label

Returns:
label
JPanel edu.princeton.wordnet.browser.tree.renderers.dom4j.Renderer.makePanel ( final Component  thisIconComponent,
final Component  thisTextComponent 
)

Make panel with icon and text

Parameters:
thisIconComponent icon component
thisTextComponent text component
Returns:
panel
JTextPane edu.princeton.wordnet.browser.tree.renderers.dom4j.Renderer.makeText (  ) 

Make text pane

Returns:
text pane
void edu.princeton.wordnet.browser.tree.renderers.dom4j.Renderer.registerPatterns (  )  [protected]

Register patterns


Member Data Documentation

Icon subcomponent

Pattern list

MappedStyle for patterns

Text sub component


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations
Generated on Tue May 25 16:43:51 2010 for WordNetScope by  doxygen 1.6.3