Package org.zkoss.zul

Class SimpleCategoryModel

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      clear the model.
      java.lang.Object clone()  
      java.util.Collection<java.lang.Comparable<?>> getCategories()
      Get categories of a specified series as a collection.
      java.lang.Comparable<?> getCategory​(int index)
      Get a category of the specified index;
      java.util.Collection<java.util.List<java.lang.Comparable<?>>> getKeys()
      Get (series, category) pairs of this chart data model.
      java.util.Collection<java.lang.Comparable<?>> getSeries()
      Get all series as a collection.
      java.lang.Comparable<?> getSeries​(int index)
      Get a series of the specified index;
      java.lang.Number getValue​(java.lang.Comparable<?> series, java.lang.Comparable<?> category)
      Get value of the specified series and category.
      void removeValue​(java.lang.Comparable<?> series, java.lang.Comparable<?> category)
      remove the value of the specified series and category.
      void setValue​(java.lang.Comparable<?> series, java.lang.Comparable<?> category, java.lang.Number value)
      add or update the value of a specified series and category.
      • Methods inherited from class java.lang.Object

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

      • SimpleCategoryModel

        public SimpleCategoryModel()
    • Method Detail

      • getSeries

        public java.lang.Comparable<?> getSeries​(int index)
        Description copied from interface: CategoryModel
        Get a series of the specified index;
        Specified by:
        getSeries in interface CategoryModel
      • getSeries

        public java.util.Collection<java.lang.Comparable<?>> getSeries()
        Description copied from interface: CategoryModel
        Get all series as a collection.
        Specified by:
        getSeries in interface CategoryModel
      • getCategory

        public java.lang.Comparable<?> getCategory​(int index)
        Description copied from interface: CategoryModel
        Get a category of the specified index;
        Specified by:
        getCategory in interface CategoryModel
      • getCategories

        public java.util.Collection<java.lang.Comparable<?>> getCategories()
        Description copied from interface: CategoryModel
        Get categories of a specified series as a collection.
        Specified by:
        getCategories in interface CategoryModel
      • getValue

        public java.lang.Number getValue​(java.lang.Comparable<?> series,
                                         java.lang.Comparable<?> category)
        Description copied from interface: CategoryModel
        Get value of the specified series and category.
        Specified by:
        getValue in interface CategoryModel
        Parameters:
        series - the series
        category - the category.
      • setValue

        public void setValue​(java.lang.Comparable<?> series,
                             java.lang.Comparable<?> category,
                             java.lang.Number value)
        Description copied from interface: CategoryModel
        add or update the value of a specified series and category.
        Specified by:
        setValue in interface CategoryModel
        Parameters:
        series - the series
        category - the category.
        value - the value
      • removeValue

        public void removeValue​(java.lang.Comparable<?> series,
                                java.lang.Comparable<?> category)
        Description copied from interface: CategoryModel
        remove the value of the specified series and category.
        Specified by:
        removeValue in interface CategoryModel
        Parameters:
        series - the series
        category - the category.