|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.japisoft.xmlpad.tree.FastTreeRenderer
Renderer for the tree
UIManager properties : - xmlpad.tree.font - xmlpad.tree.elementIcon - xmlpad.tree.textIcon - xmlpad.tree.errorIcon - xmlpad.tree.textColor - xmlpad.tree.selectionColor
Constructor Summary | |
FastTreeRenderer()
|
Method Summary | |
void |
activateError(java.lang.String message)
Show an error on the root. |
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
|
boolean |
isDashUnderlineMode()
|
void |
setDashUnderlineColor(java.awt.Color color)
|
void |
setDashUnderlineMode(boolean dashUnderline)
Add dask for showing selection |
void |
setElementIcon(javax.swing.ImageIcon icon)
Reset the default icon for tag element |
void |
setErrorIcon(javax.swing.ImageIcon icon)
Reset the default error icon |
void |
setSelectionColor(java.awt.Color color)
Reset the default selection color |
void |
setTextColor(java.awt.Color color)
Reset the default text color |
void |
setTextFont(java.awt.Font font)
Reset the default text font |
void |
setTextIcon(javax.swing.ImageIcon icon)
Reset the default text icon |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FastTreeRenderer()
Method Detail |
public void setElementIcon(javax.swing.ImageIcon icon)
public void setTextIcon(javax.swing.ImageIcon icon)
public void setErrorIcon(javax.swing.ImageIcon icon)
public void setTextFont(java.awt.Font font)
public void setTextColor(java.awt.Color color)
public void setSelectionColor(java.awt.Color color)
public void activateError(java.lang.String message)
public void setDashUnderlineMode(boolean dashUnderline)
public boolean isDashUnderlineMode()
true
if the current selection is shown with an
underline mode. By default to false
public void setDashUnderlineColor(java.awt.Color color)
public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, java.lang.Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
getTreeCellRendererComponent
in interface javax.swing.tree.TreeCellRenderer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |