Class Chart

  • Direct Known Subclasses:
    BarChart, LineChart, PieChart

    public abstract class Chart
    extends java.lang.Object
    Implementations extend this
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.HashMap<java.lang.String,​java.lang.Class<?>> chartTypes  
    • Field Detail

      • chartTypes

        public static final java.util.HashMap<java.lang.String,​java.lang.Class<?>> chartTypes
    • Method Detail

      • getName

        public static java.lang.String getName()
        Returns the identification name of the chart
        Returns:
        the identification name of the chart
      • getInstance

        public static Chart getInstance​(java.lang.String typeName)
                                 throws java.util.NoSuchElementException
        Throws:
        java.util.NoSuchElementException
      • draw

        public abstract Layer draw​(Graph graph,
                                   boolean doDraw)