treebolic.provider.fs
Class FsNode

java.lang.Object
  extended by treebolic.model.NodeData
      extended by treebolic.model.XNodeData
          extended by treebolic.model.Node
              extended by treebolic.model.MutableNode
                  extended by treebolic.provider.fs.FsNode
All Implemented Interfaces:
INode

public class FsNode
extends MutableNode
implements INode

FsNode implementation for file system provider

Author:
Bernard Bou

Field Summary
static java.awt.Color theDefaultFileBackColor
          File background color
static java.awt.Color theDefaultFileForeColor
          File foreground color
private static java.awt.Image theDefaultFileImage
          File image
private static java.awt.Color theDefaultFolderBackColor
          Folder background color
private static java.awt.Color theDefaultFolderForeColor
          Folder foreground color
private static java.awt.Image theDefaultFolderImage
          Folder image
private static java.util.Random theRandomizer
          Randomize used to generate ids
 
Fields inherited from class treebolic.model.Node
theChildren, theParent
 
Fields inherited from class treebolic.model.XNodeData
theEdgeImage, theMountPoint
 
Fields inherited from class treebolic.model.NodeData
theBackColor, theContent, theEdgeColor, theEdgeImageFile, theEdgeLabel, theEdgeStyle, theForeColor, theId, theImageFile, theLabel, theLink, theTarget
 
Constructor Summary
FsNode(INode thisParent, java.io.File thisFile)
          Constructor
 
Method Summary
static java.lang.String makeNodeId()
          Make node id
 
Methods inherited from class treebolic.model.MutableNode
setBackColor, setContent, setEdgeColor, setEdgeImageFile, setEdgeLabel, setEdgeStyle, setForeColor, setImageFile, setLabel, setLink, setTarget
 
Methods inherited from class treebolic.model.Node
getChildren, getParent, setParent
 
Methods inherited from class treebolic.model.XNodeData
getChildrenWeight, getEdgeImage, getImage, getLocation, getMinWeight, getMountPoint, getWeight, setChildrenWeight, setEdgeImage, setImage, setMinWeight, setMountPoint, setWeight
 
Methods inherited from class treebolic.model.NodeData
getBackColor, getContent, getEdgeColor, getEdgeImageFile, getEdgeLabel, getEdgeStyle, getForeColor, getId, getImageFile, getLabel, getLink, getTarget, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface treebolic.model.INode
getBackColor, getChildren, getChildrenWeight, getContent, getEdgeColor, getEdgeImage, getEdgeImageFile, getEdgeLabel, getEdgeStyle, getForeColor, getId, getImage, getImageFile, getLabel, getLink, getLocation, getMinWeight, getMountPoint, getParent, getTarget, getWeight, setChildrenWeight, setEdgeImage, setImage, setMinWeight, setMountPoint, setParent, setWeight
 

Field Detail

theRandomizer

private static java.util.Random theRandomizer
Randomize used to generate ids


theDefaultFileBackColor

public static final java.awt.Color theDefaultFileBackColor
File background color


theDefaultFileForeColor

public static final java.awt.Color theDefaultFileForeColor
File foreground color


theDefaultFileImage

private static final java.awt.Image theDefaultFileImage
File image


theDefaultFolderBackColor

private static final java.awt.Color theDefaultFolderBackColor
Folder background color


theDefaultFolderForeColor

private static final java.awt.Color theDefaultFolderForeColor
Folder foreground color


theDefaultFolderImage

private static final java.awt.Image theDefaultFolderImage
Folder image

Constructor Detail

FsNode

public FsNode(INode thisParent,
              java.io.File thisFile)
Constructor

Parameters:
thisParent - parent
thisFile - file
Method Detail

makeNodeId

public static java.lang.String makeNodeId()
Make node id

Returns:
node id