Skip to content

Commit

Permalink
consolidated score name
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleisch committed Aug 19, 2023
1 parent 37c828a commit dc81efa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public class ScoreLabel extends JPanel {

public ScoreLabel() {
this.score = Double.NaN;
setPreferredSize(new Dimension(128, 20));
setPreferredSize(new Dimension(230, 20));
final HashMap<AttributedCharacterIterator.Attribute, Object> attrs = new HashMap<>();
attrs.put(TextAttribute.SUPERSCRIPT, TextAttribute.SUPERSCRIPT_SUPER);
attrs.put(TextAttribute.SIZE, 15f);
Expand All @@ -320,7 +320,7 @@ public void paintComponent(Graphics g) {
((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
if (Double.isNaN(score)) return;
g.setFont(nameFont);
final String t1 = "Score: ";
final String t1 = "CSI:FingerID Score: ";
int widthB = g.getFontMetrics().stringWidth(t1);
g.drawString(t1, 0, 14);
//g.setFont(scoreSuperscriptFont);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected CandidateTableFormat(Function<FingerprintCandidateBean, Boolean> isBes
"Molecular Formula",
"Adduct",
"CSI:FingerID Score",
"Similarity",
"Tanimoto Similarity",
"#PubMed IDs",
"XLogP",
"InChIKey",
Expand Down

0 comments on commit dc81efa

Please sign in to comment.