Class ChartModel.Annot

  • Enclosing class:
    ChartModel

    public class ChartModel.Annot
    extends java.lang.Object
    Model of an annotation.
    • Constructor Summary

      Constructors 
      Constructor Description
      Annot​(java.lang.String key, java.lang.Object value)
      Constructs an annotation with the given key and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String key()
      Returns the annotation's key.
      java.lang.Object value()
      Returns the annotation's value.
      java.lang.String valueAsString()
      Returns the value as a string.
      • Methods inherited from class java.lang.Object

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

      • Annot

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

      • key

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

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

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