treebolic.generator.domtree.treebolic
Class Renderer

java.lang.Object
  extended by treebolic.generator.domtree.Renderer
      extended by treebolic.generator.domtree.treebolic.Renderer
All Implemented Interfaces:
javax.swing.tree.TreeCellRenderer

public class Renderer
extends Renderer

Treebolic-specific renderer

Author:
Bernard Bou

Field Summary
private static long serialVersionUID
           
private static javax.swing.text.SimpleAttributeSet theEdgeEndsStyle
          Edge ends style
protected static javax.swing.ImageIcon theEdgeIcon
          Edge icon
private static javax.swing.text.SimpleAttributeSet theEdgeNameStyle
          Style for edge name
private static javax.swing.text.SimpleAttributeSet theEdgeValueStyle
          Style for edge data
private  java.util.regex.Pattern theFromPattern
          From pattern
protected static javax.swing.ImageIcon theLinkIcon
          Link icon
private static javax.swing.text.SimpleAttributeSet theLinkNameStyle
          Style for link name
private static javax.swing.text.SimpleAttributeSet theLinkValueStyle
          Style for link data
protected static javax.swing.ImageIcon theNodeIcon
          Node icon
private static javax.swing.text.SimpleAttributeSet theNodeNameStyle
          Style for node name
private static javax.swing.text.SimpleAttributeSet theNodeValueStyle
          Style for node data
private  java.util.regex.Pattern theSrcPattern
          Src pattern
private static javax.swing.text.SimpleAttributeSet theSrcStyle
          Style for src data
private  java.util.regex.Pattern theToPattern
          To pattern
private  java.util.Map<java.lang.String,javax.swing.Icon> theTypeToIconMap
          Icons for classes
private  java.util.Map<java.lang.String,javax.swing.text.SimpleAttributeSet> theTypeToNameStyleMap
          Name styles for classes
private  java.util.Map<java.lang.String,javax.swing.text.SimpleAttributeSet> theTypeToValueStyleMap
          Value styles for classes
 
Fields inherited from class treebolic.generator.domtree.Renderer
theIconComponent, thePanel, thePatterns, thePatternToStyleMap, theTextComponent
 
Constructor Summary
Renderer()
          Constructor
 
Method Summary
protected  javax.swing.Icon getIconStyle(org.w3c.dom.Node thisNode)
          Get icon for node
protected  javax.swing.text.SimpleAttributeSet getNameStyle(org.w3c.dom.Node thisNode)
          Get name style for node
protected  javax.swing.text.SimpleAttributeSet getValueStyle(org.w3c.dom.Node thisNode)
          Get value style for node
protected  DefaultDecorator makeDecorator(org.w3c.dom.Node thisNode)
          Make node decorator
 
Methods inherited from class treebolic.generator.domtree.Renderer
applyStyleToPatterns, getTreeCellRendererComponent
 
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

theNodeIcon

protected static javax.swing.ImageIcon theNodeIcon
Node icon


theEdgeIcon

protected static javax.swing.ImageIcon theEdgeIcon
Edge icon


theLinkIcon

protected static javax.swing.ImageIcon theLinkIcon
Link icon


theNodeNameStyle

private static javax.swing.text.SimpleAttributeSet theNodeNameStyle
Style for node name


theNodeValueStyle

private static javax.swing.text.SimpleAttributeSet theNodeValueStyle
Style for node data


theEdgeNameStyle

private static javax.swing.text.SimpleAttributeSet theEdgeNameStyle
Style for edge name


theLinkNameStyle

private static javax.swing.text.SimpleAttributeSet theLinkNameStyle
Style for link name


theEdgeValueStyle

private static javax.swing.text.SimpleAttributeSet theEdgeValueStyle
Style for edge data


theLinkValueStyle

private static javax.swing.text.SimpleAttributeSet theLinkValueStyle
Style for link data


theSrcStyle

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


theEdgeEndsStyle

private static javax.swing.text.SimpleAttributeSet theEdgeEndsStyle
Edge ends style


theSrcPattern

private java.util.regex.Pattern theSrcPattern
Src pattern


theFromPattern

private java.util.regex.Pattern theFromPattern
From pattern


theToPattern

private java.util.regex.Pattern theToPattern
To pattern


theTypeToNameStyleMap

private java.util.Map<java.lang.String,javax.swing.text.SimpleAttributeSet> theTypeToNameStyleMap
Name styles for classes


theTypeToValueStyleMap

private java.util.Map<java.lang.String,javax.swing.text.SimpleAttributeSet> theTypeToValueStyleMap
Value styles for classes


theTypeToIconMap

private java.util.Map<java.lang.String,javax.swing.Icon> theTypeToIconMap
Icons for classes

Constructor Detail

Renderer

public Renderer()
Constructor

Method Detail

getIconStyle

protected javax.swing.Icon getIconStyle(org.w3c.dom.Node thisNode)
Description copied from class: Renderer
Get icon for node

Overrides:
getIconStyle in class Renderer
Parameters:
thisNode - node
Returns:
style

getNameStyle

protected javax.swing.text.SimpleAttributeSet getNameStyle(org.w3c.dom.Node thisNode)
Description copied from class: Renderer
Get name style for node

Overrides:
getNameStyle in class Renderer
Parameters:
thisNode - node
Returns:
style

getValueStyle

protected javax.swing.text.SimpleAttributeSet getValueStyle(org.w3c.dom.Node thisNode)
Description copied from class: Renderer
Get value style for node

Overrides:
getValueStyle in class Renderer
Parameters:
thisNode - node
Returns:
style

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