Class AbstractVisualizationInput<T extends AbstractVisualizationSingleDatastreamInput>
- java.lang.Object
-
- org.palladiosimulator.commons.designpatterns.AbstractObservable<IVisualisationInputListener>
-
- org.palladiosimulator.edp2.visualization.AbstractInput
-
- org.palladiosimulator.edp2.visualization.AbstractVisualizationInput<T>
-
- All Implemented Interfaces:
IAdaptable
,ISelection
,IEditorInput
,IPersistable
,IPersistableElement
,org.palladiosimulator.commons.designpatterns.IAbstractObservable<IVisualisationInputListener>
,IPropertyConfigurable
,IVisualisationInput<T>
- Direct Known Subclasses:
JFreeChartVisualizationInput
public abstract class AbstractVisualizationInput<T extends AbstractVisualizationSingleDatastreamInput> extends AbstractInput implements ISelection, IVisualisationInput<T>
Interface for classes that are being displayed by implementations ofAbstractEditor
. Possibly manages multiple inputs as indicated by#supportsMultipleInputs()
-
-
Constructor Summary
Constructors Constructor Description AbstractVisualizationInput()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addInput(T newChildInput)
Adds anIDataSink
to thisAbstractVisualizationInput
's list of inputs.abstract boolean
canAccept(IDataSource dataSource)
protected void
firstChildInputAdded(T newChildInput)
List<T>
getInputs()
Method to retrieve all containedIDataSink
s.void
removeInput(T newChildInput)
Removes anIDataSink
from thisAbstractVisualizationInput
's list of inputs.-
Methods inherited from class org.palladiosimulator.edp2.visualization.AbstractInput
createConfiguration, getAdapter, getConfiguration, getDefaultConfiguration, getKeys, getProperties, getPropertyKeysTriggeringUpdate, getPropertyType, isPropertyNotSet, setProperties, unsetProperty
-
Methods inherited from class org.palladiosimulator.commons.designpatterns.AbstractObservable
addObserver, getEventDispatcher, getObservers, removeAllObserver, removeObserver
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.palladiosimulator.commons.designpatterns.IAbstractObservable
addObserver, removeObserver
-
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Methods inherited from interface org.eclipse.ui.IEditorInput
exists, getImageDescriptor, getName, getPersistable, getToolTipText
-
Methods inherited from interface org.eclipse.ui.IPersistable
saveState
-
Methods inherited from interface org.eclipse.ui.IPersistableElement
getFactoryId
-
Methods inherited from interface org.eclipse.jface.viewers.ISelection
isEmpty
-
Methods inherited from interface org.palladiosimulator.edp2.visualization.IVisualisationInput
createNewInput, getConfiguration, reloadData
-
-
-
-
Field Detail
-
inputs
protected final List<T extends AbstractVisualizationSingleDatastreamInput> inputs
The list of inputs managed by this handle.
-
-
Method Detail
-
addInput
public final void addInput(T newChildInput)
Description copied from interface:IVisualisationInput
Adds anIDataSink
to thisAbstractVisualizationInput
's list of inputs.- Specified by:
addInput
in interfaceIVisualisationInput<T extends AbstractVisualizationSingleDatastreamInput>
- Parameters:
newChildInput
- theIDataSink
to add.
-
firstChildInputAdded
protected void firstChildInputAdded(T newChildInput)
-
getInputs
public final List<T> getInputs()
Description copied from interface:IVisualisationInput
Method to retrieve all containedIDataSink
s. These are intended to be displayed by the sameIVisualization
.- Specified by:
getInputs
in interfaceIVisualisationInput<T extends AbstractVisualizationSingleDatastreamInput>
- Returns:
- the contained
IDataSink
s
-
removeInput
public final void removeInput(T newChildInput)
Description copied from interface:IVisualisationInput
Removes anIDataSink
from thisAbstractVisualizationInput
's list of inputs.- Specified by:
removeInput
in interfaceIVisualisationInput<T extends AbstractVisualizationSingleDatastreamInput>
- Parameters:
newChildInput
- theIDataSink
to add.
-
canAccept
public abstract boolean canAccept(IDataSource dataSource)
-
-