
nl.pvanassen.highchart.api.serializer.DateTimeLabelFormatsSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of highchart-java-api Show documentation
Show all versions of highchart-java-api Show documentation
A Java API to generate highchart json on the server side.
The newest version!
package nl.pvanassen.highchart.api.serializer;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import nl.pvanassen.highchart.api.format.DateTimeLabelFormats;
import nl.pvanassen.highchart.api.format.DateTimeLabelFormats.TimeUnit;
public class DateTimeLabelFormatsSerializer extends Serializer {
@Override
public Map getProperties(DateTimeLabelFormats instance) {
Map map = instance.getFormats();
Map r = new HashMap();
for (Entry e : map.entrySet()) {
r.put(e.getKey().name().toLowerCase(), e.getValue());
}
return r;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy