public static final int STATE_QUEUING = 0;\r
public static final int STATE_RUNNING = 1;\r
public static final int STATE_STOPPED_OK = 2;\r
- public static final int STATE_STOPPED_ERROR = 3;\r
+ public static final int STATE_CANCELLED_OK = 3;\r
+ public static final int STATE_STOPPED_ERROR = 4;\r
int currentStatus = STATE_QUEUING;\r
Image image;\r
int angle = 0;\r
{\r
if (!serviceIsCancellable)\r
JOptionPane.showInternalMessageDialog(Desktop.desktop,\r
- "Cancel not implemented yet!!" ,\r
+ "This job cannot be cancelled." ,\r
"Cancel job"\r
,JOptionPane.WARNING_MESSAGE);\r
else\r
case STATE_STOPPED_OK:\r
g.drawString(title.concat(" - complete"), 60, 30);\r
break;\r
+\r
+ case STATE_CANCELLED_OK:\r
+ g.drawString(title.concat(" - job cancelled!"), 60, 30);\r
+ break;\r
+\r
case STATE_STOPPED_ERROR:\r
g.drawString(title.concat(" - error!"), 60, 30);\r
break;\r
Vector conf;
Hashtable Scores; // Hash of names and score vectors
Hashtable Symscores; // indexes of symbol annotation properties in sequenceI vector
+ private int QuerySeqPosition = -1;
+ public void setQuerySeqPosition(int QuerySeqPosition)
+ {
+ this.QuerySeqPosition = QuerySeqPosition;
+ }
+
+ public int getQuerySeqPosition()
+ {
+ return QuerySeqPosition;
+ }
+ public Hashtable getScores() {
+ return Scores;
+ }
+ public Hashtable getSymscores() {
+ return Symscores;
+ }
+
public JPredFile(String inStr)
{
super(inStr);
/**
* parse a JPred concise file into a sequence-alignment like object.
*/
- int QuerySeqPosition;
public void parse()
throws IOException
{