Skip to main content

SequenceGraph customization

Comments

4 comments

  • Geneious Team

    Hi Adrian,

    The value returned from getOptions() is one of our standard Geneious classes.  The JavaDoc has many examples of how to construct one with different parameter types.  See https://assets.geneious.com/developer/geneious/javadoc/latest/index.html?com/biomatters/geneious/publicapi/plugin/Options.html

    Here is a very simple example of one with a checkbox:

    options = new Options(getClass());
    checkboxOption = options.addBooleanOption("name", "label", true);
    0
  • Adrian

    Hi Guys,

    I already did that, I was just asking how to get the size default option and also wondering about this long running calculation.

     

    Thank you

     

    0
  • Geneious Team

    Hi Adrian,

    Hmmm I'm not sure what happened with you original question.  It came through yesterday asking about the Options.  Sorry about the confusion.

    To answer your question about the background calculations.  Store the calculated values in a field in your SeqeunceGraph.  Do the calculation in your implementation of SequenceGraph.performBackgroundCalculations() and make sure you are checking the progressListener for cancellation.

    Geneious will call setResidues() on your SequenceGraph if the sequence changes and will then subsequently call performBackgroundCalculations().

    Your implementation of draw will not be called while the calculations are taking place.

    0
  • Adrian

    Thank you. I did that and it works most of the cases however there seem to be instances where draw is called before performBackround calculations is called and it ends with a NLP because the needed data model is not filled in.

    0

Please sign in to leave a comment.