From 9a0f307f1fea87200c2ce905073942570795c6cc Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 31 Oct 2016 11:45:44 +0000 Subject: [PATCH] JAL-1723 ellipsis in tooltip if xrefs to more than 40 db sources --- resources/lang/Messages.properties | 1 + resources/lang/Messages_es.properties | 1 + src/jalview/api/FeatureRenderer.java | 3 ++- src/jalview/gui/SeqPanel.java | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/lang/Messages.properties b/resources/lang/Messages.properties index 864e34a..1c52b63 100644 --- a/resources/lang/Messages.properties +++ b/resources/lang/Messages.properties @@ -1268,3 +1268,4 @@ status.exporting_alignment_as_x_file = Exporting alignment as {0} file label.column = Column label.cant_map_cds = Unable to map CDS to protein\nCDS missing or incomplete label.operation_failed = Operation failed +label.output_seq_details = Output Sequence Details to list all database references diff --git a/resources/lang/Messages_es.properties b/resources/lang/Messages_es.properties index 754d94d..8009ae9 100644 --- a/resources/lang/Messages_es.properties +++ b/resources/lang/Messages_es.properties @@ -1269,3 +1269,4 @@ status.exporting_alignment_as_x_file = Exportando alineamiento como fichero tipo label.column = Columna label.cant_map_cds = No se pudo mapear CDS a proteĆ­na\nDatos CDS faltantes o incompletos label.operation_failed = OperaciĆ³n fallada +label.output_seq_details = Seleccionar Detalles de la secuencia para ver todas diff --git a/src/jalview/api/FeatureRenderer.java b/src/jalview/api/FeatureRenderer.java index dbc9880..f54231e 100644 --- a/src/jalview/api/FeatureRenderer.java +++ b/src/jalview/api/FeatureRenderer.java @@ -132,7 +132,8 @@ public interface FeatureRenderer void setGroupVisibility(String group, boolean visible); /** - * locate features at a particular position on the given sequence + * Returns features at the specified position on the given sequence. + * Non-positional features are not included. * * @param sequence * @param res diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 885aab2..73ed744 100644 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -785,7 +785,7 @@ public class SeqPanel extends JPanel implements MouseListener, seqARep.appendFeatures(tooltipText, rpos, features, this.ap.getSeqPanel().seqCanvas.fr.getMinMax()); } - if (tooltipText.length() == 6) // + if (tooltipText.length() == 6) // { setToolTipText(null); lastTooltip = null; -- 1.7.10.2