mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] get FontMetrics from GraphTable in commit renderer
Follow-up to dbd391a1e9
This commit is contained in:
+6
-1
@@ -233,7 +233,7 @@ public class GraphCommitCellRenderer extends TypeSafeTableCellRenderer<GraphComm
|
||||
}
|
||||
|
||||
private int calculateHeight() {
|
||||
return Math.max(myReferencePainter.getSize().height, myGraphTable.getFontMetrics(myFont).getHeight() + VERTICAL_PADDING);
|
||||
return Math.max(myReferencePainter.getSize().height, getFontMetrics(myFont).getHeight() + VERTICAL_PADDING);
|
||||
}
|
||||
|
||||
public int getPreferredHeight() {
|
||||
@@ -284,6 +284,11 @@ public class GraphCommitCellRenderer extends TypeSafeTableCellRenderer<GraphComm
|
||||
public LabelPainter getReferencePainter() {
|
||||
return myReferencePainter;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FontMetrics getFontMetrics(Font font) {
|
||||
return myGraphTable.getFontMetrics(font);
|
||||
}
|
||||
}
|
||||
|
||||
private static class GraphImage {
|
||||
|
||||
Reference in New Issue
Block a user