From a5fc22c351489c1ae5b2ca2b970b27be3b7a1f6f Mon Sep 17 00:00:00 2001 From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04> Date: Fri, 2 May 2008 12:50:37 +0000 Subject: [PATCH] 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 --- uk/ac/sanger/artemis/components/BasePlot.java | 10 ++++------ uk/ac/sanger/artemis/components/FeaturePlot.java | 7 +++---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/uk/ac/sanger/artemis/components/BasePlot.java b/uk/ac/sanger/artemis/components/BasePlot.java index 0c6824ed8..9ba767260 100644 --- a/uk/ac/sanger/artemis/components/BasePlot.java +++ b/uk/ac/sanger/artemis/components/BasePlot.java @@ -20,7 +20,7 @@ * along with this program; if not, write to the Free Software * 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; @@ -33,7 +33,6 @@ import uk.ac.sanger.artemis.io.Key; import uk.ac.sanger.artemis.io.Location; import uk.ac.sanger.artemis.io.Qualifier; 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.util.OutOfRangeException; import uk.ac.sanger.artemis.util.ReadOnlyException; @@ -42,7 +41,6 @@ import java.awt.*; import java.awt.event.*; import java.text.NumberFormat; -import javax.swing.Box; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; @@ -54,7 +52,7 @@ import javax.swing.JTextField; * scale is tied to a FeatureDisplay component. * * @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 @@ -138,7 +136,7 @@ public class BasePlot extends Plot /** * Used by getPreferredSize() and getMinimumSize(); **/ - private final static int HEIGHT; + protected static int HEIGHT; static { @@ -152,7 +150,7 @@ public class BasePlot extends Plot if(screen.height <= 600) HEIGHT = 100; else - HEIGHT = 150; + HEIGHT = 120; } else HEIGHT = base_plot_height.intValue(); diff --git a/uk/ac/sanger/artemis/components/FeaturePlot.java b/uk/ac/sanger/artemis/components/FeaturePlot.java index 6e09fd491..364668d32 100644 --- a/uk/ac/sanger/artemis/components/FeaturePlot.java +++ b/uk/ac/sanger/artemis/components/FeaturePlot.java @@ -20,7 +20,7 @@ * along with this program; if not, write to the Free Software * 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; @@ -32,14 +32,13 @@ import uk.ac.sanger.artemis.*; import uk.ac.sanger.artemis.io.EntryInformationException; import uk.ac.sanger.artemis.plot.*; import java.awt.*; -import java.awt.event.*; /** * The components of this class display a plot of a FeatureAlgorithm for a * particular feature. * * @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 @@ -61,7 +60,7 @@ public class FeaturePlot extends Plot /** * Used by getPreferredSize () and getMinimumSize (); **/ - private final static int HEIGHT; + protected static int HEIGHT; static { final Integer feature_plot_height = -- GitLab