Class LabelsRotationSerializer

java.lang.Object
tools.jackson.databind.ValueSerializer<String>
com.vaadin.flow.component.charts.model.serializers.LabelsRotationSerializer
All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class LabelsRotationSerializer extends tools.jackson.databind.ValueSerializer<String>
Serializer for Labels.getRotation(). Attempts to serialize the rotation value as a number, otherwise falls back to writing it as a string to support values like "auto".
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer

    tools.jackson.databind.ValueSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(String value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext context)
     

    Methods inherited from class tools.jackson.databind.ValueSerializer

    acceptJsonFormatVisitor, createContextual, getDelegatee, handledType, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, resolve, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LabelsRotationSerializer

      public LabelsRotationSerializer()
  • Method Details

    • serialize

      public void serialize(String value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext context)
      Specified by:
      serialize in class tools.jackson.databind.ValueSerializer<String>