Deprecated API
Contents
-
Deprecated InterfacesInterfaceDescriptionCheck for instanceof
NucleotideGraphSequenceDocumentinstead.UsePluginPreferencesandGeneiousPlugin.getPluginPreferences()instead
-
Deprecated Classes
-
Deprecated Exception Classes
-
Deprecated FieldsFieldDescriptionno longer used by binning, replaced by
DocumentField.BINNING_FRAMEuseSequenceAnnotation.TYPE_CLONING_FRAGMENTinstead.replaced withSequenceAnnotation.TYPE_TRIMMED.Should only be used to check for legacy primers. To create new primers, instead useSequenceAnnotation.TYPE_PRIMER_BINDwithSequenceAnnotationInterval.Direction.rightToLeftthese are no longer createdfrom 7.0.0, this field is not added to new primer annotations
-
Deprecated MethodsMethodDescriptionuse
OptionsPanel.setVerticalSpacing(int, int)insteadthis isn't nice for the users. Don't use it.Geneious no longer supports resuming searchesGeneious no longer supports resuming searchesuse #duplicateDocumentAndDealWithReferencedDocumentsPlease useWritableDatabaseService.restoreDocuments(List, ProgressListener, boolean)to provide flexibility for running in headless modes.useAnnotatedPluginDocument.getFieldValue(DocumentField)withDocumentField.DESCRIPTION_FIELDto get the Description for the document.useDocumentUtilities.createAnnotatedPluginDocument(org.jdom.Element, ElementProvider, boolean)instead, where the final parameter of null is equivalent to assignNewURN==false orURN.generateUniqueLocalURN()for assignNewURN==trueuse getUniqueNameForDocument(String, WritableDatabaseService, Collection)use getUniqueNameForDocument(String, WritableDatabaseService, Collection)Under no circumstances should this method be used! Core Geneious is responsible for managing the strong references (and by extension, the lifespan) of allAnnotatedPluginDocumentin memory, even in the event of document-supplying services being removed (i.e. a network database logout event). Unloading documents from plugin code can cause serious data integrity issues within Geneious. For an in-depth explanation of document lifespan behaviour, seeAnnotatedPluginDocument's javadoc.equivalent to callingmerge(intervals, true)useSequenceAnnotationInterval.getReverse()instead.all cloud document URNs (as of Geneious 2022.2) return true fromURN.isLocal()and false from isCloud()usePluginUtilities.getClass(String)instead.Geneious tree documents no longer store the original source, so this method does nothing.this method no longer works and there is no replacement in the API. Sorry!this functionality is now supplied by operation historyUseAlignmentOperation.isLicensedOnly()instead.UseAssembler.isLicensedOnly()instead.Importers and exporters should not be restricted, all though this method still functions.Geneious no longer respects this as extensions are generally not case sensitiveImporters and exporters should not be restricted, all though this method still functions.UseDocumentViewerFactory.isLicensedOnly()instead.Please useGeneiousAction.isLicensedOnly()instead.Please useGeneiousAction.setLicensedOnly(boolean)instead.Please useGeneiousActionOptions.isLicensedOnly()instead.UseGeneiousActionOptions.setLicensedOnly(boolean)instead.GeneiousPreferences are the old style way of providing preferences. UseGeneiousPlugin.getPluginPreferences()instead which is more powerful and more consistent with other areas of the Geneious API.useGeneiousPlugin.getPluginPreferences()insteadUseGeneiousService.isLicensedOnly()instead.since API 4.201910 (Geneious 2019.1.0) useIcons.getOriginalIconForRetina()orIcons.getOriginalIcon()()}instead.the "free" version of Geneious no longer has a name, features are simply restricted when no license is active. Deprecated in API 4.600 (Geneious 6.0.0)the "free" version of Geneious no longer has a name, features are simply restricted when no license is active. Deprecated in API 4.600 (Geneious 6.0.0)UseLicense.isLicensed()instead.there never was and there will never be a premium version of Geneious. Deprecated in API 4.600 (Geneious 6.0.0)there never was and there will never be a premium version of Geneious. Deprecated in API 4.600 (Geneious 6.0.0)UseLicense.licensedOnlyButtonName(String)instead.UseLicense.licensedOnlyName(String)instead.there is no "Pro" version anymore, Geneious is Geneious. Consider usingGeneious.getName()instead. Deprecated in API 4.600 (Geneious 6.0.0)there is no "Pro" version anymore, Geneious is Geneious. Consider usingLicense.restrictedName(boolean)instead. Deprecated in API 4.600 (Geneious 6.0.0)Please instead useOptions.addCustomComponent(ComponentCreator)as Swing is not thread safe and Options are frequently constructed outside the Swing thread.UseOptions.isLicensedOnly()instead.UseOptions.Option.isLicensedOnly()instead.UseOptions.Option.setLicensedOnly(boolean)instead.UseOptions.OptionValue.isLicensedOnly()instead.UseOptions.OptionValue.setLicensedOnly(boolean)instead.UseOptions.setLicensedOnly(boolean)instead.usegenerateinstead. Create annotations from a set of documents. Note: The operation will be run in a non AWT thread. If you need to perform user interface interaction in addition to the options provided in the Options (for example prompting for user input) then you need to place this inside a ThreadUtilities.invokeAndWait() function call. WARNING: Geneious may call this method multiple times simultaneously. Therefore, any implementation should not store its internal state within instance fields.
WARNING: The default implementation of this method callsSequenceAnnotationGenerator.generate(com.biomatters.geneious.publicapi.documents.AnnotatedPluginDocument[], com.biomatters.geneious.publicapi.plugin.SequenceAnnotationGenerator.SelectionRange, jebl.util.ProgressListener, Options)but returns only the list of annotations, so any tracks, residue additions or deletions, and annotation deletions, and generated documents will not be respected. If you are invoking a SequenceAnnotationGenerator in another plugin, callSequenceAnnotationGenerator.generate(com.biomatters.geneious.publicapi.documents.AnnotatedPluginDocument[], com.biomatters.geneious.publicapi.plugin.SequenceAnnotationGenerator.SelectionRange, jebl.util.ProgressListener, Options)instead.UseSequenceGraph.isLicensedOnly()instead.This method causes ambiguity about whether the Alignment of Sequence aspect of aCombinedAlignmentAndSequenceDocumentis required so is no longer used on CombinedAlignmentAndSequenceDocuments. All implementations should instead implementSequenceGraphFactory.createDocumentBasedGraphForAlignment(com.biomatters.geneious.publicapi.documents.AnnotatedPluginDocument)orSequenceGraphFactory.createDocumentBasedGraphForSequence(com.biomatters.geneious.publicapi.documents.AnnotatedPluginDocument).useSequenceSelection.getIntervals(boolean)instead(Please use initializeAllPluginsInClasspath to only load plugins on the classpath)(Please use initializeAllPluginsInClasspath to only load plugins on the classpath)UseGeneious.isClient()insteadDo not callDo not callAs of Geneious 2021.0.0, all help buttons are created as non-small buttons. UseGuiUtilities.createHelpButton()instead.As of Geneious 2021.0.0, all help buttons are created as non-small buttons. UseGuiUtilities.createHelpButton(String, String)instead.As of Geneious 2021.0.0, Geneious applies the custom CSS formatting from this method across all HTML-formatted content to avoid formatting discrepancies.On Java 9 or above, the scale factor is always 1. Geneious ships with a bundled JRE that is always higher than Java 9, rendering this method effectively obsolete.usingInterval.getMaxExclusive()orInterval.getMaxInclusive()instead is recommended as the code is easier to understand and less likely to contain bugs.usingInterval.getToExclusive()()} orInterval.getToInclusive()()} instead is recommended as the code is easier to understand and less likely to contain bugs.String#String(int, int, char[]) no longer exists. UseString(char[])instead.String#String(int, int, char[]) no longer exists. UseString(char[], int, int)instead.always returns true as of Geneious 2020 and later. See https://help.geneious.com/hc/en-us/articles/360044627452-Windows-Users-Geneious-Prime-2020-and-above-will-not-support-32-bit-WindowsAs of version 2025.0.0 Geneious is Java 11 or later only, this will always return trueAs of version 2025.0.0 Geneious is Java 11 or later only, this will always return trueAs of version 6.0.0 Geneious is Java 6 or later only, this will always return trueAs of version 10.0.0 Geneious is Java 8 or later only, this will always return trueAs of version 10.0.0 Geneious is Java 8 or later only, this will always return trueAs of version 2025.0.0 Geneious is Java 11 or later only, this will always return truedoesn't work in open JDK. And a user could have multiple screens, one of which is retina, so doesn't always work correctly in other JDKs. UseSystemUtilities.isRetinaDisplay(Graphics2D)instead.Geneious is no longer supported on SolarisGeneious is no longer supported on SolarisGeneious is no longer supported on Solaris
-
Deprecated ConstructorsConstructorDescriptionTo change the text alignment use
AlertPanel(TextAlign), changing gaps is no longer supported.useProgressFrame(String, String)insteaduseProgressFrame(String, String, java.awt.Window)insteadConstructGeneiousActionOptionsfirst then use constructorGeneiousAction(GeneiousActionOptions)instead.Use other constructors in combination with setters insteaduseSelectionInterval(SequenceIndex, int, int)instead
-
Deprecated Enum ConstantsEnum ConstantDescriptionthe pro menu no longer exists, do not use.equivalent to
ImportUtilities.ImportDocumentType.AlignmentForcedequivalent toImportUtilities.ImportDocumentType.AskUserIfAmbiguousequivalent toImportUtilities.ImportDocumentType.SequencesForced