*
*/
{
- if (aparser.contains(ArgsParser.NOANNOTATION)
- || aparser.contains(ArgsParser.NOANNOTATION2))
+ if (noAnnotation)
{
af.getViewport().setShowAnnotation(false);
if (!af.getViewport().isShowAnnotation())
* though I still think this call should be elsewhere.
*/
ViewportRanges ranges = av.getRanges();
- setScrollValues(ranges.getStartRes(), ranges.getStartSeq());
+ // setScrollValues(ranges.getStartRes(), ranges.getStartSeq());
super.paintComponent(g);
}
{
Objects.requireNonNull(ttext,
"Tootip text to format must not be null!");
- ttext = ttext.trim();
+ ttext = ttext.trim().replaceAll("<br/>", "<br>");
boolean maxLengthExceeded = false;
boolean isHTML = ttext.startsWith("<html>");
if (isHTML)
*/
public void setStartEndSeq(int start, int end)
{
- // System.out.println("ViewportRange setStartEndSeq " + start + " " + end);
+ //System.out.println("ViewportRange setStartEndSeq " + start + " " + end);
int[] oldvalues = updateStartEndSeq(start, end);
int oldstartseq = oldvalues[0];
int oldendseq = oldvalues[1];
return maxScroll;
}
+
+ @Override
+ public String toString()
+ {
+ return "[ViewportRange " + startSeq + "-" + endSeq + ", " + startRes
+ + "-" + endRes + "]";
+ }
}
-20200607232230
+20200609215953
-20200607231708
+20200609014636
-20200607232230
+20200609215953
public void testWrapTooltip_multilineShortText()
{
String tip = "Now is the winter of our discontent<br>Made glorious summer by this sun of York";
-
+ String tip2 = "Now is the winter of our discontent<br/>Made glorious summer by this sun of York";
// System.out.println(
// JvSwingUtils.wrapTooltip(false, "<html>" + tip + "</html>"));
// System.out.println(JvSwingUtils.wrapTooltip(true, tip));
assertEquals("<html>" + tip + "</html>",
- JvSwingUtils.wrapTooltip(false, "<html>" + tip + "</html>"));
+ JvSwingUtils.wrapTooltip(false, "<html>" + tip2 + "</html>"));
assertEquals("<html>" + tip + "</html>",
- JvSwingUtils.wrapTooltip(true, tip));
+ JvSwingUtils.wrapTooltip(true, tip2));
// was:
//