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
JAL-2982 use configured background colour in PCA image export
[jalview.git]
/
src
/
jalview
/
gui
/
RotatableCanvas.java
diff --git
a/src/jalview/gui/RotatableCanvas.java
b/src/jalview/gui/RotatableCanvas.java
index
86fe483
..
b00055b
100755
(executable)
--- a/
src/jalview/gui/RotatableCanvas.java
+++ b/
src/jalview/gui/RotatableCanvas.java
@@
-287,7
+287,7
@@
public class RotatableCanvas extends JPanel implements MouseListener,
ig = img.getGraphics();
}
ig = img.getGraphics();
}
- drawBackground(ig, bgColour);
+ drawBackground(ig);
drawScene(ig);
if (drawAxes)
drawScene(ig);
if (drawAxes)
@@
-336,14
+336,13
@@
public class RotatableCanvas extends JPanel implements MouseListener,
}
/**
}
/**
- * Fills the background with the specified colour
+ * Fills the background with the currently configured background colour
*
* @param g
*
* @param g
- * @param col
*/
*/
- public void drawBackground(Graphics g, Color col)
+ public void drawBackground(Graphics g)
{
{
- g.setColor(col);
+ g.setColor(bgColour);
g.fillRect(0, 0, prefSize.width, prefSize.height);
}
g.fillRect(0, 0, prefSize.width, prefSize.height);
}