예제 #1
0
 /**
  * Determines what tooltip is to be displayed.
  *
  * @param aPoint a current mouse location, cannot be <code>null</code>.
  * @return a tooltip text, never <code>null</code>.
  */
 public static String getToolTipText(final SignalDiagramModel aModel, final Point aPoint) {
   final boolean hasTimingData = aModel.hasTimingData();
   return formatReference(
       hasTimingData,
       hasTimingData ? aModel.getTimestamp(aPoint.x) : aModel.locationToSampleIndex(aPoint));
 }
예제 #2
0
 /**
  * Determines what tooltip is to be displayed.
  *
  * @param aPoint a current mouse location, cannot be <code>null</code>.
  * @return a tooltip text, never <code>null</code>.
  */
 public static String getToolTipText(final SignalDiagramModel aModel, final double aRefTime) {
   return formatReference(aModel.hasTimingData(), aRefTime);
 }