|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreebolic.generator.domtree.Renderer
public class Renderer
Renderer
Field Summary | |
---|---|
private static long |
serialVersionUID
|
private static javax.swing.ImageIcon |
theDefaultIcon
Default icon |
private static javax.swing.text.SimpleAttributeSet |
theDefaultNameStyle
Style for node name |
private static javax.swing.text.SimpleAttributeSet |
theDefaultValueStyle
Style for node data |
private static javax.swing.ImageIcon |
theElementIcon
Element icon |
private static javax.swing.text.SimpleAttributeSet |
theElementNameStyle
Style for element name |
private static javax.swing.text.SimpleAttributeSet |
theElementValueStyle
Style for element data |
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 javax.swing.JPanel |
thePanel
Renderer component |
protected java.util.List<java.util.regex.Pattern> |
thePatterns
Pattern list |
protected java.util.Map<java.util.regex.Pattern,javax.swing.text.SimpleAttributeSet> |
thePatternToStyleMap
Styles for patterns |
protected javax.swing.JTextPane |
theTextComponent
Text sub component |
private static javax.swing.ImageIcon |
theTextIcon
Text icon |
Constructor Summary | |
---|---|
Renderer()
Constructor |
Method Summary | |
---|---|
protected void |
applyStyleToPatterns(java.lang.String thisString,
int thisOffset)
Apply styles to patterns |
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 |
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
|
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static javax.swing.ImageIcon theElementIcon
private static javax.swing.ImageIcon theTextIcon
private static javax.swing.ImageIcon theDefaultIcon
private static javax.swing.text.SimpleAttributeSet theElementNameStyle
private static javax.swing.text.SimpleAttributeSet theElementValueStyle
private static javax.swing.text.SimpleAttributeSet theDefaultNameStyle
private static javax.swing.text.SimpleAttributeSet theDefaultValueStyle
private static javax.swing.text.SimpleAttributeSet theIdStyle
private java.util.regex.Pattern theIdPattern
protected java.util.List<java.util.regex.Pattern> thePatterns
protected java.util.Map<java.util.regex.Pattern,javax.swing.text.SimpleAttributeSet> thePatternToStyleMap
protected javax.swing.JPanel thePanel
protected javax.swing.JLabel theIconComponent
protected javax.swing.JTextPane theTextComponent
Constructor Detail |
---|
public Renderer()
Method Detail |
---|
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 applyStyleToPatterns(java.lang.String thisString, int thisOffset)
thisString
- value stringthisOffset
- offset of value in textprotected DefaultDecorator makeDecorator(org.w3c.dom.Node thisNode)
thisNode
- node
protected javax.swing.text.SimpleAttributeSet getNameStyle(org.w3c.dom.Node thisNode)
thisNode
- node
protected javax.swing.text.SimpleAttributeSet getValueStyle(org.w3c.dom.Node thisNode)
thisNode
- node
protected javax.swing.Icon getIconStyle(org.w3c.dom.Node thisNode)
thisNode
- node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |