Class XChartPanel<T extends org.knowm.xchart.internal.chartpart.Chart>

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class XChartPanel<T extends org.knowm.xchart.internal.chartpart.Chart>
    extends JPanel
    A Swing JPanel that contains a Chart

    Right-click + Save As... or ctrl+S pops up a Save As dialog box for saving the chart as PNG, JPEG, etc. file.

    Author:
    timmolter
    See Also:
    Serialized Form
    • Constructor Detail

      • XChartPanel

        public XChartPanel​(T chart)
        Constructor
        Parameters:
        chart -
    • Method Detail

      • setSaveAsString

        public void setSaveAsString​(String saveAsString)
        Set the "Save As..." String if you want to localize it.
        Parameters:
        saveAsString -
      • setExportAsString

        public void setExportAsString​(String exportAsString)
        Set the "Export As..." String if you want to localize it.
        Parameters:
        exportAsString -
      • getChart

        public T getChart()