Interface ViewInteractionPanel
-
- All Superinterfaces:
ScalableComponent.UpdateListener
- All Known Implementing Classes:
AbstractSelectionPanel,CompoundViewInteractionPanel,ExportInteractionPanel,ListSelectionPanel,PIPInteractionPanel,ZoomInteractionPanel
public interface ViewInteractionPanel extends ScalableComponent.UpdateListener
This interaction panel is used in the ProMScalableView. It is interacting with the view.- Author:
- bfvdonge
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.swing.JComponentgetComponent()Returns the component that is shown if this panel is activated by the user.doublegetHeightInView()Returns the preferred height of this component when shown to the user.java.lang.StringgetPanelName()Returns the name of the panel.doublegetWidthInView()Returns the preferred width of this component when shown to the user.voidsetParent(ScalableViewPanel viewPanel)This method is called by the ProM scalable view as soon as the panel is added to this view.voidsetScalableComponent(ScalableComponent scalable)This method is called by the ProM scalable view as soon as the panel is added to this view.voidwillChangeVisibility(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.-
Methods inherited from interface org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener
updated
-
-
-
-
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 returnthisin 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
-
-