Class DiagramView
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.ViewPart
-
- edu.kit.ipd.sdq.eventsim.rvisualization.views.DiagramView
-
- All Implemented Interfaces:
IAdaptable
,IExecutableExtension
,IPersistable
,IViewPart
,IWorkbenchPart
,IWorkbenchPart2
,IWorkbenchPart3
,IWorkbenchPartOrientation
public class DiagramView extends ViewPart
View used to display a generated diagram.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID
-
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
-
Constructor Summary
Constructors Constructor Description DiagramView()
Create a new diagram view to show a diagram.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDisposeListener(Procedure p)
void
createPartControl(Composite parent)
void
dispose()
DiagramController
getController()
Display
getDisplay()
String
getFilterExpression()
String
getLastRCommand()
String
getPathToDiagramImage()
StatisticsViewer
getStatisticsViewer()
void
removeDisposeListener(Procedure p)
void
setController(DiagramController ctrl)
void
setDiagramImage(String pathToImage)
Set views diagram image.void
setFilterExpression(String filterExpression)
void
setFocus()
void
setRCommandString(String rCmd)
Set R command string which was used to plot the diagram.void
setViewTitle(String title)
Set views title.void
showStatisticsArea(boolean show)
-
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
-
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DiagramView
public DiagramView()
Create a new diagram view to show a diagram. The diagram image must be set by using thesetDiagramImage(String)
method and the R command string by using thesetRCommandString(String)
.
-
-
Method Detail
-
addDisposeListener
public void addDisposeListener(Procedure p)
-
removeDisposeListener
public void removeDisposeListener(Procedure p)
-
getFilterExpression
public String getFilterExpression()
-
setFilterExpression
public void setFilterExpression(String filterExpression)
-
getPathToDiagramImage
public String getPathToDiagramImage()
-
getLastRCommand
public String getLastRCommand()
-
createPartControl
public final void createPartControl(Composite parent)
- Specified by:
createPartControl
in interfaceIWorkbenchPart
- Specified by:
createPartControl
in classWorkbenchPart
-
getStatisticsViewer
public StatisticsViewer getStatisticsViewer()
-
showStatisticsArea
public void showStatisticsArea(boolean show)
-
setFocus
public void setFocus()
- Specified by:
setFocus
in interfaceIWorkbenchPart
- Specified by:
setFocus
in classWorkbenchPart
-
dispose
public final void dispose()
- Specified by:
dispose
in interfaceIWorkbenchPart
- Overrides:
dispose
in classWorkbenchPart
-
setController
public void setController(DiagramController ctrl)
-
getController
public DiagramController getController()
-
setDiagramImage
public final void setDiagramImage(String pathToImage)
Set views diagram image.- Parameters:
pathToImage
- Path to an image.
-
setRCommandString
public final void setRCommandString(String rCmd)
Set R command string which was used to plot the diagram.- Parameters:
rCmd
- R command string.
-
setViewTitle
public final void setViewTitle(String title)
Set views title.- Parameters:
title
- View title.
-
getDisplay
public Display getDisplay()
-
-