Interface ViewInteractionPanel

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.swing.JComponent getComponent()
      Returns the component that is shown if this panel is activated by the user.
      double getHeightInView()
      Returns the preferred height of this component when shown to the user.
      java.lang.String getPanelName()
      Returns the name of the panel.
      double getWidthInView()
      Returns the preferred width of this component when shown to the user.
      void setParent​(ScalableViewPanel viewPanel)
      This method is called by the ProM scalable view as soon as the panel is added to this view.
      void setScalableComponent​(ScalableComponent scalable)
      This method is called by the ProM scalable view as soon as the panel is added to this view.
      void willChangeVisibility​(boolean to)
      This method is called by the ProMScalableView panel just before the component of this interaction panel will be shown to the user or hidden from the user.
    • Method Detail

      • getPanelName

        java.lang.String getPanelName()
        Returns the name of the panel. This name is shown in the user interface when the component is not shown.
        Returns:
      • getComponent

        javax.swing.JComponent getComponent()
        Returns the component that is shown if this panel is activated by the user. Most implementations will actually override JComponent and return this in this method.
        Returns:
        a component
      • setScalableComponent

        void setScalableComponent​(ScalableComponent scalable)
        This method is called by the ProM scalable view as soon as the panel is added to this view. The scalable provided can be used for interaction.
      • setParent

        void setParent​(ScalableViewPanel viewPanel)
        This method is called by the ProM scalable view as soon as the panel is added to this view. The scalable provided can be used for interaction.
        Parameters:
        viewPanel -
      • getHeightInView

        double getHeightInView()
        Returns the preferred height of this component when shown to the user. A value between 0 and 1 (including 1) indicates a requested height relative to the height of the screen. A value greater than 1 indicates a fixed height in pixels .
        Returns:
      • getWidthInView

        double getWidthInView()
        Returns the preferred width of this component when shown to the user. A value between 0 and 1 (including 1) indicates a requested width relative to the width of the screen. A value greater than 1 indicates a fixed width in pixels.
        Returns:
      • willChangeVisibility

        void willChangeVisibility​(boolean to)
        This method is called by the ProMScalableView panel just before the component of this interaction panel will be shown to the user or hidden from the user. The height and width of the component are set to what is requested by getHeightInView() and getWidthInView();
        Parameters:
        to - TODO