    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class jclass.bwt.JCOutlinerNodeStyle

    java.lang.Object
       |
       +----jclass.bwt.JCOutlinerNodeStyle

public class JCOutlinerNodeStyle
extends Object
implements JCSerializable

This class defines style values for a JCOutliner node.

See Also:
  JCOutliner, JCOutlinerNode

##

background_selected
  The node's background color when it is selected.
folder_closed
  The node's icon if it is a closed folder.
folder_closed_selected
  The node's icon if it is a closed folder and it is selected.
folder_open
  The node's icon if it is an open folder.
folder_open_selected
  The node's icon if it is an open folder and it is selected.
font
  The node's font.
foreground
  The node's foreground color.
foreground_selected
  The node's foreground color when it is selected.
icon_spacing
  The horizontal spacing between the icon and the label.
item
  The node's icon if it is not a folder.
item_selected
  The node's icon if it is not a folder and it is selected.
line_color
  The color of the line connecting a folder to its children.
shortcut
  Whether a shortcut button should be drawn beside a folder.

##

JCOutlinerNodeStyle()
JCOutlinerNodeStyle(JCOutlinerNodeStyle)
  Creates a new style which is a copy of a style.

##

getBackgroundSelected()
  Gets the node's background color when it is selected.
getFolderClosedIcon()
  Gets the node's icon if it is a closed folder.
getFolderClosedSelectedIcon()
  Gets the node's icon if it is a closed folder and it is selected.
getFolderOpenIcon()
  Gets the node's icon if it is an open folder.
getFolderOpenSelectedIcon()
  Gets the node's icon if it is an open folder and it is selected.
getFont()
  Gets the node's font.
getForeground()
  Gets the node's foreground color.
getForegroundSelected()
  Gets the node's foreground color when it is selected.
getIconSpacing()
  Gets the horizontal spacing between the icon and the label.
getItemIcon()
  Gets the node's icon if it is not a folder.
getItemSelectedIcon()
  Gets the node's icon if it is not a folder and it is selected.
getLineColor()
  Gets the color of the line connecting a folder to its children.
getShortcut()
  Gets whether a shortcut button should be drawn beside a folder.
setBackgroundSelected(Color)
  Sets the node's background color when it is selected (default: outliner's foreground color).
setFolderClosedIcon(Image)
  Sets the node's icon if it is a closed folder.
setFolderClosedSelectedIcon(Image)
  Sets the node's icon if it is a closed folder and it is selected.
setFolderOpenIcon(Image)
  Sets the node's icon if it is an open folder.
setFolderOpenSelectedIcon(Image)
  Sets the node's icon if it is an open folder and it is selected.
setFont(Font)
  Sets the node's font (default: outliner's font).
setForeground(Color)
  Sets the node's foreground color (default: outliner's foreground color).
setForegroundSelected(Color)
  Sets the node's foreground color when it is selected (default: outliner's background color).
setIconSpacing(int)
  Sets the horizontal spacing between the icon and the label (default: 5).
setItemIcon(Image)
  Sets the node's icon if it is not a folder.
setItemSelectedIcon(Image)
  Sets the node's icon if it is not a folder and it is selected.
