/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.5)
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
* Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
*
* This file is part of Jalview.
if (av.getSelectionGroup() != null)
{
- if (av.getSelectionGroup().getSequences(null).contains(
- ((SequencePoint) points.elementAt(i)).sequence))
+ if (av.getSelectionGroup().getSequences(null)
+ .contains(((SequencePoint) points.elementAt(i)).sequence))
{
g.setColor(Color.gray);
}
if (showLabels)
{
g.setColor(Color.red);
- g.drawString(((SequencePoint) points.elementAt(i)).sequence
- .getName(), x - 3, y - 4);
+ g.drawString(
+ ((SequencePoint) points.elementAt(i)).sequence.getName(),
+ x - 3, y - 4);
}
}
{
if (av != null)
{
- if (!av.getSelectionGroup().getSequences(null).contains(
- sp.sequence))
+ if (!av.getSelectionGroup().getSequences(null)
+ .contains(sp.sequence))
{
av.getSelectionGroup().addSequence(sp.sequence, true);
}
/**
*
- * @return x,y,z positions of point s (index into points) under current transform.
+ * @return x,y,z positions of point s (index into points) under current
+ * transform.
*/
public double[] getPointPosition(int s)
{
double pts[] = new double[3];
- float[] p = ((SequencePoint)points.elementAt(s)).coord;
+ float[] p = ((SequencePoint) points.elementAt(s)).coord;
pts[0] = p[0];
pts[1] = p[1];
pts[2] = p[2];