ch.hearc.I04_05s08.GUI.RDFS
Class RdfsDomain

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

public class RdfsDomain
extends RdfsArrow

The extend arrow between two RdfsNode

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

Field Summary
 
Fields inherited from class ch.hearc.I04_05s08.GUI.Graph.Arrow
 
Fields inherited from class ch.hearc.I04_05s08.GUI.Graph.Element
 
Constructor Summary
RdfsDomain()
          Init the arrow
RdfsDomain(RdfsNode from, RdfsNode to)
          Init the arrow
 
Method Summary
 Object clone()
          Clone me
 void drawLine(Graphics2D g2d)
          Draw the line and the arrow
 boolean setNodes(RdfsNode from, RdfsNode to)
          Set the nodes for the set of the domain
 boolean unconnect()
          Disconnect the sub and sup
 
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, showDialog, update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdfsDomain

public RdfsDomain()
Init the arrow


RdfsDomain

public RdfsDomain(RdfsNode from,
                  RdfsNode to)
Init the arrow

Parameters:
from - RdfsNode from
to - RdfsNode to
Method Detail

clone

public Object clone()
Clone me

Specified by:
clone in class Element
Returns:
the clone

setNodes

public boolean setNodes(RdfsNode from,
                        RdfsNode to)
Set the nodes for the set of the domain

Overrides:
setNodes in class RdfsArrow
Parameters:
from - the from node
to - the to node
Returns:
if the nodes are valid (together)

drawLine

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

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

unconnect

public boolean unconnect()
Disconnect the sub and sup

Overrides:
unconnect in class Arrow
Returns:
the success of operation


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