ch.hearc.I04_05s08.GUI.RDFS
Class RdfsNode

java.lang.Object
  extended bych.hearc.I04_05s08.GUI.Graph.Element
      extended bych.hearc.I04_05s08.GUI.Graph.Node
          extended bych.hearc.I04_05s08.GUI.RDFS.RdfsNode
Direct Known Subclasses:
RdfsClassNode, RdfsPropertyNode

public abstract class RdfsNode
extends Node

A node for RDFS graph

Author:
Blanc, Yoan
Licence:
MIT
Copyright:
2005 Yoan Blanc, HE-ARC Ing�nierie

Field Summary
private  GraphPanel graph
          RdfsGraph
private  RdfsResource resource
          RFDS Resource
 
Fields inherited from class ch.hearc.I04_05s08.GUI.Graph.Node
 
Fields inherited from class ch.hearc.I04_05s08.GUI.Graph.Element
 
Constructor Summary
RdfsNode(RdfsResource res)
          Build a rdfs node
 
Method Summary
 RdfsResource getResource()
          Get the RDFS Resource
 void setComment(String comment)
          Set the comment of the resource
 void setLabel(String label)
          Set the label of the resource
 void setName(String url)
          Set the url of the resource
 void showDialog(GraphPanel graph)
          Display a dialog box for this node
 void update()
          Update the node
 
Methods inherited from class ch.hearc.I04_05s08.GUI.Graph.Node
calcDimension, contains, draw, drawTitle, getBounds, getGravityPoint, getPoint, getProximityPoint, setPos
 
Methods inherited from class ch.hearc.I04_05s08.GUI.Graph.Element
clone, getBackgroundColor, getForegroundColor, getGraph, getPadding, getTitle, isSelected, select, setBackgroundColor, setForegroundColor, setPadding, setSelectedBackgroundColor, setSelectedForegroundColor, setTitle
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource

private RdfsResource resource
RFDS Resource


graph

private GraphPanel graph
RdfsGraph

Constructor Detail

RdfsNode

public RdfsNode(RdfsResource res)
Build a rdfs node

Parameters:
res - the RDFS Resource
Method Detail

getResource

public RdfsResource getResource()
Get the RDFS Resource

Returns:
RDFS Resource

setName

public void setName(String url)
Set the url of the resource

Parameters:
url - resource's url

setLabel

public void setLabel(String label)
Set the label of the resource

Parameters:
label - resource's title

setComment

public void setComment(String comment)
Set the comment of the resource

Parameters:
comment - resource's label

showDialog

public void showDialog(GraphPanel graph)
Display a dialog box for this node

Overrides:
showDialog in class Element
Parameters:
graph - the graph

update

public void update()
Update the node

Overrides:
update in class Node


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