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
-
InstanceIcon
-
Icon used to show nodes as Instance.
-
PSIcon
-
Icon used to show nodes as Presentation State.
-
SeriesIcon
-
Icon used to show nodes as Series.
-
StudyIcon
-
Icon used to show nodes as Study.
-
backgroundNonSelectionColor
- Color to use for the background when the node isn't selected.
-
backgroundSelectionColor
- Color to use for the background when a node is selected.
-
borderSelectionColor
- Color to use for the background when the node isn't selected.
-
closedIcon
- Icon used to show non-leaf nodes that aren't expanded.
-
defaultIcon
-
Icon used to show nodes as default.
-
label
-
-
leafIcon
- Icon used to show leaf nodes.
-
newIcon
-
Icon used to show nodes as new Entry.
-
openIcon
- Icon used to show non-leaf nodes that are expanded.
-
textNonSelectionColor
- Color to use for the foreground for non-selected nodes.
-
textNonSelectionFont
-
-
textSelectionColor
- Color to use for the foreground for selected nodes.
-
textSelectionFont
-
-
StuMan.MyTreeCellRenderer(boolean)
-
-
getBackgroundNonSelectionColor()
- Returns the background color to be used for non selected nodes.
-
getBackgroundSelectionColor()
- Returns the color to use for the background if node is selected.
-
getBorderSelectionColor()
- Returns the color the border is drawn.
-
getClosedIcon()
- Returns the icon used to represent non-leaf nodes that are not
expanded.
-
getDefaultClosedIcon()
- Returns the default icon used to represent non-leaf nodes that are not
expanded.
-
getDefaultLeafIcon()
- Returns the default icon used to represent leaf nodes.
-
getDefaultOpenIcon()
- Returns the default icon used to represent non-leaf nodes that are expanded.
-
getLeafIcon()
- Returns the icon used to represent leaf nodes.
-
getOpenIcon()
- Returns the icon used to represent non-leaf nodes that are expanded.
-
getTextNonSelectionColor()
- Returns the color the text is drawn with when the node isn't selected.
-
getTextSelectionColor()
- Returns the color the text is drawn with when the node is selected.
-
getTreeCellRendererComponent(JTree, Object, boolean, boolean, boolean, int, boolean)
- Renders the Component.
-
setBackgroundNonSelectionColor(Color)
- Sets the background color to be used for non selected nodes.
-
setBackgroundSelectionColor(Color)
- Sets the color to use for the background if node is selected.
-
setBorderSelectionColor(Color)
- Sets the color to use for the border.
-
setClosedIcon(Icon)
- Sets the icon used to represent non-leaf nodes that are not expanded.
-
setLeafIcon(Icon)
- Sets the icon used to represent leaf nodes.
-
setOpenIcon(Icon)
- Sets the icon used to represent non-leaf nodes that are expanded.
-
setTextNonSelectionColor(Color)
- Sets the color the text is drawn with when the node isn't selected.
-
setTextSelectionColor(Color)
- Sets the color the text is drawn with when the node is selected.
InstanceIcon
protected transient javax.swing.Icon InstanceIcon
- Icon used to show nodes as Instance.
PSIcon
protected transient javax.swing.Icon PSIcon
- Icon used to show nodes as Presentation State.
SeriesIcon
protected transient javax.swing.Icon SeriesIcon
- Icon used to show nodes as Series.
StudyIcon
protected transient javax.swing.Icon StudyIcon
- Icon used to show nodes as Study.
backgroundNonSelectionColor
protected java.awt.Color backgroundNonSelectionColor
- Color to use for the background when the node isn't selected.
backgroundSelectionColor
protected java.awt.Color backgroundSelectionColor
- Color to use for the background when a node is selected.
borderSelectionColor
protected java.awt.Color borderSelectionColor
- Color to use for the background when the node isn't selected.
closedIcon
protected transient javax.swing.Icon closedIcon
- Icon used to show non-leaf nodes that aren't expanded.
defaultIcon
protected transient javax.swing.Icon defaultIcon
- Icon used to show nodes as default.
label
protected javax.swing.JLabel label
leafIcon
protected transient javax.swing.Icon leafIcon
- Icon used to show leaf nodes.
newIcon
protected transient javax.swing.Icon newIcon
- Icon used to show nodes as new Entry.
openIcon
protected transient javax.swing.Icon openIcon
- Icon used to show non-leaf nodes that are expanded.
textNonSelectionColor
protected java.awt.Color textNonSelectionColor
- Color to use for the foreground for non-selected nodes.
textNonSelectionFont
protected java.awt.Font textNonSelectionFont
textSelectionColor
protected java.awt.Color textSelectionColor
- Color to use for the foreground for selected nodes.
textSelectionFont
protected java.awt.Font textSelectionFont
MyTreeCellRenderer
public MyTreeCellRenderer(boolean highQualityScreen)
getBackgroundNonSelectionColor
public java.awt.Color getBackgroundNonSelectionColor()
- Returns the background color to be used for non selected nodes.
getBackgroundSelectionColor
public java.awt.Color getBackgroundSelectionColor()
- Returns the color to use for the background if node is selected.
getBorderSelectionColor
public java.awt.Color getBorderSelectionColor()
- Returns the color the border is drawn.
getClosedIcon
public javax.swing.Icon getClosedIcon()
- Returns the icon used to represent non-leaf nodes that are not
expanded.
getDefaultClosedIcon
public javax.swing.Icon getDefaultClosedIcon()
- Returns the default icon used to represent non-leaf nodes that are not
expanded.
getDefaultLeafIcon
public javax.swing.Icon getDefaultLeafIcon()
- Returns the default icon used to represent leaf nodes.
getDefaultOpenIcon
public javax.swing.Icon getDefaultOpenIcon()
- Returns the default icon used to represent non-leaf nodes that are expanded.
getLeafIcon
public javax.swing.Icon getLeafIcon()
- Returns the icon used to represent leaf nodes.
getOpenIcon
public javax.swing.Icon getOpenIcon()
- Returns the icon used to represent non-leaf nodes that are expanded.
getTextNonSelectionColor
public java.awt.Color getTextNonSelectionColor()
- Returns the color the text is drawn with when the node isn't selected.
getTextSelectionColor
public java.awt.Color getTextSelectionColor()
- Returns the color the text is drawn with when the node is selected.
getTreeCellRendererComponent
public java.awt.Component getTreeCellRendererComponent(JTree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
- Renders the Component.
setBackgroundNonSelectionColor
public void setBackgroundNonSelectionColor(Color newColor)
- Sets the background color to be used for non selected nodes.
setBackgroundSelectionColor
public void setBackgroundSelectionColor(Color newColor)
- Sets the color to use for the background if node is selected.
setBorderSelectionColor
public void setBorderSelectionColor(Color newColor)
- Sets the color to use for the border.
setClosedIcon
public void setClosedIcon(Icon newIcon)
- Sets the icon used to represent non-leaf nodes that are not expanded.
setLeafIcon
public void setLeafIcon(Icon newIcon)
- Sets the icon used to represent leaf nodes.
setOpenIcon
public void setOpenIcon(Icon newIcon)
- Sets the icon used to represent non-leaf nodes that are expanded.
setTextNonSelectionColor
public void setTextNonSelectionColor(Color newColor)
- Sets the color the text is drawn with when the node isn't selected.
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