Class LayoutFactory


  • public final class LayoutFactory
    extends java.lang.Object
    Factory that provides creational methods for adding UI controls to Chart2D instances and ITrace2D instances.

    Version:
    $Revision: 1.58 $
    Author:
    Achim Westermann
    • Method Detail

      • getInstance

        public static LayoutFactory getInstance()
        Singleton retrival method.

        Returns:
        the single instance of this factory within this VM.
      • createAnnoationsMenu

        public javax.swing.JMenu createAnnoationsMenu​(ChartPanel chartPanel,
                                                      boolean adaptUI2Chart)
        Creates a menu for adding annotations to the chart panel.

        Parameters:
        chartPanel - needed to adapt the basic ui properties to (font, foreground color, background color).
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for adding annotations to the chart panel.
      • createAxisMenuItem

        public javax.swing.JMenuItem createAxisMenuItem​(IAxis<?> axis,
                                                        int axisDimension,
                                                        boolean adaptUI2Chart)
        Creates a JMenuItem that allows to trigger the features related to AAxis features.

        Parameters:
        axis - the axis to control.
        axisDimension - Identifies which dimension the axis controls in the chart: either Chart2D.X or Chart2D.Y
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a JMenuItem that allows to trigger the features related to AAxis features.
      • createAxisRangePolicyMenu

        public javax.swing.JMenu createAxisRangePolicyMenu​(Chart2D chart,
                                                           IAxis<?> axis,
                                                           boolean adaptUI2Chart)
        Creates a radio button menu for choose one the available IRangePolicy implementations to set to it's axis identified by argument axis.

        Parameters:
        axis - the axis to control.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        chart - the component to adapt the UI of this menu if adaption is requested.
        Returns:
        a radio button menu for choose one the available IRangePolicy implementations to set to it's axis identified by argument axis.
      • createAxisTitleMenu

        public javax.swing.JMenu createAxisTitleMenu​(Chart2D chart,
                                                     IAxis<?> axis,
                                                     int axisDimension,
                                                     boolean adaptUI2Chart)
        Creates a menu for settings related to the axis title of the axis of the given chart that will be identified by argument axisDimension.

        Parameters:
        axis - the axis to control.
        axisDimension - Identifies which dimension the axis controls in the chart: either Chart2D.X or Chart2D.Y
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        chart - the component to adapt the UI of this menu if adaption is requested.
        Returns:
        a menu for settings related to the axis title of the axis of the given chart that will be identified by argument axisDimension.
      • createAxisTypeMenu

        public javax.swing.JMenu createAxisTypeMenu​(Chart2D chart,
                                                    IAxis<?> axis,
                                                    int axisDimension,
                                                    boolean adaptUI2Chart)
        Creates a radio button menu for choose one the available axis types of the given chart that will be set to it's axis identified by argument axisDimension.

        Parameters:
        axis - the axis to control.
        axisDimension - Identifies which dimension the axis controls in the chart: either Chart2D.X or Chart2D.Y
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        chart - the component to adapt the UI of this menu if adaption is requested.
        Returns:
        a radio button menu for choose one the available axis types of the given chart that will be set to it's axis identified by argument axisDimension.
      • createBackgroundColorMenu

        public javax.swing.JMenu createBackgroundColorMenu​(ChartPanel chartPanel,
                                                           boolean adaptUI2Chart)
        Creates a menu for choosing the background color of the given chart.

        Parameters:
        chartPanel - the chart panel to set the background color of by the menu to return.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for choosing the background color of the given chart.
      • createChartGridMenu

        public javax.swing.JMenuItem createChartGridMenu​(ChartPanel chartPanel,
                                                         boolean adaptUI2Chart)
        Creates a menu for controlling the grid (show x, show y, color).

        Parameters:
        chartPanel - for adapting ui to and obtaining chart from.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for controlling the grid (show x, show y, color).
      • createChartHighlightMenu

        public javax.swing.JMenuItem createChartHighlightMenu​(ChartPanel chartPanel,
                                                              boolean adaptUI2Chart)
        Creates a menu for controlling highliting on the chart: enable and choose highlighter per trace.

        Parameters:
        chartPanel - the chart panel to access.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for controlling highliting on the chart: enable and choose highlighter per trace.
      • createChartMenu

        public javax.swing.JMenu createChartMenu​(ChartPanel chartPanel,
                                                 boolean adaptUI2Chart)
        Creates a menu that offers various controls over the given chart.

        Parameters:
        chartPanel - the chart panel to access.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu that offers various controls over the given chart.
      • createChartMenuBar

        public javax.swing.JMenuBar createChartMenuBar​(ChartPanel chartPanel,
                                                       boolean adaptUI2Chart)
        Creates a menu bar that offers various controls over the given chart.

        Parameters:
        chartPanel - the chart panel to access.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu bar that offers various controls over the given chart.
      • createChartPopupMenu

        public void createChartPopupMenu​(ChartPanel chartpanel,
                                         boolean adaptUI2Chart)
        Adds a popup menu to the given chart that offers various controls over it.

        Parameters:
        chartpanel - the chart panel to add the popup menue to.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
      • createChartSetToolTipTypeMenu

        public javax.swing.JMenu createChartSetToolTipTypeMenu​(ChartPanel chartPanel,
                                                               boolean adaptUI2Chart)
        Creates a menu for choosing the tool tip type of the chart.

        Parameters:
        chartPanel - for adapting ui to and obtaining chart from.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for controlling tool tips of a chart (enable, type).
        See Also:
        Chart2D.setToolTipType(info.monitorenter.gui.chart.IToolTipType)
      • createChartToolTipMenu

        public javax.swing.JMenuItem createChartToolTipMenu​(ChartPanel chartPanel,
                                                            boolean adaptUI2Chart)
        Creates a menu for controlling tool tips of a chart (enable, type).

        Parameters:
        chartPanel - for adapting ui to and obtaining chart from.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for controlling tool tips of a chart (enable, type).
      • createChartTraceHighlighterMenu

        public javax.swing.JMenu createChartTraceHighlighterMenu​(ChartPanel chartPanel,
                                                                 boolean adaptUI2Chart)
        Creates a menu for controlling highlighting on the chart: enable and choose highlighter per trace.

        Parameters:
        chartPanel - the chart panel to access.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for controlling highlighting on the chart: enable and choose highlighter per trace.
      • createErrorBarWizardMenu

        public javax.swing.JMenu createErrorBarWizardMenu​(Chart2D chart,
                                                          ITrace2D trace,
                                                          boolean adaptUI2Chart)
        Creates a menu for showing the wizard for the IErrorBarPolicy instances of the given trace.

        Parameters:
        chart - needed to adapt the basic ui properties to (font, foreground color, background color).
        trace - the trace to show the error bar wizards of.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu that offers to show the ErrorBarWizard dialogs for the given trace.
      • createForegroundColorMenu

        public javax.swing.JMenuItem createForegroundColorMenu​(ChartPanel chartPanel,
                                                               boolean adaptUI2Chart)
        Creates a menu for choosing the foreground color of the given chart.

        Parameters:
        chartPanel - the chart panel to set the foreground color of by the menu to return.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for choosing the foreground color of the given chart.
      • createGridColorMenu

        public javax.swing.JMenu createGridColorMenu​(ChartPanel chartPanel,
                                                     boolean adaptUI2Chart)
        Creates a menu for choosing the grid color of the given chart.

        Parameters:
        chartPanel - the chart panel to set the grid color of by the menu to return.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for choosing the grid color of the given chart.
      • createSaveMenu

        public javax.swing.JMenu createSaveMenu​(ChartPanel chartPanel,
                                                boolean adaptUI2Chart)
        Creates a menu for saving the chart with the options to save as an image or an encapsulated postscript file.

        Parameters:
        chartPanel - needed to adapt the basic ui properties to (font, foreground color, background color).
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for saving the chart with the options to save as an image or an encapsulated postscript file.
      • createTraceColorMenu

        public javax.swing.JMenu createTraceColorMenu​(Chart2D chart,
                                                      ITrace2D trace,
                                                      javax.swing.JComponent parent,
                                                      boolean adaptUI2Chart)
        Creates a menu for choosing the color of the given trace.

        Parameters:
        chart - needed to adapt the basic ui properties to (font, foreground color, background color).
        trace - the trace to set the color of.
        parent - needed for a modal dialog for custom color as parent component.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for choosing the color of the given trace.
      • createTraceContextMenuLabel

        public javax.swing.JLabel createTraceContextMenuLabel​(Chart2D chart,
                                                              ITrace2D trace,
                                                              boolean adaptUI2Chart)
        Creates a JLabel that is capable of triggering a JPopupMenu for the settings available for the ITrace2D or null if ITrace2D.getLabel() on the given trace argument returns null.

        Parameters:
        chart - The chart the given trace is a member of. This will be used for getting a PopupMenu that adapts to layout properties (such as background color).
        trace - The trace on which the JPopupMenu of the JLabel will act.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a label that offers a popup menu with controls for the given trace or null if ITrace2D.getLabel() on the given trace argument returns null.
      • createTracePainterMenu

        public javax.swing.JMenu createTracePainterMenu​(Chart2D chart,
                                                        ITrace2D trace,
                                                        boolean adaptUI2Chart)
        Creates a menu for choosing the ITracePainter of the given trace.

        Parameters:
        chart - needed to adapt the basic ui properties to (font, foreground color, background color).
        trace - the trace to set the painter of.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for choosing the ITracePainter of the given trace.
      • createTraceStrokesMenu

        public javax.swing.JMenu createTraceStrokesMenu​(Chart2D chart,
                                                        ITrace2D trace,
                                                        boolean adaptUI2Chart)
        Creates a menu for choosing the Stroke of the given trace.

        Parameters:
        chart - needed to adapt the basic ui properties to (font, foreground color, background color).
        trace - the trace to set the stroke of.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for choosing the stroke of the given trace.
      • createTraceZindexMenu

        public javax.swing.JMenu createTraceZindexMenu​(Chart2D chart,
                                                       ITrace2D trace,
                                                       boolean adaptUI2Chart)
        Creates a menu for choosing the z-index of the given trace.

        Parameters:
        chart - needed to adapt the basic ui properties to (font, foreground color, background color).
        trace - the trace to set the z-index of.
        adaptUI2Chart - if true the menu will adapt it's basic UI properies (font, foreground and background color) to the given chart.
        Returns:
        a menu for choosing the z-index of the given trace.
      • isShowAnnotationMenu

        public final boolean isShowAnnotationMenu()
        Returns the showAnnotationMenu.

        Returns:
        the showAnnotationMenu
      • isShowAntialiasingMenu

        public boolean isShowAntialiasingMenu()
        Returns whether the antialiasing menu item is shown.

        Returns:
        whether the antialiasing menu item is shown.
      • isShowAxisFormatterMenu

        public boolean isShowAxisFormatterMenu()
        Returns whether the axis label formatter menu is shown.

        Returns:
        whether the axis label formatter menu is shown.
      • isShowAxisXGridMenu

        public final boolean isShowAxisXGridMenu()
        Returns wether the chart show x grid menu should be created.

        Returns:
        the showAxisXGridMenu.
      • isShowAxisXMenu

        public final boolean isShowAxisXMenu()
        Returns whether the axis x menu is shown.

        Returns:
        the showAxisXMenu.
      • isShowAxisXRangePolicyMenu

        public final boolean isShowAxisXRangePolicyMenu()
        Returns whether the axis x range policy menu is shown.

        Returns:
        the showAxisXRangePolicyMenu.
      • isShowAxisXTitleMenu

        public final boolean isShowAxisXTitleMenu()
        Returns:
        true if axis title x menu should be shown.
      • isShowAxisXTypeMenu

        public final boolean isShowAxisXTypeMenu()
        Returns whether the axis x type menu is shown.

        Returns:
        the showAxisXTypeMenu.
      • isShowAxisYGridMenu

        public final boolean isShowAxisYGridMenu()
        Returns whether the axis y show grid menu is shown.

        Returns:
        the showAxisYGridMenu.
      • isShowAxisYMenu

        public final boolean isShowAxisYMenu()
        Returns whether the axis y menu is shown.

        Returns:
        the showAxisYMenu.
      • isShowAxisYRangePolicyMenu

        public final boolean isShowAxisYRangePolicyMenu()
        Returns whether the axis y range policy menu is shown.

        Returns:
        the showAxisYRangePolicyMenu.
      • isShowAxisYTitleMenu

        public final boolean isShowAxisYTitleMenu()
        Returns:
        true if axis title y menu should be shown.
      • isShowAxisYTypeMenu

        public final boolean isShowAxisYTypeMenu()
        Returns whether the axis y type menu is shown.

        Returns:
        the showAxisYTypeMenu.
      • isShowChartBackgroundMenu

        public final boolean isShowChartBackgroundMenu()
        Returns whether the chart set background color menu is shown.

        Returns:
        the showChartBackgroundMenu.
      • isShowChartForegroundMenu

        public final boolean isShowChartForegroundMenu()
        Returns whether the chart set foreground color menu is shown.

        Returns:
        the showChartForegroundMenu.
      • isShowChartHighlighterMenu

        public boolean isShowChartHighlighterMenu()
        Returns true if the chart menu for highlighting traces is shown.

        Returns:
        true if the chart menu for highlighting traces is shown.
      • isShowErrorBarWizardMenu

        public final boolean isShowErrorBarWizardMenu()
        Returns:
        true if the error bar wizard menu should be shown.
      • isShowGridColorMenu

        public final boolean isShowGridColorMenu()
        Returns whether the chart grid color menu is shown.

        Returns:
        the showGridColorMenu.
      • isShowGridMenu

        public boolean isShowGridMenu()
        Returns whether the chart grid menu is shown.

        Returns:
        true if the chart grid menu is shown.
      • isShowHighlightMenu

        public boolean isShowHighlightMenu()
        Returns whether the highlight menu item is shown.

        Returns:
        true if the highlight menu item is visible.
      • isShowPhysicalUnitsMenu

        public final boolean isShowPhysicalUnitsMenu()
        Returns:
        the showPhysicalUnitsMenu.
      • isShowPrintMenu

        public final boolean isShowPrintMenu()
        Returns the showPrintMenu.

        Returns:
        the showPrintMenu
      • isShowRemoveTraceMenu

        public final boolean isShowRemoveTraceMenu()
        Returns:
        the showRemoveTraceMenu.
      • isShowSaveEpsMenu

        public final boolean isShowSaveEpsMenu()
        Returns:
        the showSaveEpsMenu.
      • isShowSaveMenu

        public final boolean isShowSaveMenu()
        Returns whether the save image menu is shown.

        Returns:
        the showSaveImageMenu.
      • isShowToolTipMenu

        public boolean isShowToolTipMenu()
        Returns whether the tool tip for chart menu item is shown.

        Returns:
        true if the tool tip for chart menu item is visible.
      • isShowToolTipTypeMenu

        public boolean isShowToolTipTypeMenu()
        Returns whether the tool tip type for chart menu item is shown.

        Returns:
        true if the tool tip type for chart menu item is shown..
      • isShowTraceColorMenu

        public final boolean isShowTraceColorMenu()
        Returns:
        the showTraceColorMenu.
      • isShowTraceHighlighterMenu

        public boolean isShowTraceHighlighterMenu()
        Returns whether the trace highlighter menu is shown.

        This is the highlighter menu triggered by right clicking the trace name.

        Returns:
        true if the trace highlighter menu is visible.
      • isShowTraceNameMenu

        public final boolean isShowTraceNameMenu()
        Returns:
        the showTraceNameMenu.
      • isShowTracePainterMenu

        public final boolean isShowTracePainterMenu()
        Returns:
        the showTracePainterMenu.
      • isShowTraceStrokeMenu

        public final boolean isShowTraceStrokeMenu()
        Returns:
        the showTraceStrokeMenu.
      • isShowTraceVisibleMenu

        public final boolean isShowTraceVisibleMenu()
        Returns:
        the showTraceVisibleMenu.
      • isShowTraceZindexMenu

        public final boolean isShowTraceZindexMenu()
        Returns:
        the showTraceZindexMenu.
      • isShowZoomOutMenu

        public final boolean isShowZoomOutMenu()
        Returns:
        true if the zoom out menu should be shown.
      • isZoomOutMenu

        public final boolean isZoomOutMenu()
        Returns:
        the showZoomOutMenu.
      • setShowAnnotationMenu

        public final void setShowAnnotationMenu​(boolean showAnnotationMenu)
        Sets the showAnnotationMenu.

        Parameters:
        showAnnotationMenu - the showAnnotationMenu to set
      • setShowAntialiasingMenu

        public void setShowAntialiasingMenu​(boolean showAntialiasingMenu)
        Set whether the antialiasing menu item is shown.

        Parameters:
        showAntialiasingMenu - true if the antialiasing menu item should be visible.
      • setShowAxisFormatterMenu

        public void setShowAxisFormatterMenu​(boolean showAxisFormatterMenu)
        Sets whether the axis label formatter menu is shown.

        Parameters:
        showAxisFormatterMenu - controls whether the axis label formatter menu is shown.
      • setShowAxisXGridMenu

        public final void setShowAxisXGridMenu​(boolean showAxisXGridMenu)
        Set wether the axis x show grid menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showAxisXGridMenu - The showAxisXGridMenu to set.
      • setShowAxisXMenu

        public final void setShowAxisXMenu​(boolean showAxisXMenu)
        Set wether the axis x menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showAxisXMenu - The showAxisXMenu to set.
      • setShowAxisXRangePolicyMenu

        public final void setShowAxisXRangePolicyMenu​(boolean showAxisXRangePolicyMenu)
        Set wether the axis x range policy menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showAxisXRangePolicyMenu - The showAxisXRangePolicyMenu to set.
      • setShowAxisXTitleMenu

        public final void setShowAxisXTitleMenu​(boolean showAxisXTitleMenu)
        Set whether the axis x title menu should be shown.
        Parameters:
        showAxisXTitleMenu - true if the axis x title menu should be shown.
      • setShowAxisXTypeMenu

        public final void setShowAxisXTypeMenu​(boolean showAxisXTypeMenu)
        Set wether the axis x type menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showAxisXTypeMenu - The showAxisXTypeMenu to set.
      • setShowAxisYGridMenu

        public final void setShowAxisYGridMenu​(boolean showAxisYGridMenu)
        Set wether the axis y show grid menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showAxisYGridMenu - The showAxisYGridMenu to set.
      • setShowAxisYMenu

        public final void setShowAxisYMenu​(boolean showAxisYMenu)
        Set wether the axis y menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showAxisYMenu - The showAxisYMenu to set.
      • setShowAxisYRangePolicyMenu

        public final void setShowAxisYRangePolicyMenu​(boolean showAxisYRangePolicyMenu)
        Set wether the axis y range policy menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showAxisYRangePolicyMenu - The showAxisYRangePolicyMenu to set.
      • setShowAxisYTitleMenu

        public final void setShowAxisYTitleMenu​(boolean showAxisYTitleMenu)
        Set whether the axis y title menu should be shown.
        Parameters:
        showAxisYTitleMenu - true if the axis y title menu should be shown.
      • setShowAxisYTypeMenu

        public final void setShowAxisYTypeMenu​(boolean showAxisYTypeMenu)
        Set wether the axis y type menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showAxisYTypeMenu - The showAxisYTypeMenu to set.
      • setShowChartBackgroundMenu

        public final void setShowChartBackgroundMenu​(boolean showChartBackgroundMenu)
        Set wether the chart set background menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showChartBackgroundMenu - The showChartBackgroundMenu to set.
      • setShowChartForegroundMenu

        public final void setShowChartForegroundMenu​(boolean showChartForegroundMenu)
        Set wether the chart set foreground menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showChartForegroundMenu - The showChartForegroundMenu to set.
      • setShowChartHighlighterMenu

        public void setShowChartHighlighterMenu​(boolean showChartHighlighterMenu)
        Set whether the chart menu for highlighting traces should be visible.

        Parameters:
        showChartHighlighterMenu - controls whether the chart menu for highlighting traces should be visible.
      • setShowErrorBarWizardMenu

        public final void setShowErrorBarWizardMenu​(boolean showErrorBarWizardMenu)
        Set whether the error bar wizard menu should be shown.
        Parameters:
        showErrorBarWizardMenu - true if the error bar wizard menu should be shown.
      • setShowGridColorMenu

        public final void setShowGridColorMenu​(boolean showGridColorMenu)
        Set wether the chart grid color menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showGridColorMenu - The showGridColorMenu to set.
      • setShowGridMenu

        public void setShowGridMenu​(boolean showGridMenu)
        Set whether the chart grid menu is shown.

        Parameters:
        showGridMenu - true if the chart grid menu should be visible.
      • setShowHighlightMenu

        public void setShowHighlightMenu​(boolean showHighlightMenu)
        Set whether the highlight menu item should be visible.

        Parameters:
        showHighlightMenu - true if the highlight menu item should be visible.
      • setShowPhysicalUnitsMenu

        public final void setShowPhysicalUnitsMenu​(boolean showPhysicalUnitsMenu)
        Parameters:
        showPhysicalUnitsMenu - The showPhysicalUnitsMenu to set.
      • setShowPrintMenu

        public final void setShowPrintMenu​(boolean showPrintMenu)
        Sets the showPrintMenu.

        Parameters:
        showPrintMenu - the showPrintMenu to set
      • setShowRemoveTraceMenu

        public final void setShowRemoveTraceMenu​(boolean showRemoveTraceMenu)
        Parameters:
        showRemoveTraceMenu - The showRemoveTraceMenu to set.
      • setShowSaveEpsMenu

        public final void setShowSaveEpsMenu​(boolean showSaveEpsMenu)
        Parameters:
        showSaveEpsMenu - the showSaveEpsMenu to set
      • setShowSaveMenu

        public final void setShowSaveMenu​(boolean showSaveMenu)
        Set wether the save menu should be created.

        Configure this before using any instance of ChartPanel or it will be useless.

        Parameters:
        showSaveMenu - The showSaveMenu to set.
      • setShowTooltipEnableMenu

        public void setShowTooltipEnableMenu​(boolean showToolTipTypeMenu)
        Set whether the tool tip type for chart menu item is shown.

        Parameters:
        showToolTipTypeMenu - true if the tool tip type for chart menu item should be visible.
      • setShowToolTipMenu

        public void setShowToolTipMenu​(boolean showToolTipMenu)
        Sets whether the tool tip for chart menu item should be shown.

        Parameters:
        showToolTipMenu - true if the tool tip for chart menu item should be visible.
      • setShowTraceColorMenu

        public final void setShowTraceColorMenu​(boolean showTraceColorMenu)
        Parameters:
        showTraceColorMenu - The showTraceColorMenu to set.
      • setShowTraceHighlighterMenu

        public void setShowTraceHighlighterMenu​(boolean showTraceHighlighterMenu)
        Set whether the trace highlighter menu should be visible.

        This is the highlighter menu triggered by right clicking the trace name.

        Parameters:
        showTraceHighlighterMenu - true if the trace highlighter menu should be visible.
      • setShowTraceNameMenu

        public final void setShowTraceNameMenu​(boolean showTraceNameMenu)
        Parameters:
        showTraceNameMenu - The showTraceNameMenu to set.
      • setShowTracePainterMenu

        public final void setShowTracePainterMenu​(boolean showTracePainterMenu)
        Parameters:
        showTracePainterMenu - The showTracePainterMenu to set.
      • setShowTraceStrokeMenu

        public final void setShowTraceStrokeMenu​(boolean showTraceStrokeMenu)
        Parameters:
        showTraceStrokeMenu - The showTraceStrokeMenu to set.
      • setShowTraceVisibleMenu

        public final void setShowTraceVisibleMenu​(boolean showTraceVisibleMenu)
        Parameters:
        showTraceVisibleMenu - The showTraceVisibleMenu to set.
      • setShowTraceZindexMenu

        public final void setShowTraceZindexMenu​(boolean showTraceZindexMenu)
        Parameters:
        showTraceZindexMenu - The showTraceZindexMenu to set.
      • setShowZoomOutMenu

        public final void setShowZoomOutMenu​(boolean showZoomOutMenu)
        Set whether the zoom out menu should be shown.
        Parameters:
        showZoomOutMenu - true if the zoom out menu should be shown.
      • setZoomOutMenu

        public final void setZoomOutMenu​(boolean showZoomOutMenu)
        Parameters:
        showZoomOutMenu - The showZoomOutMenu to set.