Interface PlotterBaseInterface

  • All Known Implementing Classes:
    PlotterBaseJavaSE

    public interface PlotterBaseInterface
    Interface encapsulating platform dependent code of the PlotterBase from the platform independent parts.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Anar Huseynov
    Pt.AcceptedRating:
    Red (ahuseyno)
    Pt.ProposedRating:
    Red (ahuseyno)
    • Method Detail

      • cleanUp

        void cleanUp()
        Free up memory when closing.
      • bringToFront

        void bringToFront()
        Bring the plotter frame to the front.
      • getFrame

        java.lang.Object getFrame()
        Get the plotter's frame.
        Returns:
        the plotter's frame.
        See Also:
        setFrame(Object)
      • getPlatformContainer

        java.lang.Object getPlatformContainer()
        Get the platform dependent container that contains the plotter.
        Returns:
        the platform dependent container.
        See Also:
        setPlatformContainer(Object)
      • getTableau

        java.lang.Object getTableau()
        Get the plotter tableau.
        Returns:
        the plotter tableau.
      • init

        void init​(PlotterBase plotterBase)
        Initialize the implementation.
        Parameters:
        plotterBase - the instance that created the implementation.
      • newPlot

        PlotBoxInterface newPlot()
        Create a new instance of the PlotBoxInterface implementation.
        Returns:
        a new instance of the PlotBoxInterface implementation.
      • remove

        void remove()
        Remove the plot from the current container, if there is one.
      • removeNullContainer

        void removeNullContainer()
        Remove the plot from the frame if the container is null.
      • setFrame

        void setFrame​(java.lang.Object frame)
        Set the frame of the plotter.
        Parameters:
        frame - The frame to set.
        See Also:
        getFrame()
      • setTableauTitle

        void setTableauTitle​(java.lang.String title)
        Set the title of the tableau.
        Parameters:
        title - the title to set.
      • setPlatformContainer

        void setPlatformContainer​(java.lang.Object container)
        Set the platform dependent container of the plotter. The container can be AWT container or Android view.
        Parameters:
        container - the platform dependent container.
        See Also:
        getPlatformContainer()
      • updateSize

        void updateSize()
        Update size attribute of the plotter.
      • updateWindowAndSizeAttributes

        void updateWindowAndSizeAttributes()
        Update values of the attributes.