git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
apply jalview code style
[jalview.git]
/
src
/
jalview
/
gui
/
RotatableCanvas.java
diff --git
a/src/jalview/gui/RotatableCanvas.java
b/src/jalview/gui/RotatableCanvas.java
index
67fc95c
..
60cc19c
100755
(executable)
--- a/
src/jalview/gui/RotatableCanvas.java
+++ b/
src/jalview/gui/RotatableCanvas.java
@@
-460,8
+460,8
@@
public class RotatableCanvas extends JPanel implements MouseListener,
if (av.getSelectionGroup() != null)
{
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);
}
{
g.setColor(Color.gray);
}
@@
-476,8
+476,9
@@
public class RotatableCanvas extends JPanel implements MouseListener,
if (showLabels)
{
g.setColor(Color.red);
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);
}
}
}
}
@@
-748,8
+749,8
@@
public class RotatableCanvas extends JPanel implements MouseListener,
{
if (av != null)
{
{
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);
}
{
av.getSelectionGroup().addSequence(sp.sequence, true);
}
@@
-818,12
+819,13
@@
public class RotatableCanvas extends JPanel implements MouseListener,
/**
*
/**
*
- * @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];
*/
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];
pts[0] = p[0];
pts[1] = p[1];
pts[2] = p[2];