|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.princeton.wordnet.browser.tree.renderers.domw3c.Renderer
public class Renderer
Renderer
Field Summary | |
---|---|
private static long |
serialVersionUID
|
private java.util.regex.Pattern |
theAttributePattern
|
private static javax.swing.text.SimpleAttributeSet |
theAttributeStyle
|
protected javax.swing.JLabel |
theIconComponent
Icon subcomponent |
private java.util.regex.Pattern |
theIdPattern
Patterns |
private static javax.swing.text.SimpleAttributeSet |
theIdStyle
Style for id data |
protected java.util.List<java.util.regex.Pattern> |
thePatterns
Pattern list |
protected java.util.Map<java.util.regex.Pattern,javax.swing.text.SimpleAttributeSet> |
thePatternToStyleMap
MappedStyle for patterns |
protected javax.swing.JTextPane |
theTextComponent
Text sub component |
Constructor Summary | |
---|---|
Renderer()
Constructor |
Method Summary | |
---|---|
protected void |
applyStyleToPatterns(java.lang.String thisString,
int thisOffset)
Apply styles to patterns |
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
|
protected DefaultDecorator |
makeDecorator(org.w3c.dom.Node thisNode)
Make node decorator |
javax.swing.JLabel |
makeLabel()
Make default label |
javax.swing.JPanel |
makePanel(java.awt.Component thisIconComponent,
java.awt.Component thisTextComponent)
Make panel with icon and text |
javax.swing.JTextPane |
makeText()
Make text pane |
protected void |
registerPatterns()
Register patterns |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
protected java.util.List<java.util.regex.Pattern> thePatterns
protected java.util.Map<java.util.regex.Pattern,javax.swing.text.SimpleAttributeSet> thePatternToStyleMap
private final java.util.regex.Pattern theIdPattern
private final java.util.regex.Pattern theAttributePattern
private static javax.swing.text.SimpleAttributeSet theIdStyle
private static javax.swing.text.SimpleAttributeSet theAttributeStyle
protected javax.swing.JLabel theIconComponent
protected javax.swing.JTextPane theTextComponent
Constructor Detail |
---|
public Renderer()
Method Detail |
---|
public javax.swing.JLabel makeLabel()
public javax.swing.JTextPane makeText()
public javax.swing.JPanel makePanel(java.awt.Component thisIconComponent, java.awt.Component thisTextComponent)
thisIconComponent
- icon componentthisTextComponent
- text component
public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, java.lang.Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
getTreeCellRendererComponent
in interface javax.swing.tree.TreeCellRenderer
protected void registerPatterns()
protected void applyStyleToPatterns(java.lang.String thisString, int thisOffset)
thisString
- value stringthisOffset
- offset of value in textprotected DefaultDecorator makeDecorator(org.w3c.dom.Node thisNode)
thisNode
- node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |