org.jfree.chart.labels
public class StandardCrosshairLabelGenerator extends Object implements CrosshairLabelGenerator, Serializable
Since: 1.0.13
Constructor Summary | |
---|---|
StandardCrosshairLabelGenerator()
Creates a new instance with default attributes. | |
StandardCrosshairLabelGenerator(String labelTemplate, NumberFormat numberFormat)
Creates a new instance with the specified attributes.
|
Method Summary | |
---|---|
boolean | equals(Object obj)
Tests this generator for equality with an arbitrary object.
|
String | generateLabel(Crosshair crosshair)
Returns a string that can be used as the label for a crosshair.
|
String | getLabelTemplate()
Returns the label template string.
|
NumberFormat | getNumberFormat()
Returns the number formatter.
|
int | hashCode()
Returns a hash code for this instance.
|
Parameters: labelTemplate the label template (null
not
permitted). numberFormat the number formatter (null
not
permitted).
Parameters: obj the object (null
permitted).
Returns: A boolean.
Parameters: crosshair the crosshair (null
not permitted).
Returns: The label (possibly null
).
Returns: The label template string (never null
).
Returns: The formatter (never null
).
Returns: A hash code for this instance.