String getRootDescription() { if ( getRoot() instanceof VisualizerNode ) { //#37802 commenting this out - unfathomable why you would need //to sort the root's children in order to get its short //description - Tim // sortChildren ((VisualizerNode)getRoot ()); return ((VisualizerNode)getRoot()).getShortDescription(); } return ""; // NOI18N }
String getRootDescription() { if (getRoot() instanceof VisualizerNode) { //#37802 commenting this out - unfathomable why you would need //to sort the root's children in order to get its short //description - Tim // sortChildren ((VisualizerNode)getRoot ()); return ((VisualizerNode) getRoot()).getShortDescription(); } return ""; // NOI18N }
String getRootDescription() { if ( getRoot() instanceof VisualizerNode ) { //#37802 commenting this out - unfathomable why you would need //to sort the root's children in order to get its short //description - Tim // sortChildren ((VisualizerNode)getRoot ()); return ((VisualizerNode)getRoot()).getShortDescription(); } return ""; // NOI18N }
public String getToolTipText(MouseEvent event) { if(event != null) { Point p = event.getPoint(); int selRow = getRowForLocation(p.x, p.y); if(selRow != -1) { TreePath path = getPathForRow(selRow); VisualizerNode v = (VisualizerNode)path.getLastPathComponent(); String tooltip = v.getShortDescription(); String displayName = v.getDisplayName (); if ((tooltip != null) && !tooltip.equals (displayName)) return tooltip; } } return null; }
public String getToolTipText(MouseEvent event) { if(event != null) { Point p = event.getPoint(); int selRow = getRowForLocation(p.x, p.y); if(selRow != -1) { TreePath path = getPathForRow(selRow); VisualizerNode v = (VisualizerNode)path.getLastPathComponent(); String tooltip = v.getShortDescription(); String displayName = v.getDisplayName (); if ((tooltip != null) && !tooltip.equals (displayName)) return tooltip; } } return null; }
@Override public String getToolTipText(MouseEvent event) { if (event != null) { Point p = event.getPoint(); int selRow = getRowForLocation(p.x, p.y); if (selRow != -1) { TreePath path = getPathForRow(selRow); VisualizerNode v = (VisualizerNode) path.getLastPathComponent(); String tooltip = v.getShortDescription(); String displayName = v.getDisplayName(); if ((tooltip != null) && !tooltip.equals(displayName)) { return tooltip; } } } return null; }
final String getToolTipTextImpl(MouseEvent event) { if (event != null) { Point p = event.getPoint(); int row = locationToIndex(p); if (row >= 0) { VisualizerNode v = (VisualizerNode) model.getElementAt(row); String tooltip = v.getShortDescription(); String displayName = v.getDisplayName(); if ((tooltip != null) && !tooltip.equals(displayName)) { return tooltip; } } } return null; }
/** * Overrides JComponent's getToolTipText method in order to allow * renderer's tips to be used if it has text set. * @param event the MouseEvent that initiated the ToolTip display */ public String getToolTipText (MouseEvent event) { if (event != null) { Point p = event.getPoint (); int index = locationToIndex (p); if (index >= 0) { VisualizerNode v = (VisualizerNode)getModel().getElementAt(index); String tooltip = v.getShortDescription(); String displayName = v.getDisplayName (); if ((tooltip != null) && !tooltip.equals (displayName)) { return tooltip; } } } return null; } };
/** * Overrides JComponent's getToolTipText method in order to allow * renderer's tips to be used if it has text set. * @param event the MouseEvent that initiated the ToolTip display */ public String getToolTipText (MouseEvent event) { if (event != null) { Point p = event.getPoint (); int index = locationToIndex (p); if (index >= 0) { VisualizerNode v = (VisualizerNode)getModel().getElementAt(index); String tooltip = v.getShortDescription(); String displayName = v.getDisplayName (); if ((tooltip != null) && !tooltip.equals (displayName)) { return tooltip; } } } return null; } };
/** * Overrides JComponent's getToolTipText method in order to allow * Node's tips to be used if they are useful. * * @param event the MouseEvent that initiated the ToolTip display */ public String getToolTipText (MouseEvent event) { if (event != null) { Point p = event.getPoint (); int row = locationToIndex (p); if (row >= 0) { VisualizerNode v = (VisualizerNode)model.getElementAt (row); String tooltip = v.getShortDescription(); String displayName = v.getDisplayName (); if ((tooltip != null) && !tooltip.equals (displayName)) return tooltip; } } return null; }
/** * Overrides JComponent's getToolTipText method in order to allow * Node's tips to be used if they are useful. * * @param event the MouseEvent that initiated the ToolTip display */ public String getToolTipText (MouseEvent event) { if (event != null) { Point p = event.getPoint (); int row = locationToIndex (p); if (row >= 0) { VisualizerNode v = (VisualizerNode)model.getElementAt (row); String tooltip = v.getShortDescription(); String displayName = v.getDisplayName (); if ((tooltip != null) && !tooltip.equals (displayName)) return tooltip; } } return null; }
@Override public String getToolTipText(MouseEvent event) { if (event != null) { Point p = event.getPoint(); p.translate(positionX, visibleRow * getRowHeight()); int selRow = getRowForLocation(p.x, p.y); if (selRow != -1) { TreePath path = getPathForRow(selRow); VisualizerNode v = (VisualizerNode) path.getLastPathComponent(); String tooltip = v.getShortDescription(); String displayName = v.getDisplayName(); if ((tooltip != null) && !tooltip.equals(displayName)) { return tooltip; } } } return null; }
public String getToolTipText(MouseEvent event) { if(event != null) { Point p = event.getPoint(); p.translate(positionX, visibleRow * getRowHeight()); int selRow = getRowForLocation(p.x, p.y); if(selRow != -1) { TreePath path = getPathForRow(selRow); VisualizerNode v = (VisualizerNode)path.getLastPathComponent(); String tooltip = v.getShortDescription(); String displayName = v.getDisplayName (); if ((tooltip != null) && !tooltip.equals (displayName)) return tooltip; } } return null; }
public String getToolTipText(MouseEvent event) { if(event != null) { Point p = event.getPoint(); p.translate(positionX, visibleRow * getRowHeight()); int selRow = getRowForLocation(p.x, p.y); if(selRow != -1) { TreePath path = getPathForRow(selRow); VisualizerNode v = (VisualizerNode)path.getLastPathComponent(); String tooltip = v.getShortDescription(); String displayName = v.getDisplayName (); if ((tooltip != null) && !tooltip.equals (displayName)) return tooltip; } } return null; }