|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.p2p.editor.KQueryMain.QueryEditorHelper
public class KQueryMain.QueryEditorHelper
Handle the event in which user has typed in keyword phrases that are used
for constructing the query trees. We support two basic phrases:
Field Summary | |
---|---|
(package private) java.lang.String |
defaultType
|
private static java.lang.String |
DELIM_LIST
|
private static java.lang.String |
DELIM_NAME
|
private static java.lang.String |
DELIM_PATH
|
private static java.lang.String |
DELIM_PC
|
private static java.lang.String |
DELIM_SPACE
|
private java.awt.Point |
kp
|
private static java.lang.String |
NAME_PRIME
|
private javax.swing.text.JTextComponent |
txtCom
|
(package private) static double |
vgap
|
Constructor Summary | |
---|---|
KQueryMain.QueryEditorHelper(javax.swing.text.JTextComponent txtCom)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Implements the ActionListener interface. |
private GNode |
addKeyword(java.lang.String w)
Process an input keyword name to either create it or retrieve it for data type update (if already exists). |
void |
addNewKeyword(GNode child,
GNode parent,
GraphUI gui)
Add a new keyword node, and connects it to an existing node |
void |
addNewKeyword(GNode nknode,
GraphUI gui)
Add a new keyword as a new node in the query graph. Draw the k-node, adds to the query graph and draw edges that connect this new k-node to all other nodes of the graph. |
GEdge |
addNewKeywordEdge(GNode child,
GNode parent,
GraphUI gui)
Add a k-edge between two existing k-nodes. |
void |
clear()
|
GNode |
getGNode(java.lang.String kw,
GraphUI gui)
Check if a keyword exists in the user graph. |
java.awt.Point |
getNextNodePoint(GraphUI gui)
Obtain the next point to draw a knode based on the points of the existing nodes. |
Graph |
getQuery()
Return the query object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.swing.text.JTextComponent txtCom
static final double vgap
private java.awt.Point kp
private static final java.lang.String DELIM_SPACE
private static final java.lang.String DELIM_PATH
private static final java.lang.String DELIM_NAME
private static final java.lang.String DELIM_PC
private static final java.lang.String DELIM_LIST
private static final java.lang.String NAME_PRIME
final java.lang.String defaultType
Constructor Detail |
---|
public KQueryMain.QueryEditorHelper(javax.swing.text.JTextComponent txtCom)
Method Detail |
---|
private GNode addKeyword(java.lang.String w)
w
-
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public GNode getGNode(java.lang.String kw, GraphUI gui)
kq
- gui
- public Graph getQuery()
public void addNewKeyword(GNode nknode, GraphUI gui)
kw
- gui
- public GEdge addNewKeywordEdge(GNode child, GNode parent, GraphUI gui)
child
- parent
- gui
- public void addNewKeyword(GNode child, GNode parent, GraphUI gui)
child
- existing
- gui
- public java.awt.Point getNextNodePoint(GraphUI gui)
public void clear()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |