|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectaminePlatform.guis.graphDrawing.VisualNode
Title : VisualNode
Description : VisualNode represents a node in VisualGraph, both are visual wrappers for Node and Graph respectively: a VisualNode contains a reference to a Node with visual attributes and methods. In this way, visualization (or drawing) of a Graph is separeted from the structure Graph.
Copyright : Copyright (c) Adil KABBAJ 2004-2009
| Field Summary | |
boolean |
isBrowserView
|
| Constructor Summary | |
VisualNode()
Create a VisualNode |
|
VisualNode(Node node)
Create a VisualNode for the specified Node |
|
| Method Summary | |
void |
addIncomeEdge(VisualEdge vedge)
Add the specified visualEdge to the income visualEdges of the current VisualNode |
void |
addOutcomeEdge(VisualEdge vedge)
Add the specified visualEdge to the outcome visualEdges of the current VisualNode |
(package private) void |
computeRectangle(java.lang.String contenu,
java.awt.Point pt)
Compute the rectangle that will enclose the current VisualNode, according to the specified content sConcText, and having as leftTopPoint the specified point pt. |
VisualNode |
copy()
Copy the current VisualNode |
void |
deplOffSet(java.awt.Point point)
Do a translation of the current VisualNode according to the specified point |
java.lang.Object |
getCellWrapper()
CODE ADDED BY Nabil OURDANI -*-*-*-*-*-*-*-*-*-*-*-*-*-*-* /** Get the CELL_WRAPPER values associated to the current VisualNode |
java.util.ArrayList |
getChild()
CODE ADDED BY Nabil OURDANI -*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Get all child linked to the current VisualNode |
Int_DisplayFrame |
getDisplayFrame()
Get the display frame associated to the current VisualNode |
java.util.ArrayList |
getIncomeEdges()
Get the income visual edges linked to the current VisualNode |
Node |
getNode()
Get the node associated to the current VisualNode |
java.awt.Rectangle |
getoriginalRectangle()
|
java.util.ArrayList |
getOutcomeEdges()
Get the outcome visual edges linked to the current VisualNode |
java.util.ArrayList |
getParents()
|
java.awt.Rectangle |
getRectangle()
Get the rectangle that encloses the current VisualNode |
int |
getScale()
Get the VisualNode scale (associated with the zoom option only) |
boolean |
getSelected()
/*This part of code is added by Nabil OURDANI for the purpose of automatic / drawing of ONTOLOGY by SYGIYAMA ALGORITHM * /** Get the Selected associated to the current VisualNode |
boolean |
getVisited()
CODE ADDED BY Nabil OURDANI -*-*-*-*-*-*-*-*-*-*-*-*-*-*-* /** Get the Visited values associated to the current VisualNode |
boolean |
hasContentToDisplay()
Check if the current VisualNode has a content to display (in a special frame) or not. |
boolean |
isInTracker(java.awt.Rectangle rct)
Check if the rectangle of the current VisualNode is contained in the specified rectangle. |
void |
move(int dx,
int dy)
Translate the rectangle of the current VisualNode according to the specified dx and dy |
(package private) void |
move(java.awt.Point offSet,
java.util.ArrayList selectedVNodes,
Lexicon lexicon)
Move selected vnodes according to the offset offSet. |
void |
moveAVNode(java.awt.Point p,
Lexicon lexicon)
Do a translation of the current VisualNode according to the specified point and update the related visualEdges |
void |
setCellWrapper(java.lang.Object cellwrapper)
CODE ADDED BY Nabil OURDANI -*-*-*-*-*-*-*-*-*-*-*-*-*-*-* /** Set the CELL_WRAPPER value associated to the current VisualNode |
void |
setDisplayFrame(Int_DisplayFrame displayFrame)
Set the display frame associated to the current VisualNode |
void |
setIncomeEdges(java.util.ArrayList vedges)
Set the income visual edges linked to the current VisualNode |
void |
setNode(Node node)
Set the node associated to the current VisualNode |
void |
setoriginalRectangle(java.awt.Rectangle rect)
|
void |
setOutcomeEdges(java.util.ArrayList vedges)
Set the outcome visual edges linked to the current VisualNode |
void |
setRectangle(java.awt.Graphics g,
Lexicon lexicon)
/** Determine (compute) and then set the rectangle that encloses the current VisualNode |
void |
setRectangle(java.awt.Rectangle rectangle)
Set the rectangle that encloses the current VisualNode |
void |
setScale(int scale)
set the VisualNode scale (associated with the zoom option only) |
void |
setSelected(boolean selected)
CODE ADDED BY Nabil OURDANI -*-*-*-*-*-*-*-*-*-*-*-*-*-*-* /** Set the Selected associated to the current VisualNode |
void |
setVisited(boolean visited)
CODE ADDED BY Nabil OURDANI -*-*-*-*-*-*-*-*-*-*-*-*-*-*-* /** Set the Visited value associated to the current VisualNode |
void |
setVisualRectangle(java.awt.Rectangle rectangle)
|
java.lang.String |
toString(Lexicon lexicon)
Return the string that formulate the content of the node associated to the current VisualNode |
void |
updateEdges(java.awt.Point pOff,
java.util.ArrayList lstSelec,
Lexicon lexicon)
Update income and outcome edges of a visual node. |
void |
updateRectangle(java.awt.Rectangle rct,
Lexicon lexicon)
Update the rectangle of the current VisualNode, using the specified rectangle and update the related VisualEdges that are related to the current VisualNode. |
void |
updateRelatedVEdges(java.awt.Point offp,
boolean deplacement,
Lexicon lexicon)
Update the VisualEdges that are related to the current VisualNode according to the specified point offp. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean isBrowserView
| Constructor Detail |
public VisualNode()
public VisualNode(Node node)
node - A Node| Method Detail |
public VisualNode copy()
public Node getNode()
public void setNode(Node node)
node - A Nodepublic java.awt.Rectangle getRectangle()
public java.awt.Rectangle getoriginalRectangle()
public void setoriginalRectangle(java.awt.Rectangle rect)
public void setRectangle(java.awt.Rectangle rectangle)
rectangle - A Rectanglepublic void setVisualRectangle(java.awt.Rectangle rectangle)
public boolean getSelected()
public void setSelected(boolean selected)
selected - public boolean getVisited()
public void setVisited(boolean visited)
visited - public java.lang.Object getCellWrapper()
public void setCellWrapper(java.lang.Object cellwrapper)
public void setRectangle(java.awt.Graphics g,
Lexicon lexicon)
g - A Graphicslexicon - A Lexiconpublic java.util.ArrayList getIncomeEdges()
public void setIncomeEdges(java.util.ArrayList vedges)
vedges - An ArrayList of VisualEdgepublic java.util.ArrayList getOutcomeEdges()
public void setOutcomeEdges(java.util.ArrayList vedges)
vedges - An ArrayList of VisualEdgepublic java.util.ArrayList getChild()
public java.util.ArrayList getParents()
public void addIncomeEdge(VisualEdge vedge)
vedge - A VisualEdgepublic void addOutcomeEdge(VisualEdge vedge)
vedge - A VisualEdgepublic boolean hasContentToDisplay()
public Int_DisplayFrame getDisplayFrame()
public void setDisplayFrame(Int_DisplayFrame displayFrame)
displayFrame - An Int_DisplayFramepublic java.lang.String toString(Lexicon lexicon)
lexicon - A Lexicon
public void deplOffSet(java.awt.Point point)
point - A Point
public void moveAVNode(java.awt.Point p,
Lexicon lexicon)
p - A Pointlexicon - A Lexison
public void updateEdges(java.awt.Point pOff,
java.util.ArrayList lstSelec,
Lexicon lexicon)
pOff - Point pOff specifies the deplacement to performlstSelec - An ArrayList of selected vnodes that are concerned by the deplacementlexicon - A Lexisonpublic boolean isInTracker(java.awt.Rectangle rct)
rct - A Rectangle
void move(java.awt.Point offSet,
java.util.ArrayList selectedVNodes,
Lexicon lexicon)
offSet - A PointselectedVNodes - An ArrayList of VisualNodeslexicon - A Lexicon
public void move(int dx,
int dy)
dx - dy -
public void updateRelatedVEdges(java.awt.Point offp,
boolean deplacement,
Lexicon lexicon)
offp - A Pointdeplacement - A Boolean. True if the current change a consequence of a deplacement.lexicon - A Lexiconpublic int getScale()
public void setScale(int scale)
scale - int
void computeRectangle(java.lang.String contenu,
java.awt.Point pt)
contenu - A Stringpt - A Point
public void updateRectangle(java.awt.Rectangle rct,
Lexicon lexicon)
rct - A Rectanglelexicon - A Lexicon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||