Currently hashcode is this
public int hashCode() {
if (getLabel() != null) {
return getLabel().hashCode();
}
else {
return 0;
}
}
I'm caching label values as I need to hide and restore labels. Since there's no method to hide a LabelLabel (not tick Label), I'm setting values to null and storing in Map. Problem is obvious from above!
Also if I have two axes with same l label but different settings this hashCode doesn't guarantee uniqueness.
Please fix this hashCode contract. Is there a specific reason why this was coded like this? Alternatively please provide a setIsAxisLabelVisible(boolean) method.
Thanks,
Spencer