diff options
author | Jose <jose@zeroc.com> | 2012-10-11 22:41:25 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-10-11 22:41:25 +0200 |
commit | b9d3b05e8ea4101e3f54811840d83534de7851d8 (patch) | |
tree | 5bb5ad219a0b4ca8dff1da75d6cacb314b5cf7a4 /java/src/IceGridGUI/LiveDeployment/GraphView.java | |
parent | Added missing #includes to IceRb (diff) | |
download | ice-b9d3b05e8ea4101e3f54811840d83534de7851d8.tar.bz2 ice-b9d3b05e8ea4101e3f54811840d83534de7851d8.tar.xz ice-b9d3b05e8ea4101e3f54811840d83534de7851d8.zip |
IceGridGUI - added configurable tool tips to metrics tables
Diffstat (limited to 'java/src/IceGridGUI/LiveDeployment/GraphView.java')
-rw-r--r-- | java/src/IceGridGUI/LiveDeployment/GraphView.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/java/src/IceGridGUI/LiveDeployment/GraphView.java b/java/src/IceGridGUI/LiveDeployment/GraphView.java index fb772855bc3..f042e3c8dc9 100644 --- a/java/src/IceGridGUI/LiveDeployment/GraphView.java +++ b/java/src/IceGridGUI/LiveDeployment/GraphView.java @@ -560,7 +560,21 @@ public class GraphView extends JFrame implements MetricsFieldContext } }; - _legendTable = new JTable(_legendModel); + _legendTable = new JTable(_legendModel) + { + //Implement table cell tool tips. + public String getToolTipText(java.awt.event.MouseEvent e) + { + if(convertColumnIndexToModel(columnAtPoint(e.getPoint())) == 6) + { + return _legendModel.getRows(new int[]{rowAtPoint(e.getPoint())})[0].cell.getField().getColumnToolTip(); + } + else + { + return null; + } + } + }; // // Graph preferences. |