ch.hearc.I04_05s08.GUI.RDF
Class RdfTreeLeaf

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended bych.hearc.I04_05s08.GUI.RDF.RdfTreeNode
          extended bych.hearc.I04_05s08.GUI.RDF.RdfTreeLeaf
All Implemented Interfaces:
Cloneable, MutableTreeNode, Serializable, TreeNode

public class RdfTreeLeaf
extends RdfTreeNode

A node of the RDF Toolbar that is a leaf

Author:
Blanc, Yoan
See Also:
Serialized Form
Licence:
MIT
Copyright:
2005 Yoan Blanc, HE-ARC Ing�nierie

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
private  Color[] colors
          The colors
private  Icon icon
          The icon
private  Instance instance
          Associated resource
 
Fields inherited from class ch.hearc.I04_05s08.GUI.RDF.RdfTreeNode
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
RdfTreeLeaf(Instance instance, Icon icon)
          Build a leaf
RdfTreeLeaf(String title, Icon icon)
          Init the tree node
RdfTreeLeaf(String title, String help)
          Init the tree node
RdfTreeLeaf(String title, String help, Icon icon)
          Init the tree node
 
Method Summary
 Color getBackgroundColor()
          Get the background color
 Color getForegroundColor()
          Get the foreground color
 Icon getIcon()
          Get the icon
 Instance getInstance()
          Get the RDF Instance
 void setBackgroundColor(Color color)
          Set the background color
 void setForegroundColor(Color color)
          Set the foreground color
 
Methods inherited from class ch.hearc.I04_05s08.GUI.RDF.RdfTreeNode
add, getHelptext
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

icon

private Icon icon
The icon


colors

private Color[] colors
The colors


instance

private Instance instance
Associated resource

Constructor Detail

RdfTreeLeaf

public RdfTreeLeaf(String title,
                   String help,
                   Icon icon)
Init the tree node

Parameters:
title - the title of the node
help - help text
icon - the icon

RdfTreeLeaf

public RdfTreeLeaf(Instance instance,
                   Icon icon)
Build a leaf

Parameters:
instance - the instance
icon - the incon

RdfTreeLeaf

public RdfTreeLeaf(String title,
                   Icon icon)
Init the tree node

Parameters:
title - the title of the node
icon - the icon

RdfTreeLeaf

public RdfTreeLeaf(String title,
                   String help)
Init the tree node

Parameters:
title - the title of the node
help - help text
Method Detail

getIcon

public Icon getIcon()
Get the icon

Returns:
the icon

getInstance

public Instance getInstance()
Get the RDF Instance

Returns:
the instance

setBackgroundColor

public void setBackgroundColor(Color color)
Set the background color

Parameters:
color - background color

setForegroundColor

public void setForegroundColor(Color color)
Set the foreground color

Parameters:
color - foreground color

getBackgroundColor

public Color getBackgroundColor()
Get the background color

Returns:
background color

getForegroundColor

public Color getForegroundColor()
Get the foreground color

Returns:
foreground color


A project by Blanc, Yoan – supervised by Dr. Ghorbel, Hatem.
2004 © Blanc, Yoan - HE-ARC