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-3438 spotless for 2.11.2.0
[jalview.git]
/
src
/
jalview
/
jbgui
/
GSplitFrame.java
diff --git
a/src/jalview/jbgui/GSplitFrame.java
b/src/jalview/jbgui/GSplitFrame.java
index
2ae335c
..
5e65047
100644
(file)
--- a/
src/jalview/jbgui/GSplitFrame.java
+++ b/
src/jalview/jbgui/GSplitFrame.java
@@
-1,6
+1,6
@@
/*
/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2)
- * Copyright (C) 2015 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
*
* This file is part of Jalview.
*
@@
-57,6
+57,7
@@
public class GSplitFrame extends JInternalFrame
*/
public GSplitFrame(GAlignFrame top, GAlignFrame bottom)
{
*/
public GSplitFrame(GAlignFrame top, GAlignFrame bottom)
{
+ setName("jalview-splitframe");
this.topFrame = top;
this.bottomFrame = bottom;
this.topFrame = top;
this.bottomFrame = bottom;
@@
-102,7
+103,7
@@
public class GSplitFrame extends JInternalFrame
*/
protected void hideTitleBars()
{
*/
protected void hideTitleBars()
{
- if (new Platform().isAMac())
+ if (Platform.isAMacAndNotJS())
{
// this saves some space - but doesn't hide the title bar
topFrame.putClientProperty("JInternalFrame.isPalette", true);
{
// this saves some space - but doesn't hide the title bar
topFrame.putClientProperty("JInternalFrame.isPalette", true);
@@
-153,7
+154,8
@@
public class GSplitFrame extends JInternalFrame
return false;
}
Point p = comp.getLocationOnScreen();
return false;
}
Point p = comp.getLocationOnScreen();
- Rectangle r = new Rectangle(p.x, p.y, comp.getWidth(), comp.getHeight());
+ Rectangle r = new Rectangle(p.x, p.y, comp.getWidth(),
+ comp.getHeight());
return r.contains(loc);
}
return r.contains(loc);
}
@@
-173,8
+175,8
@@
public class GSplitFrame extends JInternalFrame
else
{
this.dividerRatio = splitPane.getDividerLocation()
else
{
this.dividerRatio = splitPane.getDividerLocation()
- / (double) (splitPane.getHeight() - splitPane
- .getDividerSize());
+ / (double) (splitPane.getHeight()
+ - splitPane.getDividerSize());
}
if (alignFrame == this.topFrame)
}
if (alignFrame == this.topFrame)