1 40 41 package org.jfree.chart.imagemap; 42 43 49 public class DynamicDriveToolTipTagFragmentGenerator 50 implements ToolTipTagFragmentGenerator { 51 52 53 protected String title = ""; 54 55 56 protected int style = 1; 57 58 61 public DynamicDriveToolTipTagFragmentGenerator() { 62 super(); 63 } 64 65 73 public DynamicDriveToolTipTagFragmentGenerator(String title, int style) { 74 this.title = title; 75 this.style = style; 76 } 77 78 85 public String generateToolTipFragment(String toolTipText) { 86 return " onMouseOver=\"return stm(['" + this.title + "','" 87 + toolTipText + "'],Style[" + this.style + "]);\"" 88 + " onMouseOut=\"return htm();\""; 89 } 90 91 } 92 | Popular Tags |