public class StandardCrosshairLabelGenerator extends java.lang.Object implements CrosshairLabelGenerator, java.io.Serializable
Constructor and Description |
---|
StandardCrosshairLabelGenerator()
Creates a new instance with default attributes.
|
StandardCrosshairLabelGenerator(java.lang.String labelTemplate,
java.text.NumberFormat numberFormat)
Creates a new instance with the specified attributes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Tests this generator for equality with an arbitrary object.
|
java.lang.String |
generateLabel(Crosshair crosshair)
Returns a string that can be used as the label for a crosshair.
|
java.lang.String |
getLabelTemplate()
Returns the label template string.
|
java.text.NumberFormat |
getNumberFormat()
Returns the number formatter.
|
int |
hashCode()
Returns a hash code for this instance.
|
public StandardCrosshairLabelGenerator()
public StandardCrosshairLabelGenerator(java.lang.String labelTemplate, java.text.NumberFormat numberFormat)
labelTemplate
- the label template (null
not
permitted).numberFormat
- the number formatter (null
not
permitted).public java.lang.String getLabelTemplate()
null
).public java.text.NumberFormat getNumberFormat()
null
).public java.lang.String generateLabel(Crosshair crosshair)
generateLabel
in interface CrosshairLabelGenerator
crosshair
- the crosshair (null
not permitted).null
).public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).public int hashCode()
hashCode
in class java.lang.Object