boolean fitToWindow = true;\r
boolean showDistances = false;\r
boolean showBootstrap = false;\r
boolean markPlaceholders = false;\r
int offx = 20;\r
boolean fitToWindow = true;\r
boolean showDistances = false;\r
boolean showBootstrap = false;\r
boolean markPlaceholders = false;\r
int offx = 20;\r
\r
String name = (markPlaceholders && node.isPlaceholder())\r
? (PLACEHOLDER + node.getName()) : node.getName();\r
\r
String name = (markPlaceholders && node.isPlaceholder())\r
? (PLACEHOLDER + node.getName()) : node.getName();\r
charWidth, charHeight);\r
\r
nameHash.put((SequenceI) node.element(), rect);\r
charWidth, charHeight);\r
\r
nameHash.put((SequenceI) node.element(), rect);\r
- g.fillRect(xend + 10, ypos - charHeight + 3, charWidth,\r
+ g.fillRect(xend + 10, ypos-charHeight/2, charWidth,\r
\r
pickNode(pickBox, top, chunk, wscale, width, offx, offy);\r
}\r
\r
pickNode(pickBox, top, chunk, wscale, width, offx, offy);\r
}\r
- labelLength = g2.getFontMetrics(font).stringWidth(longestName) + 20; //20 allows for scrollbar\r
+ offy = font.getSize()*2;\r
+\r
+ fm = g2.getFontMetrics(font);\r
+\r
+ labelLength = fm.stringWidth(longestName) + 20; //20 allows for scrollbar\r
\r
drawNode(g2, tree.getTopNode(), chunk, wscale, width, offx, offy);\r
\r
\r
drawNode(g2, tree.getTopNode(), chunk, wscale, width, offx, offy);\r
\r