|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--quoggles.QMain
Main component. it delegats work to and communicates with several others.
| Field Summary | |
private QAuxiliary |
qAux
|
private QGraphConnect |
qConnect
|
private QDialog |
qDialog
|
private QGraph |
qGraph
|
private QGraphMouse |
qMouse
|
private QRunQuery |
qRunQuery
|
private QResultDialog |
resultTableDialog
The dialog holding the result table |
private IBox |
selInputBox
|
| Constructor Summary | |
QMain()
|
|
| Method Summary | |
void |
addBox()
|
void |
addBox(IBoxIcon boxIcon)
|
org.graffiti.graph.Node |
addBoxRep(BoxRepresentation boxRep)
Calls addBoxRep(boxRep, null); |
org.graffiti.graph.Node |
addBoxRep(BoxRepresentation boxRep,
org.graffiti.graph.Node boxNode)
Adds a BoxRepresentation to the panel, the query graph
and all relevant lists. |
void |
checkConnections(boolean addEdges)
|
void |
checkSelectionInputBox()
|
void |
clearQuery()
|
void |
close()
|
private static org.graffiti.graph.Graph |
createExampleGraph(org.graffiti.attributes.AttributeConsumer ac)
Create a small example graph to work on when in standalone mode. |
QDialog |
getDialog()
Returns the main dialog. |
org.graffiti.attributes.CollectionAttribute |
getEdgeAttribute()
|
org.graffiti.attributes.CollectionAttribute |
getGraphAttribute()
|
javax.swing.JPanel |
getMainPanel()
|
org.graffiti.attributes.CollectionAttribute |
getNodeAttribute()
|
org.graffiti.graph.Graph |
getQueryGraph()
Returns the query graph. |
void |
loadQuery()
|
static void |
main(java.lang.String[] args)
main method for debugging purposes and
start of standalone mode. |
void |
removeBoxRep(BoxRepresentation boxRep)
Removes a BoxRepresentation from the panel, the query graph
and all relevant lists. |
void |
reset()
Reset the query system. |
void |
runQuery()
|
void |
runQueryInFollowMode(java.awt.Point pt)
|
void |
saveQuery()
|
void |
saveSubQuery()
|
void |
selectionChanged(org.graffiti.selection.SelectionEvent e)
Calls checkSelectionInputBox() to see if a selection
InputBox must be added /removed. |
void |
selectionListChanged(org.graffiti.selection.SelectionEvent e)
Delegates to selectionChanged. |
void |
sessionChanged(org.graffiti.session.Session s)
Sets the graph from the new session via setGraph(s.getGraph()). |
void |
sessionDataChanged(org.graffiti.session.Session s)
Sets the graph from the changed session via setGraph(s.getGraph()). |
void |
setFollowMode(boolean isFMOn)
|
void |
setGraph(org.graffiti.graph.Graph graph)
Set a new graph on which the query will work. |
void |
setPlaceFreely(boolean isPFOn)
|
void |
showQDialog(boolean modal)
Show the main dialog. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private QResultDialog resultTableDialog
private QDialog qDialog
private QGraph qGraph
private QGraphMouse qMouse
private QGraphConnect qConnect
private QAuxiliary qAux
private QRunQuery qRunQuery
private IBox selInputBox
| Constructor Detail |
public QMain()
| Method Detail |
public void setGraph(org.graffiti.graph.Graph graph)
graph - public org.graffiti.graph.Graph getQueryGraph()
public javax.swing.JPanel getMainPanel()
public void runQueryInFollowMode(java.awt.Point pt)
public QDialog getDialog()
public void showQDialog(boolean modal)
public void checkSelectionInputBox()
public void checkConnections(boolean addEdges)
public void reset()
public void runQuery()
throws QueryExecutionException
QueryExecutionExceptionpublic void close()
public void saveQuery()
throws java.io.IOException
java.io.IOException
public void loadQuery()
throws LoadFailedException
LoadFailedException
public void saveSubQuery()
throws QueryExecutionException,
java.io.IOException
QueryExecutionException
java.io.IOExceptionpublic void clearQuery()
public void addBox()
public void setPlaceFreely(boolean isPFOn)
public void setFollowMode(boolean isFMOn)
public void addBox(IBoxIcon boxIcon)
public void sessionChanged(org.graffiti.session.Session s)
setGraph(s.getGraph()).
sessionChanged in interface org.graffiti.session.SessionListener(org.graffiti.session.Session)public void sessionDataChanged(org.graffiti.session.Session s)
setGraph(s.getGraph()).
sessionDataChanged in interface org.graffiti.session.SessionListener(org.graffiti.session.Session)public void selectionChanged(org.graffiti.selection.SelectionEvent e)
checkSelectionInputBox() to see if a selection
InputBox must be added /removed.
selectionChanged in interface org.graffiti.selection.SelectionListener(org.graffiti.selection.SelectionEvent)public void selectionListChanged(org.graffiti.selection.SelectionEvent e)
selectionChanged.
selectionListChanged in interface org.graffiti.selection.SelectionListener(org.graffiti.selection.SelectionEvent)public void removeBoxRep(BoxRepresentation boxRep)
BoxRepresentation from the panel, the query graph
and all relevant lists.
boxRep - public org.graffiti.graph.Node addBoxRep(BoxRepresentation boxRep)
addBoxRep(boxRep, null);
boxRep - new representation
public org.graffiti.graph.Node addBoxRep(BoxRepresentation boxRep,
org.graffiti.graph.Node boxNode)
BoxRepresentation to the panel, the query graph
and all relevant lists. If the given node is null, a new
node is added to the query graph.
boxRep - new representationboxNode - the node associated with the boxpublic org.graffiti.attributes.CollectionAttribute getNodeAttribute()
getNodeAttribute in interface org.graffiti.attributes.AttributeConsumerAttributeConsumer.getNodeAttribute()public org.graffiti.attributes.CollectionAttribute getEdgeAttribute()
getEdgeAttribute in interface org.graffiti.attributes.AttributeConsumerAttributeConsumer.getEdgeAttribute()public org.graffiti.attributes.CollectionAttribute getGraphAttribute()
getGraphAttribute in interface org.graffiti.attributes.AttributeConsumerAttributeConsumer.getGraphAttribute()public static void main(java.lang.String[] args)
main method for debugging purposes and
start of standalone mode.
args - private static org.graffiti.graph.Graph createExampleGraph(org.graffiti.attributes.AttributeConsumer ac)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||