package jalview.javascript;
import jalview.appletgui.AlignFrame;
+import jalview.appletgui.AlignViewport;
import jalview.bin.JalviewLite;
import jalview.datamodel.ColumnSelection;
import jalview.datamodel.SequenceGroup;
+import jalview.structure.SelectionListener;
import jalview.structure.SelectionSource;
public class JsSelectionSender extends JSFunctionExec implements
- jalview.structure.SelectionListener, JsCallBack
+ SelectionListener, JsCallBack
{
AlignFrame _af;
AlignFrame src = _af;
if (source != null)
{
- if (source instanceof jalview.appletgui.AlignViewport
- && ((jalview.appletgui.AlignViewport) source).applet.currentAlignFrame.viewport == source)
+ if (source instanceof AlignViewport
+ && ((AlignViewport) source).applet.currentAlignFrame.viewport == source)
{
// should be valid if it just generated an event!
- src = ((jalview.appletgui.AlignViewport) source).applet.currentAlignFrame;
+ src = ((AlignViewport) source).applet.currentAlignFrame;
}
}
for (int i = 0; i < cols.length; i++)
{
cols[i] = ""
- + (1 + ((Integer) colsel.getSelected().elementAt(i))
+ + (1 + colsel.getSelected().elementAt(i)
.intValue());
}
}
package jalview.javascript;
import jalview.appletgui.AlignFrame;
+import jalview.appletgui.AlignViewport;
import jalview.bin.JalviewLite;
import jalview.datamodel.SequenceI;
import jalview.structure.VamsasListener;
{
if (source != null)
{
- if (source instanceof jalview.appletgui.AlignViewport
- && ((jalview.appletgui.AlignViewport) source).applet.currentAlignFrame.viewport == source)
+ if (source instanceof AlignViewport
+ && ((AlignViewport) source).applet.currentAlignFrame.viewport == source)
{
// should be valid if it just generated an event!
- src = ((jalview.appletgui.AlignViewport) source).applet.currentAlignFrame;
+ src = ((AlignViewport) source).applet.currentAlignFrame;
}
// TODO: ensure that if '_af' is specified along with a handler
*/
package jalview.javascript;
-import java.util.ArrayList;
-import java.util.List;
-
import jalview.api.AlignmentViewPanel;
import jalview.api.FeatureRenderer;
import jalview.api.SequenceRenderer;
import jalview.appletgui.AlignFrame;
+import jalview.appletgui.AlignmentPanel;
import jalview.bin.JalviewLite;
import jalview.datamodel.SequenceI;
import jalview.ext.jmol.JmolCommands;
import jalview.structure.StructureMappingcommandSet;
import jalview.structure.StructureSelectionManager;
+import java.util.ArrayList;
+import java.util.List;
+
/**
* Propagate events involving PDB structures associated with sequences to a
* javascript function. Generally, the javascript handler is called with a
// {
// ssm.reportMapping();
// }
- if (source instanceof jalview.api.AlignmentViewPanel)
+ if (source instanceof AlignmentViewPanel)
{
SequenceI[][] sequence = new SequenceI[modelSet.length][];
for (int m = 0; m < modelSet.length; m++)
// }
}
- SequenceRenderer sr = ((jalview.appletgui.AlignmentPanel) source)
+ SequenceRenderer sr = ((AlignmentPanel) source)
.getSequenceRenderer();
- FeatureRenderer fr = ((jalview.appletgui.AlignmentPanel) source).av
+ FeatureRenderer fr = ((AlignmentPanel) source).av
.isShowSequenceFeatures() ? new jalview.appletgui.FeatureRenderer(
- ((jalview.appletgui.AlignmentPanel) source).av) : null;
+ ((AlignmentPanel) source).av) : null;
if (fr != null)
{
((jalview.appletgui.FeatureRenderer) fr)
- .transferSettings(((jalview.appletgui.AlignmentPanel) source)
+ .transferSettings(((AlignmentPanel) source)
.getFeatureRenderer());
}
;
return;
}
int sz = 0;
- for (jalview.structure.StructureMappingcommandSet ccset : colcommands)
+ for (StructureMappingcommandSet ccset : colcommands)
{
sz += ccset.commands.length;
ccomands.add(ccset.commands);
}
if (jvlite.isJsMessageSetChanged(
mclass = "colourstruct",
- mhandle = ((jalview.appletgui.AlignmentPanel) source).av
+ mhandle = ((AlignmentPanel) source).av
.getViewId(), ccomandset))
{
jvlite.setJsMessageSet(mclass, mhandle, ccomandset);
String st[] = new String[]
{
"colourstruct",
- "" + ((jalview.appletgui.AlignmentPanel) source).av.getViewId(),
+ "" + ((AlignmentPanel) source).av.getViewId(),
"" + ccomandset.length,
jvlite.arrayToSeparatorList(pdbfn.toArray(new String[pdbfn
.size()])) };