edu.princeton.wordnet.client.browser.domtree.wordnet
Class Renderer

java.lang.Object
  extended by edu.princeton.wordnet.client.browser.domtree.Renderer
      extended by edu.princeton.wordnet.client.browser.domtree.wordnet.Renderer
All Implemented Interfaces:
javax.swing.tree.TreeCellRenderer

public class Renderer
extends Renderer

WordNet-specific renderer

Author:
Bernard Bou

Field Summary
private static long serialVersionUID
           
private static java.util.Set<java.lang.String> theLinks
           
private static java.util.regex.Pattern theSrcPattern
          Src pattern
private static javax.swing.text.SimpleAttributeSet theSrcStyle
          Style for src data
(package private) static java.awt.Color theValueColor
          Default value color
 
Fields inherited from class edu.princeton.wordnet.client.browser.domtree.Renderer
theIconComponent, thePatterns, thePatternToStyleMap, theTextComponent
 
Constructor Summary
Renderer()
          Constructor
 
Method Summary
protected  DefaultDecorator makeDecorator(org.w3c.dom.Node thisNode)
          Make node decorator
(package private) static java.util.Set<java.lang.String> makeLinkSet()
          Make set of links
protected  void registerPatterns()
          Register patterns
 
Methods inherited from class edu.princeton.wordnet.client.browser.domtree.Renderer
applyStyleToPatterns, getTreeCellRendererComponent, makeLabel, makePanel, makeText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

theSrcStyle

private static javax.swing.text.SimpleAttributeSet theSrcStyle
Style for src data


theValueColor

static java.awt.Color theValueColor
Default value color


theSrcPattern

private static final java.util.regex.Pattern theSrcPattern
Src pattern


theLinks

private static java.util.Set<java.lang.String> theLinks
Constructor Detail

Renderer

public Renderer()
Constructor

Method Detail

makeLinkSet

static java.util.Set<java.lang.String> makeLinkSet()
Make set of links

Returns:
set of links

registerPatterns

protected void registerPatterns()
Register patterns

Overrides:
registerPatterns in class Renderer

makeDecorator

protected DefaultDecorator makeDecorator(org.w3c.dom.Node thisNode)
Description copied from class: Renderer
Make node decorator

Overrides:
makeDecorator in class Renderer
Parameters:
thisNode - node
Returns:
node decorator