Class ChartConfiguration

  • All Implemented Interfaces:
    java.io.Serializable

    public class ChartConfiguration
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • ChartConfiguration

        public ChartConfiguration()
    • Method Detail

      • addBarChart

        public void addBarChart​(BarChart vBarChart)
                         throws java.lang.IndexOutOfBoundsException
        Parameters:
        vBarChart -
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • addBarChart

        public void addBarChart​(int index,
                                BarChart vBarChart)
                         throws java.lang.IndexOutOfBoundsException
        Parameters:
        index -
        vBarChart -
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • enumerateBarChart

        public java.util.Enumeration<BarChart> enumerateBarChart()
        Method enumerateBarChart.
        Returns:
        an Enumeration over all possible elements of this collection
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides the Object.equals method.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
        Returns:
        true if the objects are equal.
      • getBarChart

        public BarChart getBarChart​(int index)
                             throws java.lang.IndexOutOfBoundsException
        Method getBarChart.
        Parameters:
        index -
        Returns:
        the value of the BarChart at the given index
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • getBarChart

        public BarChart[] getBarChart()
        Method getBarChart.Returns the contents of the collection in an Array.

        Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

        Returns:
        this collection as an Array
      • getBarChartCollection

        public java.util.List<BarChart> getBarChartCollection()
        Method getBarChartCollection.Returns a reference to 'barChartList'. No type checking is performed on any modifications to the Vector.
        Returns:
        a reference to the Vector backing this class
      • getBarChartCount

        public int getBarChartCount()
        Method getBarChartCount.
        Returns:
        the size of this collection
      • hashCode

        public int hashCode()
        Method hashCode.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code value for the object.
      • iterateBarChart

        public java.util.Iterator<BarChart> iterateBarChart()
        Method iterateBarChart.
        Returns:
        an Iterator over all possible elements in this collection
      • removeAllBarChart

        public void removeAllBarChart()
      • removeBarChart

        public boolean removeBarChart​(BarChart vBarChart)
        Method removeBarChart.
        Parameters:
        vBarChart -
        Returns:
        true if the object was removed from the collection.
      • removeBarChartAt

        public BarChart removeBarChartAt​(int index)
        Method removeBarChartAt.
        Parameters:
        index -
        Returns:
        the element removed from the collection
      • setBarChart

        public void setBarChart​(int index,
                                BarChart vBarChart)
                         throws java.lang.IndexOutOfBoundsException
        Parameters:
        index -
        vBarChart -
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • setBarChart

        public void setBarChart​(BarChart[] vBarChartArray)
        Parameters:
        vBarChartArray -
      • setBarChart

        public void setBarChart​(java.util.List<BarChart> vBarChartList)
        Sets the value of 'barChartList' by copying the given Vector. All elements will be checked for type safety.
        Parameters:
        vBarChartList - the Vector to copy.
      • setBarChartCollection

        public void setBarChartCollection​(java.util.List<BarChart> barChartList)
        Deprecated.
        Sets the value of 'barChartList' by setting it to the given Vector. No type checking is performed.
        Parameters:
        barChartList - the Vector to set.