setLineColor(Color)
  Sets the color of the line connecting a folder to its children (default: outliner's foreground color).
setShortcut(boolean)
  Sets whether a shortcut button should be drawn beside a folder (default: false).

##

background_selected

     protected Color background_selected

  The node's background color when it is selected.

font

     protected Font font

  The node's font.

foreground

     protected Color foreground

  The node's foreground color.

foreground_selected

     protected Color foreground_selected

  The node's foreground color when it is selected.

line_color

     protected Color line_color

  The color of the line connecting a folder to its children.

shortcut

     protected boolean shortcut

  Whether a shortcut button should be drawn beside a folder.

item

     protected transient Image item

  The node's icon if it is not a folder.

item_selected

     protected transient Image item_selected

  The node's icon if it is not a folder and it is selected.

folder_closed

     protected transient Image folder_closed

  The node's icon if it is a closed folder.

folder_closed_selected

     protected transient Image folder_closed_selected

  The node's icon if it is a closed folder and it is selected.

folder_open

     protected transient Image folder_open

  The node's icon if it is an open folder.

folder_open_selected

     protected transient Image folder_open_selected

  The node's icon if it is an open folder and it is selected.

icon_spacing

     protected int icon_spacing

  The horizontal spacing between the icon and the label.

##

JCOutlinerNodeStyle

     public JCOutlinerNodeStyle()

JCOutlinerNodeStyle

     public JCOutlinerNodeStyle(JCOutlinerNodeStyle s)

  Creates a new style which is a copy of a style.

##

getBackgroundSelected

     public Color getBackgroundSelected()

  Gets the node's background color when it is selected.

getFont

     public Font getFont()

  Gets the node's font.

getForeground

     public Color getForeground()

  Gets the node's foreground color.

getForegroundSelected

     public Color getForegroundSelected()

  Gets the node's foreground color when it is selected.

getLineColor

     public Color getLineColor()

  Gets the color of the line connecting a folder to its children.

getShortcut

     public boolean getShortcut()

  Gets whether a shortcut button should be drawn beside a folder.

getItemIcon

     public Image getItemIcon()

  Gets the node's icon if it is not a folder.

getItemSelectedIcon

     public Image getItemSelectedIcon()

  Gets the node's icon if it is not a folder and it is selected.

getFolderClosedIcon

     public Image getFolderClosedIcon()

  Gets the node's icon if it is a closed folder.

getFolderClosedSelectedIcon

     public Image getFolderClosedSelectedIcon()

  Gets the node's icon if it is a closed folder and it is selected.

getFolderOpenIcon

     public Image getFolderOpenIcon()

  Gets the node's icon if it is an open folder.

getFolderOpenSelectedIcon

     public Image getFolderOpenSelectedIcon()

  Gets the node's icon if it is an open folder and it is selected.

getIconSpacing

     public int getIconSpacing()

  Gets the horizontal spacing between the icon and the label.

setBackgroundSelected

     public void setBackgroundSelected(Color v)

  Sets the node's background color when it is selected (default: outliner's foreground color).

setFont

     public void setFont(Font f)

  Sets the node's font (default: outliner's font).

setForeground

     public void setForeground(Color v)

  Sets the node's foreground color (default: outliner's foreground color).

setForegroundSelected

     public void setForegroundSelected(Color v)

  Sets the node's foreground color when it is selected (default: outliner's background color).

setLineColor

     public void setLineColor(Color v)

  Sets the color of the line connecting a folder to its children (default: outliner's foreground color).

setShortcut

     public void setShortcut(boolean v)

  Sets whether a shortcut button should be drawn beside a folder (default: false).

setIconSpacing

     public void setIconSpacing(int v)

  Sets the horizontal spacing between the icon and the label (default: 5).

setItemIcon

     public void setItemIcon(Image i)

  Sets the node's icon if it is not a folder.

setItemSelectedIcon

     public void setItemSelectedIcon(Image i)

  Sets the node's icon if it is not a folder and it is selected. (default: same as item).

setFolderClosedIcon

     public void setFolderClosedIcon(Image i)

  Sets the node's icon if it is a closed folder.

setFolderClosedSelectedIcon

     public void setFolderClosedSelectedIcon(Image i)

  Sets the node's icon if it is a closed folder and it is selected.

setFolderOpenIcon

     public void setFolderOpenIcon(Image i)

  Sets the node's icon if it is an open folder.

setFolderOpenSelectedIcon

     public void setFolderOpenSelectedIcon(Image i)

  Sets the node's icon if it is an open folder and it is selected. (default: same as open).

    All Packages  Class Hierarchy  This Package  Previous  Next  Index