Class StuMan.MyTreeCellRenderer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class StuMan.MyTreeCellRenderer

Object
   |
   +----StuMan.MyTreeCellRenderer

public class MyTreeCellRenderer
extends Object
implements TreeCellRenderer
Draws a tree element with the correct icon in the tree

Author:
Andreas Schroeter
Since:
30.04.1999

Variable Index

 o InstanceIcon
Icon used to show nodes as Instance.
 o PSIcon
Icon used to show nodes as Presentation State.
 o SeriesIcon
Icon used to show nodes as Series.
 o StudyIcon
Icon used to show nodes as Study.
 o backgroundNonSelectionColor
Color to use for the background when the node isn't selected.
 o backgroundSelectionColor
Color to use for the background when a node is selected.
 o borderSelectionColor
Color to use for the background when the node isn't selected.
 o closedIcon
Icon used to show non-leaf nodes that aren't expanded.
 o defaultIcon
Icon used to show nodes as default.
 o label
 o leafIcon
Icon used to show leaf nodes.
 o newIcon
Icon used to show nodes as new Entry.
 o openIcon
Icon used to show non-leaf nodes that are expanded.
 o textNonSelectionColor
Color to use for the foreground for non-selected nodes.
 o textNonSelectionFont
 o textSelectionColor
Color to use for the foreground for selected nodes.
 o textSelectionFont

Constructor Index

 o StuMan.MyTreeCellRenderer(boolean)

Method Index

 o getBackgroundNonSelectionColor()
Returns the background color to be used for non selected nodes.
 o getBackgroundSelectionColor()
Returns the color to use for the background if node is selected.
 o getBorderSelectionColor()
Returns the color the border is drawn.
 o getClosedIcon()
Returns the icon used to represent non-leaf nodes that are not expanded.
 o getDefaultClosedIcon()
Returns the default icon used to represent non-leaf nodes that are not expanded.
 o getDefaultLeafIcon()
Returns the default icon used to represent leaf nodes.
 o getDefaultOpenIcon()
Returns the default icon used to represent non-leaf nodes that are expanded.
 o getLeafIcon()
Returns the icon used to represent leaf nodes.
 o getOpenIcon()
Returns the icon used to represent non-leaf nodes that are expanded.
 o getTextNonSelectionColor()
Returns the color the text is drawn with when the node isn't selected.
 o getTextSelectionColor()
Returns the color the text is drawn with when the node is selected.
 o getTreeCellRendererComponent(JTree, Object, boolean, boolean, boolean, int, boolean)
Renders the Component.
 o setBackgroundNonSelectionColor(Color)
Sets the background color to be used for non selected nodes.
 o setBackgroundSelectionColor(Color)
Sets the color to use for the background if node is selected.
 o setBorderSelectionColor(Color)
Sets the color to use for the border.
 o setClosedIcon(Icon)
Sets the icon used to represent non-leaf nodes that are not expanded.
 o setLeafIcon(Icon)
Sets the icon used to represent leaf nodes.
 o setOpenIcon(Icon)
Sets the icon used to represent non-leaf nodes that are expanded.
 o setTextNonSelectionColor(Color)
Sets the color the text is drawn with when the node isn't selected.
 o setTextSelectionColor(Color)
Sets the color the text is drawn with when the node is selected.

Variables

 o InstanceIcon
protected transient javax.swing.Icon InstanceIcon
Icon used to show nodes as Instance.

 o PSIcon
protected transient javax.swing.Icon PSIcon
Icon used to show nodes as Presentation State.

 o SeriesIcon
protected transient javax.swing.Icon SeriesIcon
Icon used to show nodes as Series.

 o StudyIcon
protected transient javax.swing.Icon StudyIcon
Icon used to show nodes as Study.

 o backgroundNonSelectionColor
protected java.awt.Color backgroundNonSelectionColor
Color to use for the background when the node isn't selected.

 o backgroundSelectionColor
protected java.awt.Color backgroundSelectionColor
Color to use for the background when a node is selected.

 o borderSelectionColor
protected java.awt.Color borderSelectionColor
Color to use for the background when the node isn't selected.

 o closedIcon
