ch.hearc.I04_05s08.GUI.RDF
Class RdfResource

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.RDF.RdfNode
              extended bych.hearc.I04_05s08.GUI.RDF.RdfResource

public class RdfResource
extends RdfNode

A node for RDFS graph

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

Field Summary
private  Ellipse2D ellipse
          The ellipse (instead of a rectangle)
 
Fields inherited from class ch.hearc.I04_05s08.GUI.RDF.RdfNode
 
Fields inherited from class ch.hearc.I04_05s08.GUI.Graph.Node
 
Fields inherited from class ch.hearc.I04_05s08.GUI.Graph.Element
 
Constructor Summary
RdfResource(InstanceOfClass ioc)
          Build a rdf node
RdfResource(RdfResource rdfr)
          Build a copy
 
Method Summary
 void calcDimension(Graphics2D g2d)
          Calculate the dimension of the node
 Object clone()
          Return a clone
 boolean contains(Point2D p)
          Test if the RDFS Property contains the point
 void draw(Graphics2D g2d)
          Draw the Node
 Point2D getProximityPoint(Point2D p, Graphics2D g2d)
          Get the point touching the node between the givent point and the middle of the node
 void showDialog(GraphPanel graph)
          Display a dialog box for this node
 
Methods inherited from class ch.hearc.I04_05s08.GUI.RDF.RdfNode
getInstanceOfClass, setValue, update
 
Methods inherited from class ch.hearc.I04_05s08.GUI.Graph.Node
drawTitle, getBounds, getGravityPoint, getPoint, setPos
 
Methods inherited from class ch.hearc.I04_05s08.GUI.Graph.Element
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

ellipse

private Ellipse2D ellipse
The ellipse (instead of a rectangle)

Constructor Detail

RdfResource

public RdfResource(InstanceOfClass ioc)
Build a rdf node

Parameters:
ioc - the instance of class

RdfResource

public RdfResource(RdfResource rdfr)
Build a copy

Parameters:
rdfr - rdf resource node
Method Detail

showDialog

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

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

calcDimension

public void calcDimension(Graphics2D g2d)
Calculate the dimension of the node

Overrides:
calcDimension in class Node
Parameters:
g2d - graphic context

clone

public Object clone()
Return a clone

Specified by:
clone in class Element
Returns:
the cone

draw

public void draw(Graphics2D g2d)
Draw the Node

Overrides:
draw in class Node
Parameters:
g2d - Graphic context

contains

public boolean contains(Point2D p)
Test if the RDFS Property contains the point

Overrides:
contains in class Node
Parameters:
p - the point
Returns:
if the Property contains this point

getProximityPoint

public Point2D getProximityPoint(Point2D p,
                                 Graphics2D g2d)
Get the point touching the node between the givent point and the middle of the node

Overrides:
getProximityPoint in class Node
Parameters:
p - distant point
g2d - graphic context
Returns:
the closest point of the point touching the node


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