ch.hearc.I04_05s08.GUI.RDFS
Class RdfsPropertyNode

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
              extended bych.hearc.I04_05s08.GUI.RDFS.RdfsPropertyNode

public class RdfsPropertyNode
extends RdfsNode

Node for a RDFS Property

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.RDFS.RdfsNode
 
Fields inherited from class ch.hearc.I04_05s08.GUI.Graph.Node
 
Fields inherited from class ch.hearc.I04_05s08.GUI.Graph.Element
 
Constructor Summary
RdfsPropertyNode(RdfsProperty property)
          Build the property node
RdfsPropertyNode(RdfsPropertyNode p)
          Build the property node
 
Method Summary
 void calcDimension(Graphics2D g2d)
          Calculate the dimension of the node
 Object clone()
          Clone the class node
 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
 
Methods inherited from class ch.hearc.I04_05s08.GUI.RDFS.RdfsNode
getResource, setComment, setLabel, setName, showDialog, 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

RdfsPropertyNode

public RdfsPropertyNode(RdfsProperty property)
Build the property node

Parameters:
property - the rdfs property attached

RdfsPropertyNode

public RdfsPropertyNode(RdfsPropertyNode p)
Build the property node

Parameters:
p - the rdfs property attached
Method Detail

clone

public Object clone()
Clone the class node

Specified by:
clone in class Element
Returns:
the clone

calcDimension

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

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

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