*
* @see jalview.bin.JalviewLiteJsApi#getSelectedSequences()
*/
+ @Override
public String getSelectedSequences()
{
return getSelectedSequencesFrom(getDefaultTargetFrame());
*
* @see jalview.bin.JalviewLiteJsApi#getSelectedSequences(java.lang.String)
*/
+ @Override
public String getSelectedSequences(String sep)
{
return getSelectedSequencesFrom(getDefaultTargetFrame(), sep);
* jalview.bin.JalviewLiteJsApi#getSelectedSequencesFrom(jalview.appletgui
* .AlignFrame)
*/
+ @Override
public String getSelectedSequencesFrom(AlignFrame alf)
{
return getSelectedSequencesFrom(alf, separator); // ""+0x00AC);
* jalview.bin.JalviewLiteJsApi#getSelectedSequencesFrom(jalview.appletgui
* .AlignFrame, java.lang.String)
*/
+ @Override
public String getSelectedSequencesFrom(AlignFrame alf, String sep)
{
StringBuffer result = new StringBuffer("");
* @see jalview.bin.JalviewLiteJsApi#highlight(java.lang.String,
* java.lang.String, java.lang.String)
*/
+ @Override
public void highlight(String sequenceId, String position,
String alignedPosition)
{
* @see jalview.bin.JalviewLiteJsApi#highlightIn(jalview.appletgui.AlignFrame,
* java.lang.String, java.lang.String, java.lang.String)
*/
+ @Override
public void highlightIn(final AlignFrame alf, final String sequenceId,
final String position, final String alignedPosition)
{
* @see jalview.bin.JalviewLiteJsApi#select(java.lang.String,
* java.lang.String)
*/
+ @Override
public void select(String sequenceIds, String columns)
{
selectIn(getDefaultTargetFrame(), sequenceIds, columns, separator);
* @see jalview.bin.JalviewLiteJsApi#select(java.lang.String,
* java.lang.String, java.lang.String)
*/
+ @Override
public void select(String sequenceIds, String columns, String sep)
{
selectIn(getDefaultTargetFrame(), sequenceIds, columns, sep);
* @see jalview.bin.JalviewLiteJsApi#selectIn(jalview.appletgui.AlignFrame,
* java.lang.String, java.lang.String)
*/
+ @Override
public void selectIn(AlignFrame alf, String sequenceIds, String columns)
{
selectIn(alf, sequenceIds, columns, separator);
* @see jalview.bin.JalviewLiteJsApi#selectIn(jalview.appletgui.AlignFrame,
* java.lang.String, java.lang.String, java.lang.String)
*/
+ @Override
public void selectIn(final AlignFrame alf, String sequenceIds,
String columns, String sep)
{
* jalview.bin.JalviewLiteJsApi#getSelectedSequencesAsAlignment(java.lang.
* String, java.lang.String)
*/
+ @Override
public String getSelectedSequencesAsAlignment(String format, String suffix)
{
return getSelectedSequencesAsAlignmentFrom(getDefaultTargetFrame(),
* jalview.bin.JalviewLiteJsApi#getSelectedSequencesAsAlignmentFrom(jalview
* .appletgui.AlignFrame, java.lang.String, java.lang.String)
*/
+ @Override
public String getSelectedSequencesAsAlignmentFrom(AlignFrame alf,
String format, String suffix)
{
*
* @see jalview.bin.JalviewLiteJsApi#getAlignmentOrder()
*/
+ @Override
public String getAlignmentOrder()
{
return getAlignmentOrderFrom(getDefaultTargetFrame());
* jalview.bin.JalviewLiteJsApi#getAlignmentOrderFrom(jalview.appletgui.AlignFrame
* )
*/
+ @Override
public String getAlignmentOrderFrom(AlignFrame alf)
{
return getAlignmentOrderFrom(alf, separator);
* jalview.bin.JalviewLiteJsApi#getAlignmentOrderFrom(jalview.appletgui.AlignFrame
* , java.lang.String)
*/
+ @Override
public String getAlignmentOrderFrom(AlignFrame alf, String sep)
{
AlignmentI alorder = alf.getAlignViewport().getAlignment();
* @see jalview.bin.JalviewLiteJsApi#orderBy(java.lang.String,
* java.lang.String)
*/
+ @Override
public String orderBy(String order, String undoName)
{
return orderBy(order, undoName, separator);
* @see jalview.bin.JalviewLiteJsApi#orderBy(java.lang.String,
* java.lang.String, java.lang.String)
*/
+ @Override
public String orderBy(String order, String undoName, String sep)
{
return orderAlignmentBy(getDefaultTargetFrame(), order, undoName, sep);
* jalview.bin.JalviewLiteJsApi#orderAlignmentBy(jalview.appletgui.AlignFrame,
* java.lang.String, java.lang.String, java.lang.String)
*/
+ @Override
public String orderAlignmentBy(AlignFrame alf, String order,
String undoName, String sep)
{
*
* @see jalview.bin.JalviewLiteJsApi#getAlignment(java.lang.String)
*/
+ @Override
public String getAlignment(String format)
{
return getAlignmentFrom(getDefaultTargetFrame(), format, TRUE);
* jalview.bin.JalviewLiteJsApi#getAlignmentFrom(jalview.appletgui.AlignFrame,
* java.lang.String)
*/
+ @Override
public String getAlignmentFrom(AlignFrame alf, String format)
{
return getAlignmentFrom(alf, format, TRUE);
* @see jalview.bin.JalviewLiteJsApi#getAlignment(java.lang.String,
* java.lang.String)
*/
+ @Override
public String getAlignment(String format, String suffix)
{
return getAlignmentFrom(getDefaultTargetFrame(), format, suffix);
* jalview.bin.JalviewLiteJsApi#getAlignmentFrom(jalview.appletgui.AlignFrame,
* java.lang.String, java.lang.String)
*/
+ @Override
public String getAlignmentFrom(AlignFrame alf, String format,
String suffix)
{
*
* @see jalview.bin.JalviewLiteJsApi#loadAnnotation(java.lang.String)
*/
+ @Override
public void loadAnnotation(String annotation)
{
loadAnnotationFrom(getDefaultTargetFrame(), annotation);
* jalview.bin.JalviewLiteJsApi#loadAnnotationFrom(jalview.appletgui.AlignFrame
* , java.lang.String)
*/
+ @Override
public void loadAnnotationFrom(AlignFrame alf, String annotation)
{
if (new AnnotationFile().annotateAlignmentView(alf.getAlignViewport(),
*
* @see jalview.bin.JalviewLiteJsApi#loadAnnotation(java.lang.String)
*/
+ @Override
public void loadFeatures(String features, boolean autoenabledisplay)
{
loadFeaturesFrom(getDefaultTargetFrame(), features, autoenabledisplay);
* jalview.bin.JalviewLiteJsApi#loadAnnotationFrom(jalview.appletgui.AlignFrame
* , java.lang.String)
*/
+ @Override
public boolean loadFeaturesFrom(AlignFrame alf, String features,
boolean autoenabledisplay)
{
*
* @see jalview.bin.JalviewLiteJsApi#getFeatures(java.lang.String)
*/
+ @Override
public String getFeatures(String format)
{
return getFeaturesFrom(getDefaultTargetFrame(), format);
* jalview.bin.JalviewLiteJsApi#getFeaturesFrom(jalview.appletgui.AlignFrame,
* java.lang.String)
*/
+ @Override
public String getFeaturesFrom(AlignFrame alf, String format)
{
return alf.outputFeatures(false, format);
*
* @see jalview.bin.JalviewLiteJsApi#getAnnotation()
*/
+ @Override
public String getAnnotation()
{
return getAnnotationFrom(getDefaultTargetFrame());
* jalview.bin.JalviewLiteJsApi#getAnnotationFrom(jalview.appletgui.AlignFrame
* )
*/
+ @Override
public String getAnnotationFrom(AlignFrame alf)
{
return alf.outputAnnotations(false);
*
* @see jalview.bin.JalviewLiteJsApi#newView()
*/
+ @Override
public AlignFrame newView()
{
return newViewFrom(getDefaultTargetFrame());
*
* @see jalview.bin.JalviewLiteJsApi#newView(java.lang.String)
*/
+ @Override
public AlignFrame newView(String name)
{
return newViewFrom(getDefaultTargetFrame(), name);
*
* @see jalview.bin.JalviewLiteJsApi#newViewFrom(jalview.appletgui.AlignFrame)
*/
+ @Override
public AlignFrame newViewFrom(AlignFrame alf)
{
return alf.newView(null);
* @see jalview.bin.JalviewLiteJsApi#newViewFrom(jalview.appletgui.AlignFrame,
* java.lang.String)
*/
+ @Override
public AlignFrame newViewFrom(AlignFrame alf, String name)
{
return alf.newView(name);
* @see jalview.bin.JalviewLiteJsApi#loadAlignment(java.lang.String,
* java.lang.String)
*/
+ @Override
public AlignFrame loadAlignment(String text, String title)
{
AlignmentI al = null;
*
* @see jalview.bin.JalviewLiteJsApi#setMouseoverListener(java.lang.String)
*/
+ @Override
public void setMouseoverListener(String listener)
{
setMouseoverListener(currentAlignFrame, listener);
* jalview.bin.JalviewLiteJsApi#setMouseoverListener(jalview.appletgui.AlignFrame
* , java.lang.String)
*/
+ @Override
public void setMouseoverListener(AlignFrame af, String listener)
{
if (listener != null)
*
* @see jalview.bin.JalviewLiteJsApi#setSelectionListener(java.lang.String)
*/
+ @Override
public void setSelectionListener(String listener)
{
setSelectionListener(null, listener);
* jalview.bin.JalviewLiteJsApi#setSelectionListener(jalview.appletgui.AlignFrame
* , java.lang.String)
*/
+ @Override
public void setSelectionListener(AlignFrame af, String listener)
{
if (listener != null)
* @see jalview.bin.JalviewLiteJsApi#setStructureListener(java.lang.String,
* java.lang.String)
*/
+ @Override
public void setStructureListener(String listener, String modelSet)
{
if (listener != null)
* jalview.bin.JalviewLiteJsApi#removeJavascriptListener(jalview.appletgui
* .AlignFrame, java.lang.String)
*/
+ @Override
public void removeJavascriptListener(AlignFrame af, String listener)
{
if (listener != null)
}
}
+ @Override
public void stop()
{
System.err.println("Applet " + getName() + " stop().");
tidyUp();
}
+ @Override
public void destroy()
{
System.err.println("Applet " + getName() + " destroy().");
* @see jalview.bin.JalviewLiteJsApi#mouseOverStructure(java.lang.String,
* java.lang.String, java.lang.String)
*/
+ @Override
public void mouseOverStructure(final String pdbResNum,
final String chain, final String pdbfile)
{
* jalview.bin.JalviewLiteJsApi#scrollViewToIn(jalview.appletgui.AlignFrame,
* java.lang.String, java.lang.String)
*/
+ @Override
public void scrollViewToIn(final AlignFrame alf, final String topRow,
final String leftHandColumn)
{
add(launcher);
launcher.addActionListener(new java.awt.event.ActionListener()
{
+ @Override
public void actionPerformed(ActionEvent e)
{
LoadingThread loader = new LoadingThread(file, file2,
frame.setTitle(title);
frame.addWindowListener(new WindowAdapter()
{
+ @Override
public void windowClosing(WindowEvent e)
{
if (frame instanceof AlignFrame)
frame.dispose();
}
+ @Override
public void windowActivated(WindowEvent e)
{
if (frame instanceof AlignFrame)
* @param g
* graphics context
*/
+ @Override
public void paint(Graphics g)
{
if (!fileFound)
{
private boolean running = false;
+ @Override
public void run()
{
if (running || checkedForJmol)
applet = _applet;
}
+ @Override
public void run()
{
LoadJmolThread jmolchecker = new LoadJmolThread();
*
* @see jalview.bin.JalviewLiteJsApi#getFeatureGroups()
*/
+ @Override
public String getFeatureGroups()
{
String lst = arrayToSeparatorList(getDefaultTargetFrame()
* jalview.bin.JalviewLiteJsApi#getFeatureGroupsOn(jalview.appletgui.AlignFrame
* )
*/
+ @Override
public String getFeatureGroupsOn(AlignFrame alf)
{
String lst = arrayToSeparatorList(alf.getFeatureGroups());
*
* @see jalview.bin.JalviewLiteJsApi#getFeatureGroupsOfState(boolean)
*/
+ @Override
public String getFeatureGroupsOfState(boolean visible)
{
return arrayToSeparatorList(getDefaultTargetFrame()
* jalview.bin.JalviewLiteJsApi#getFeatureGroupsOfStateOn(jalview.appletgui
* .AlignFrame, boolean)
*/
+ @Override
public String getFeatureGroupsOfStateOn(AlignFrame alf, boolean visible)
{
return arrayToSeparatorList(alf.getFeatureGroupsOfState(visible));
* @see jalview.bin.JalviewLiteJsApi#setFeatureGroupStateOn(jalview.appletgui.
* AlignFrame, java.lang.String, boolean)
*/
+ @Override
public void setFeatureGroupStateOn(final AlignFrame alf,
final String groups, boolean state)
{
* @see jalview.bin.JalviewLiteJsApi#setFeatureGroupState(java.lang.String,
* boolean)
*/
+ @Override
public void setFeatureGroupState(String groups, boolean state)
{
setFeatureGroupStateOn(getDefaultTargetFrame(), groups, state);
*
* @see jalview.bin.JalviewLiteJsApi#getSeparator()
*/
+ @Override
public String getSeparator()
{
return separator;
*
* @see jalview.bin.JalviewLiteJsApi#setSeparator(java.lang.String)
*/
+ @Override
public void setSeparator(String separator)
{
if (separator == null || separator.length() < 1)
* @see jalview.bin.JalviewLiteJsApi#addPdbFile(jalview.appletgui.AlignFrame,
* java.lang.String, java.lang.String, java.lang.String)
*/
+ @Override
public boolean addPdbFile(AlignFrame alFrame, String sequenceId,
String pdbEntryString, String pdbFile)
{
return alignPdbStructures;
}
+ @Override
public void start()
{
// callInitCallback();
* @see jalview.bin.JalviewLiteJsApi#getJsMessage(java.lang.String,
* java.lang.String)
*/
+ @Override
public String getJsMessage(String messageclass, String viewId)
{
Hashtable<String, String[]> msgset = jsmessages.get(messageclass);