|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--quoggles.QGraph
| Field Summary | |
private java.util.Collection |
boxReps
All BoxRepresentations that appear in the active query graph |
private java.util.Set |
inputNodes
Holds all nodes that belong to input boxes |
static int |
nextBoxNr
Distinct number for the boxes |
private QMain |
qMain
Used to communicate between the individual parts of the system |
private org.graffiti.graph.Graph |
queryGraph
The graph underlying the query boxes |
| Constructor Summary | |
QGraph(QMain q)
|
|
| Method Summary | |
org.graffiti.graph.Node |
addBoxRep(BoxRepresentation boxRep,
org.graffiti.graph.Node boxNode)
|
BoxRepresentation |
addGraphInputBox()
Add graph input box to system. |
IBox |
addSelectionInputBox()
Add graph input box to system. |
java.util.Set |
getInputNodes()
|
org.graffiti.graph.Graph |
getQueryGraph()
|
void |
removeBox(IBox box)
|
void |
removeInputBox(IBox box)
|
void |
repChanged(RepChangeEvent event)
Called when a BoxRepresentation changed. |
void |
reset()
|
void |
setQueryGraph(org.graffiti.graph.Graph qGraph)
Set a new query graph. |
private void |
updateQueryGraph(org.graffiti.graph.Graph newQueryGraph)
Add boxes etc. according to given graph. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private QMain qMain
private org.graffiti.graph.Graph queryGraph
private java.util.Collection boxReps
public static int nextBoxNr
private java.util.Set inputNodes
| Constructor Detail |
public QGraph(QMain q)
| Method Detail |
public BoxRepresentation addGraphInputBox()
public org.graffiti.graph.Node addBoxRep(BoxRepresentation boxRep,
org.graffiti.graph.Node boxNode)
public void reset()
public void repChanged(RepChangeEvent event)
RepChangeListenerBoxRepresentation changed. Source of the
given event should be the BoxRepresentation that initiated the event.
repChanged in interface RepChangeListenerevent - RepChangeListener.repChanged(quoggles.event.RepChangeEvent)public IBox addSelectionInputBox()
public void removeInputBox(IBox box)
public void removeBox(IBox box)
public org.graffiti.graph.Graph getQueryGraph()
public void setQueryGraph(org.graffiti.graph.Graph qGraph)
throws LoadFailedException
This method calls reset() prior to setting the new graph.
Afterwards it uses updateQueryGraph(Graph) to update local
information.
checkConnections(boolean) is not called.
LoadFailedExceptionpublic java.util.Set getInputNodes()
private void updateQueryGraph(org.graffiti.graph.Graph newQueryGraph)
throws LoadFailedException
newQueryGraph - new query graph
LoadFailedException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||