Skip to content
Snippets Groups Projects
Commit a5fc22c3 authored by tjc's avatar tjc
Browse files

allow variable graph height

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@7338 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent c011db3a
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* *
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/BasePlot.java,v 1.10 2008-03-06 16:36:01 tjc Exp $ * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/BasePlot.java,v 1.11 2008-05-02 12:50:37 tjc Exp $
**/ **/
package uk.ac.sanger.artemis.components; package uk.ac.sanger.artemis.components;
...@@ -33,7 +33,6 @@ import uk.ac.sanger.artemis.io.Key; ...@@ -33,7 +33,6 @@ import uk.ac.sanger.artemis.io.Key;
import uk.ac.sanger.artemis.io.Location; import uk.ac.sanger.artemis.io.Location;
import uk.ac.sanger.artemis.io.Qualifier; import uk.ac.sanger.artemis.io.Qualifier;
import uk.ac.sanger.artemis.io.QualifierVector; import uk.ac.sanger.artemis.io.QualifierVector;
import uk.ac.sanger.artemis.io.RangeVector;
import uk.ac.sanger.artemis.plot.*; import uk.ac.sanger.artemis.plot.*;
import uk.ac.sanger.artemis.util.OutOfRangeException; import uk.ac.sanger.artemis.util.OutOfRangeException;
import uk.ac.sanger.artemis.util.ReadOnlyException; import uk.ac.sanger.artemis.util.ReadOnlyException;
...@@ -42,7 +41,6 @@ import java.awt.*; ...@@ -42,7 +41,6 @@ import java.awt.*;
import java.awt.event.*; import java.awt.event.*;
import java.text.NumberFormat; import java.text.NumberFormat;
import javax.swing.Box;
import javax.swing.JLabel; import javax.swing.JLabel;
import javax.swing.JOptionPane; import javax.swing.JOptionPane;
import javax.swing.JPanel; import javax.swing.JPanel;
...@@ -54,7 +52,7 @@ import javax.swing.JTextField; ...@@ -54,7 +52,7 @@ import javax.swing.JTextField;
* scale is tied to a FeatureDisplay component. * scale is tied to a FeatureDisplay component.
* *
* @author Kim Rutherford * @author Kim Rutherford
* @version $Id: BasePlot.java,v 1.10 2008-03-06 16:36:01 tjc Exp $ * @version $Id: BasePlot.java,v 1.11 2008-05-02 12:50:37 tjc Exp $
**/ **/
public class BasePlot extends Plot public class BasePlot extends Plot
...@@ -138,7 +136,7 @@ public class BasePlot extends Plot ...@@ -138,7 +136,7 @@ public class BasePlot extends Plot
/** /**
* Used by getPreferredSize() and getMinimumSize(); * Used by getPreferredSize() and getMinimumSize();
**/ **/
private final static int HEIGHT; protected static int HEIGHT;
static static
{ {
...@@ -152,7 +150,7 @@ public class BasePlot extends Plot ...@@ -152,7 +150,7 @@ public class BasePlot extends Plot
if(screen.height <= 600) if(screen.height <= 600)
HEIGHT = 100; HEIGHT = 100;
else else
HEIGHT = 150; HEIGHT = 120;
} }
else else
HEIGHT = base_plot_height.intValue(); HEIGHT = base_plot_height.intValue();
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* *
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/FeaturePlot.java,v 1.5 2008-03-06 14:40:07 tjc Exp $ * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/FeaturePlot.java,v 1.6 2008-05-02 12:50:37 tjc Exp $
*/ */
package uk.ac.sanger.artemis.components; package uk.ac.sanger.artemis.components;
...@@ -32,14 +32,13 @@ import uk.ac.sanger.artemis.*; ...@@ -32,14 +32,13 @@ import uk.ac.sanger.artemis.*;
import uk.ac.sanger.artemis.io.EntryInformationException; import uk.ac.sanger.artemis.io.EntryInformationException;
import uk.ac.sanger.artemis.plot.*; import uk.ac.sanger.artemis.plot.*;
import java.awt.*; import java.awt.*;
import java.awt.event.*;
/** /**
* The components of this class display a plot of a FeatureAlgorithm for a * The components of this class display a plot of a FeatureAlgorithm for a
* particular feature. * particular feature.
* *
* @author Kim Rutherford * @author Kim Rutherford
* @version $Id: FeaturePlot.java,v 1.5 2008-03-06 14:40:07 tjc Exp $ * @version $Id: FeaturePlot.java,v 1.6 2008-05-02 12:50:37 tjc Exp $
**/ **/
public class FeaturePlot extends Plot public class FeaturePlot extends Plot
...@@ -61,7 +60,7 @@ public class FeaturePlot extends Plot ...@@ -61,7 +60,7 @@ public class FeaturePlot extends Plot
/** /**
* Used by getPreferredSize () and getMinimumSize (); * Used by getPreferredSize () and getMinimumSize ();
**/ **/
private final static int HEIGHT; protected static int HEIGHT;
static { static {
final Integer feature_plot_height = final Integer feature_plot_height =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment