|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ch.hearc.I04_05s08.GUI.Graph.GraphPanel
ch.hearc.I04_05s08.GUI.RDF.RdfGraph
The graph for a RDF
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private Color[][] |
colors
Colors |
private RdfFile |
file
RDF |
private JTextPane |
tp
Source display |
private JTree |
tree
the tree |
Fields inherited from class ch.hearc.I04_05s08.GUI.Graph.GraphPanel |
ARROW_MODE, NO_MODE, NODE_MODE |
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
RdfGraph(RdfFile file)
Build |
|
RdfGraph(RdfFile file,
JTextPane textpane)
Build |
|
RdfGraph(String name)
Build |
Method Summary | |
boolean |
add(Element e)
Add an Element to the graph |
boolean |
add(RdfArrow a)
Add a RDF arrow |
boolean |
add(RdfArrow[] a)
Add RDFS arrows |
boolean |
add(RdfNode n)
Add a RDF node |
boolean |
add(RdfNode[] n)
Add RDF nodes |
void |
addColor(Color[] color)
Add a color for (RDF Schema) The need to be in the same order of the RDF Schema into the RDF file. |
boolean |
del(Element e)
Add an Element to the graph |
boolean |
del(RdfArrow a)
Remove an arrow |
boolean |
del(RdfArrow[] a)
Remove some arrows |
boolean |
del(RdfNode n)
Delete a node from the schema |
boolean |
del(RdfNode[] n)
Delete nodes from the schema |
RdfArrow |
getArrow(InstanceOfProperty iop)
Build an arrow for the specified property (usefull to have to right color) |
RdfNode |
getNode(InstanceOfClass ioc)
Get the node |
void |
redraw()
Redraw |
void |
setTree(JTree tree)
Set the tree |
void |
update()
Update the graph |
Methods inherited from class ch.hearc.I04_05s08.GUI.Graph.GraphPanel |
add, add, add, add, del, del, del, del, getFile, getMode, getNodes, getOldSelectedElement, getPreferredSize, getSelectedElement, modeAction, moveTo, paintComponent, select, setDrawingElement, setFile, setMode, setMousePos, showDialog |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private RdfFile file
private JTree tree
private JTextPane tp
private Color[][] colors
Constructor Detail |
public RdfGraph(RdfFile file, JTextPane textpane)
file
- RDFtextpane
- text area for displaying sourcespublic RdfGraph(RdfFile file)
file
- RDFpublic RdfGraph(String name)
name
- filename of the RDFMethod Detail |
public boolean add(RdfNode n)
n
- Nodepublic boolean add(RdfNode[] n)
n
- Nodespublic boolean add(RdfArrow a)
a
- Arrowpublic boolean add(RdfArrow[] a)
a
- Arrowpublic boolean add(Element e)
add
in class GraphPanel
e
- the elementpublic boolean del(RdfArrow a)
a
- arrow
public boolean del(RdfNode n)
n
- the nodepublic boolean del(RdfNode[] n)
n
- some nodespublic boolean del(RdfArrow[] a)
a
- arrows
public boolean del(Element e)
del
in class GraphPanel
e
- the elementpublic void update()
public void redraw()
redraw
in class GraphPanel
public RdfNode getNode(InstanceOfClass ioc)
ioc
- the instance of class
public RdfArrow getArrow(InstanceOfProperty iop)
iop
- the instance of property
public void setTree(JTree tree)
tree
- the treepublic void addColor(Color[] color)
color
- color
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A project by Blanc, Yoan – supervised by Dr. Ghorbel, Hatem.
2004 © Blanc, Yoan - HE-ARC