ch.hearc.I04_05s08.GUI.RDF
Class RdfArrow

java.lang.Object
  extended bych.hearc.I04_05s08.GUI.Graph.Element
      extended bych.hearc.I04_05s08.GUI.Graph.Arrow
          extended bych.hearc.I04_05s08.GUI.RDF.RdfArrow

public class RdfArrow
extends Arrow

RdfsArrow, an arrow for a RDF graph

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

Field Summary
private  RdfArrowDialog dialog
          The dialog
private  InstanceOfProperty iop
          The property instanciated
 
Fields inherited from class ch.hearc.I04_05s08.GUI.Graph.Arrow
 
Fields inherited from class ch.hearc.I04_05s08.GUI.Graph.Element
 
Constructor Summary
RdfArrow(InstanceOfProperty iop)
          Init the arrow
RdfArrow(InstanceOfProperty iop, RdfNode from, RdfNode to)
          Init the arrow
RdfArrow(RdfArrow a)
          Build a copy
 
Method Summary
 Object clone()
          Return a clone
 void drawLine(Graphics2D g2d)
          Draw the line and the arrow
 InstanceOfProperty getInstanceOfProperty()
          Return the instance
 boolean setNodes(RdfNode from, RdfNode to)
          Set the nodes
 void showDialog(GraphPanel graph)
          Display a dialog box for this node
 boolean unconnect()
          Disconnect the arrow from its nodes
 void update()
          Update the arc
 
Methods inherited from class ch.hearc.I04_05s08.GUI.Graph.Arrow
calcLine, contains, draw, drawTitle, getAngle, getContactPoints, getLine, getNodes, setArrow, setNodes
 
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

iop

private InstanceOfProperty iop
The property instanciated


dialog

private RdfArrowDialog dialog
The dialog

Constructor Detail

RdfArrow

public RdfArrow(InstanceOfProperty iop,
                RdfNode from,
                RdfNode to)
Init the arrow

Parameters:
iop - the instance of property
from - the node from
to - the node to

RdfArrow

public RdfArrow(InstanceOfProperty iop)
Init the arrow


RdfArrow

public RdfArrow(RdfArrow a)
Build a copy

Parameters:
a - arrow
Method Detail

clone

public Object clone()
Return a clone

Specified by:
clone in class Element
Returns:
the cone

setNodes

public boolean setNodes(RdfNode from,
                        RdfNode to)
Set the nodes

Parameters:
from - from node
to - to node

getInstanceOfProperty

public InstanceOfProperty getInstanceOfProperty()
Return the instance

Returns:
the instance

unconnect

public boolean unconnect()
Disconnect the arrow from its nodes

Overrides:
unconnect in class Arrow
Returns:
true (always, cause there is nothing to do here)

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 arc

Overrides:
update in class Element

drawLine

public void drawLine(Graphics2D g2d)
Draw the line and the arrow

Overrides:
drawLine in class Arrow
Parameters:
g2d - the graphic context


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