Class ChartModel.Annot

  • Enclosing class:
    ChartModel

    public class ChartModel.Annot
    extends Object
    Model of an annotation.
    • Constructor Detail

      • Annot

        public Annot​(String key,
                     Object value)
        Constructs an annotation with the given key and value.
        Parameters:
        key - the key
        value - the value
    • Method Detail

      • key

        public String key()
        Returns the annotation's key.
        Returns:
        key
      • value

        public Object value()
        Returns the annotation's value.
        Returns:
        value
      • valueAsString

        public String valueAsString()
        Returns the value as a string. This default implementation uses the value's toString() method.
        Returns:
        the value as a string