public class StandardCrosshairLabelGenerator extends Object implements CrosshairLabelGenerator, Serializable
| Constructor and Description |
|---|
StandardCrosshairLabelGenerator()
Creates a new instance with default attributes.
|
StandardCrosshairLabelGenerator(String labelTemplate,
NumberFormat numberFormat)
Creates a new instance with the specified attributes.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public StandardCrosshairLabelGenerator()
public StandardCrosshairLabelGenerator(String labelTemplate, NumberFormat numberFormat)
labelTemplate - the label template (null not
permitted).numberFormat - the number formatter (null not
permitted).public String getLabelTemplate()
null).public NumberFormat getNumberFormat()
null).public String generateLabel(Crosshair crosshair)
generateLabel in interface CrosshairLabelGeneratorcrosshair - the crosshair (null not permitted).null).public boolean equals(Object obj)
Copyright © 2001-2014 JFree.org. All Rights Reserved.