protected transient javax.swing.Icon closedIcon
Icon used to show non-leaf nodes that aren't expanded.

 o defaultIcon
protected transient javax.swing.Icon defaultIcon
Icon used to show nodes as default.

 o label
protected javax.swing.JLabel label
 o leafIcon
protected transient javax.swing.Icon leafIcon
Icon used to show leaf nodes.

 o newIcon
protected transient javax.swing.Icon newIcon
Icon used to show nodes as new Entry.

 o openIcon
protected transient javax.swing.Icon openIcon
Icon used to show non-leaf nodes that are expanded.

 o textNonSelectionColor
protected java.awt.Color textNonSelectionColor
Color to use for the foreground for non-selected nodes.

 o textNonSelectionFont
protected java.awt.Font textNonSelectionFont
 o textSelectionColor
protected java.awt.Color textSelectionColor
Color to use for the foreground for selected nodes.

 o textSelectionFont
protected java.awt.Font textSelectionFont

Constructors

 o MyTreeCellRenderer
public MyTreeCellRenderer(boolean highQualityScreen)

Methods

 o getBackgroundNonSelectionColor
public java.awt.Color getBackgroundNonSelectionColor()
Returns the background color to be used for non selected nodes.

 o getBackgroundSelectionColor
public java.awt.Color getBackgroundSelectionColor()
Returns the color to use for the background if node is selected.

 o getBorderSelectionColor
public java.awt.Color getBorderSelectionColor()
Returns the color the border is drawn.

 o getClosedIcon
public javax.swing.Icon getClosedIcon()
Returns the icon used to represent non-leaf nodes that are not expanded.

 o getDefaultClosedIcon
public javax.swing.Icon getDefaultClosedIcon()
Returns the default icon used to represent non-leaf nodes that are not expanded.

 o getDefaultLeafIcon
public javax.swing.Icon getDefaultLeafIcon()
Returns the default icon used to represent leaf nodes.

 o getDefaultOpenIcon
public javax.swing.Icon getDefaultOpenIcon()
Returns the default icon used to represent non-leaf nodes that are expanded.

 o getLeafIcon
public javax.swing.Icon getLeafIcon()
Returns the icon used to represent leaf nodes.

 o getOpenIcon
public javax.swing.Icon getOpenIcon()
Returns the icon used to represent non-leaf nodes that are expanded.

 o getTextNonSelectionColor
public java.awt.Color getTextNonSelectionColor()
Returns the color the text is drawn with when the node isn't selected.

 o getTextSelectionColor
public java.awt.Color getTextSelectionColor()
Returns the color the text is drawn with when the node is selected.

 o getTreeCellRendererComponent
public java.awt.Component getTreeCellRendererComponent(JTree tree,
                                                       Object value,
                                                       boolean selected,
                                                       boolean expanded,
                                                       boolean leaf,
                                                       int row,
                                                       boolean hasFocus)
Renders the Component.

 o setBackgroundNonSelectionColor
public void setBackgroundNonSelectionColor(Color newColor)
Sets the background color to be used for non selected nodes.

 o setBackgroundSelectionColor
public void setBackgroundSelectionColor(Color newColor)
Sets the color to use for the background if node is selected.

 o setBorderSelectionColor
public void setBorderSelectionColor(Color newColor)
Sets the color to use for the border.

 o setClosedIcon
public void setClosedIcon(Icon newIcon)
Sets the icon used to represent non-leaf nodes that are not expanded.

 o setLeafIcon
public void setLeafIcon(Icon newIcon)
Sets the icon used to represent leaf nodes.

 o setOpenIcon
public void setOpenIcon(Icon newIcon)
Sets the icon used to represent non-leaf nodes that are expanded.

 o setTextNonSelectionColor
public void setTextNonSelectionColor(Color newColor)
Sets the color the text is drawn with when the node isn't selected.

 o setTextSelectionColor
public void setTextSelectionColor(Color newColor)
Sets the color the text is drawn with when the node is selected.


All Packages  Class Hierarchy  This Package  Previous  Next  Index