Class ChartViewSkin

    • Constructor Detail

      • ChartViewSkin

        public ChartViewSkin()
    • Method Detail

      • install

        public void install​(Component component)
        Description copied from class: ComponentSkin
        Must be implemented in every subclass in order to do component-specific operations at instantiation time, but every subclass must call this superclass method to setup the necessary listeners, etc.
        Specified by:
        install in interface Skin
        Overrides:
        install in class ComponentSkin
        Parameters:
        component - The component to which the skin is being attached.
      • layout

        public void layout()
        Description copied from interface: Skin
        If the component on which the skin is installed is a container, lays out the container's children.
        Specified by:
        layout in interface Skin
      • getBackgroundColor

        public java.awt.Color getBackgroundColor()
      • setBackgroundColor

        public void setBackgroundColor​(java.awt.Color backgroundColor)
      • chartDataChanged

        public void chartDataChanged​(ChartView chartView,
                                     List<?> previousChartData)
        Description copied from interface: ChartViewListener
        Fired when a chart view's data changes.
        Specified by:
        chartDataChanged in interface ChartViewListener
        Parameters:
        chartView - The chart that is changing.
        previousChartData - Previous data for the chart.
      • seriesNameKeyChanged

        public void seriesNameKeyChanged​(ChartView chartView,
                                         java.lang.String previousSeriesNameKey)
        Description copied from interface: ChartViewListener
        Fired when a chart view's series name key changes.
        Specified by:
        seriesNameKeyChanged in interface ChartViewListener
        Parameters:
        chartView - The chart that is changing.
        previousSeriesNameKey - Previous value of the key for the series name.
      • titleChanged

        public void titleChanged​(ChartView chartView,
                                 java.lang.String previousTitle)
        Description copied from interface: ChartViewListener
        Fired when a chart view's title changes.
        Specified by:
        titleChanged in interface ChartViewListener
        Parameters:
        chartView - The chart that changed.
        previousTitle - Previous title for this chart.
      • horizontalAxisLabelChanged

        public void horizontalAxisLabelChanged​(ChartView chartView,
                                               java.lang.String previousHorizontalAxisLabel)
        Description copied from interface: ChartViewListener
        Fired when a chart view's horizontal axis label changes.
        Specified by:
        horizontalAxisLabelChanged in interface ChartViewListener
        Parameters:
        chartView - The chart that has changed.
        previousHorizontalAxisLabel - Previous value of the horizontal axis label.
      • verticalAxisLabelChanged

        public void verticalAxisLabelChanged​(ChartView chartView,
                                             java.lang.String previousVerticalAxisLabel)
        Description copied from interface: ChartViewListener
        Fired when a chart view's vertical axis label changes.
        Specified by:
        verticalAxisLabelChanged in interface ChartViewListener
        Parameters:
        chartView - The chart that has changed.
        previousVerticalAxisLabel - Previous value of the vertical axis label.
      • showLegendChanged

        public void showLegendChanged​(ChartView chartView)
        Description copied from interface: ChartViewListener
        Fired when a chart view's "show legend" flag changes.
        Specified by:
        showLegendChanged in interface ChartViewListener
        Parameters:
        chartView - The chart that has changed.
      • categoryInserted

        public void categoryInserted​(ChartView chartView,
                                     int index)
        Description copied from interface: ChartViewCategoryListener
        Fired when a category is inserted into a chart view.
        Specified by:
        categoryInserted in interface ChartViewCategoryListener
        Parameters:
        chartView - The chart that is changing.
        index - The index of the new category that was inserted.
      • categoryKeyChanged

        public void categoryKeyChanged​(ChartView chartView,
                                       int index,
                                       java.lang.String previousKey)
        Description copied from interface: ChartViewCategoryListener
        Fired when a chart view's category key changes.
        Specified by:
        categoryKeyChanged in interface ChartViewCategoryListener
        Parameters:
        chartView - The chart that is changing.
        index - The index of the category whose key changed.
        previousKey - Previous value of the changed key.
      • categoryLabelChanged

        public void categoryLabelChanged​(ChartView chartView,
                                         int index,
                                         java.lang.String previousLabel)
        Description copied from interface: ChartViewCategoryListener
        Fired when a chart view's category label changes.
        Specified by:
        categoryLabelChanged in interface ChartViewCategoryListener
        Parameters:
        chartView - The chart that is changing.
        index - The index of the category whose label changed.
        previousLabel - Previous value of the changed label.
      • seriesInserted

        public void seriesInserted​(ChartView chartView,
                                   int index)
        Description copied from interface: ChartViewSeriesListener
        Fired when a series is inserted into a chart view's data set.
        Specified by:
        seriesInserted in interface ChartViewSeriesListener
        Parameters:
        chartView - The chart that has changed.
        index - Index of the series that was inserted.
      • seriesRemoved

        public void seriesRemoved​(ChartView chartView,
                                  int index,
                                  int count)
        Description copied from interface: ChartViewSeriesListener
        Fired when a series is removed from a chart view's data set.
        Specified by:
        seriesRemoved in interface ChartViewSeriesListener
        Parameters:
        chartView - The chart that has changed.
        index - Starting index of the removed series.
        count - Number of series removed.
      • seriesUpdated

        public void seriesUpdated​(ChartView chartView,
                                  int index)
        Description copied from interface: ChartViewSeriesListener
        Fired when a series is updated in a chart view's data set.
        Specified by:
        seriesUpdated in interface ChartViewSeriesListener
        Parameters:
        chartView - The chart that has changed.
        index - Index of the series that was updated.