C# Class Microsoft.R.Components.Plots.Implementation.RPlotManager

Inheritance: IRPlotManager
Show file Open project: Microsoft/RTVS

Public Methods

Method Description
ActivateDeviceAsync ( IRPlotDevice device ) : Task
ActivatePlotAsync ( IRPlot plot ) : Task
CopyOrMovePlotFromAsync ( System.Guid sourceDeviceId, System.Guid sourcePlotId, IRPlotDevice targetDevice, bool isMove ) : Task
DeviceCreatedAsync ( System.Guid deviceId, CancellationToken cancellationToken ) : Task
DeviceDestroyedAsync ( System.Guid deviceId, CancellationToken cancellationToken ) : Task
Dispose ( ) : void
ExportToBitmapAsync ( IRPlot plot, string deviceName, string outputFilePath, int pixelWidth, int pixelHeight, int resolution ) : Task
ExportToMetafileAsync ( IRPlot plot, string outputFilePath, double inchWidth, double inchHeight, int resolution ) : Task
ExportToPdfAsync ( IRPlot plot, string outputFilePath, double inchWidth, double inchHeight ) : Task
GetAllPlots ( ) : IRPlot[]
GetOrCreateMainPlotVisualComponent ( ) : IRPlotDeviceVisualComponent
GetOrCreateVisualComponent ( IRPlotDeviceVisualComponentContainerFactory visualComponentContainerFactory, int instanceId ) : IRPlotDeviceVisualComponent
GetOrCreateVisualComponent ( IRPlotHistoryVisualComponentContainerFactory visualComponentContainerFactory, int instanceId ) : IRPlotHistoryVisualComponent
GetPlotVisualComponent ( IRPlotDevice device ) : IRPlotDeviceVisualComponent
GetPlotVisualComponent ( int instanceId ) : IRPlotDeviceVisualComponent
LoadPlotAsync ( PlotMessage plot, CancellationToken cancellationToken ) : Task
NewDeviceAsync ( int existingInstanceId ) : Task
NextPlotAsync ( IRPlotDevice device ) : Task
PreviousPlotAsync ( IRPlotDevice device ) : Task
RPlotManager ( IRSettings settings, IRInteractiveWorkflow interactiveWorkflow, IFileSystem fileSystem ) : System
RegisterVisualComponent ( IRPlotDeviceVisualComponent visualComponent ) : void
RemoveAllPlotsAsync ( IRPlotDevice device ) : Task
RemovePlotAsync ( IRPlot plot ) : Task
ResizeAsync ( IRPlotDevice device, int pixelWidth, int pixelHeight, int resolution ) : Task
StartLocatorModeAsync ( System.Guid deviceId, CancellationToken cancellationToken ) : Task

Private Methods

Method Description
CopyPlotAsync ( IRPlot sourcePlot, IRPlotDevice targetDevice ) : Task
ExportAsync ( string outputFilePath, Task exportTask ) : Task
FindDevice ( System.Guid deviceId ) : IRPlotDevice
FindPlot ( System.Guid deviceId, System.Guid plotId ) : IRPlot
GetOrCreatePlotDeviceVisualComponent ( ) : IRPlotDeviceVisualComponent
GetPlotDeviceVisualComponent ( System.Guid deviceId ) : IRPlotDeviceVisualComponent
GetUnusedInstanceId ( ) : int
GetVisualComponentForDevice ( System.Guid deviceId ) : IRPlotDeviceVisualComponent
RSessionConnectedAsync ( ) : Task
RSessionMutatedAsync ( ) : Task
RSession_Connected ( object sender, RConnectedEventArgs e ) : void
RSession_Mutated ( object sender, EventArgs e ) : void
RefreshDeviceNum ( IRPlotDevice device ) : Task
RemoveAllDevices ( ) : void
SetNextVisualComponent ( int existingInstanceId ) : void
ShowDevice ( IRPlotDevice device ) : void

Method Details

ActivateDeviceAsync() public method

public ActivateDeviceAsync ( IRPlotDevice device ) : Task
device IRPlotDevice
return Task

ActivatePlotAsync() public method

public ActivatePlotAsync ( IRPlot plot ) : Task
plot IRPlot
return Task

CopyOrMovePlotFromAsync() public method

public CopyOrMovePlotFromAsync ( System.Guid sourceDeviceId, System.Guid sourcePlotId, IRPlotDevice targetDevice, bool isMove ) : Task
sourceDeviceId System.Guid
sourcePlotId System.Guid
targetDevice IRPlotDevice
isMove bool
return Task

DeviceCreatedAsync() public method

public DeviceCreatedAsync ( System.Guid deviceId, CancellationToken cancellationToken ) : Task
deviceId System.Guid
cancellationToken System.Threading.CancellationToken
return Task

DeviceDestroyedAsync() public method

public DeviceDestroyedAsync ( System.Guid deviceId, CancellationToken cancellationToken ) : Task
deviceId System.Guid
cancellationToken System.Threading.CancellationToken
return Task

Dispose() public method

public Dispose ( ) : void
return void

ExportToBitmapAsync() public method

public ExportToBitmapAsync ( IRPlot plot, string deviceName, string outputFilePath, int pixelWidth, int pixelHeight, int resolution ) : Task
plot IRPlot
deviceName string
outputFilePath string
pixelWidth int
pixelHeight int
resolution int
return Task

ExportToMetafileAsync() public method

public ExportToMetafileAsync ( IRPlot plot, string outputFilePath, double inchWidth, double inchHeight, int resolution ) : Task
plot IRPlot
outputFilePath string
inchWidth double
inchHeight double
resolution int
return Task

ExportToPdfAsync() public method

public ExportToPdfAsync ( IRPlot plot, string outputFilePath, double inchWidth, double inchHeight ) : Task
plot IRPlot
outputFilePath string
inchWidth double
inchHeight double
return Task

GetAllPlots() public method

public GetAllPlots ( ) : IRPlot[]
return IRPlot[]

GetOrCreateMainPlotVisualComponent() public method

public GetOrCreateMainPlotVisualComponent ( ) : IRPlotDeviceVisualComponent
return IRPlotDeviceVisualComponent

GetOrCreateVisualComponent() public method

public GetOrCreateVisualComponent ( IRPlotDeviceVisualComponentContainerFactory visualComponentContainerFactory, int instanceId ) : IRPlotDeviceVisualComponent
visualComponentContainerFactory IRPlotDeviceVisualComponentContainerFactory
instanceId int
return IRPlotDeviceVisualComponent

GetOrCreateVisualComponent() public method

public GetOrCreateVisualComponent ( IRPlotHistoryVisualComponentContainerFactory visualComponentContainerFactory, int instanceId ) : IRPlotHistoryVisualComponent
visualComponentContainerFactory IRPlotHistoryVisualComponentContainerFactory
instanceId int
return IRPlotHistoryVisualComponent

GetPlotVisualComponent() public method

public GetPlotVisualComponent ( IRPlotDevice device ) : IRPlotDeviceVisualComponent
device IRPlotDevice
return IRPlotDeviceVisualComponent

GetPlotVisualComponent() public method

public GetPlotVisualComponent ( int instanceId ) : IRPlotDeviceVisualComponent
instanceId int
return IRPlotDeviceVisualComponent

LoadPlotAsync() public method

public LoadPlotAsync ( PlotMessage plot, CancellationToken cancellationToken ) : Task
plot Microsoft.R.Host.Client.PlotMessage
cancellationToken System.Threading.CancellationToken
return Task

NewDeviceAsync() public method

public NewDeviceAsync ( int existingInstanceId ) : Task
existingInstanceId int
return Task

NextPlotAsync() public method

public NextPlotAsync ( IRPlotDevice device ) : Task
device IRPlotDevice
return Task

PreviousPlotAsync() public method

public PreviousPlotAsync ( IRPlotDevice device ) : Task
device IRPlotDevice
return Task

RPlotManager() public method

public RPlotManager ( IRSettings settings, IRInteractiveWorkflow interactiveWorkflow, IFileSystem fileSystem ) : System
settings IRSettings
interactiveWorkflow IRInteractiveWorkflow
fileSystem IFileSystem
return System

RegisterVisualComponent() public method

public RegisterVisualComponent ( IRPlotDeviceVisualComponent visualComponent ) : void
visualComponent IRPlotDeviceVisualComponent
return void

RemoveAllPlotsAsync() public method

public RemoveAllPlotsAsync ( IRPlotDevice device ) : Task
device IRPlotDevice
return Task

RemovePlotAsync() public method

public RemovePlotAsync ( IRPlot plot ) : Task
plot IRPlot
return Task

ResizeAsync() public method

public ResizeAsync ( IRPlotDevice device, int pixelWidth, int pixelHeight, int resolution ) : Task
device IRPlotDevice
pixelWidth int
pixelHeight int
resolution int
return Task

StartLocatorModeAsync() public method

public StartLocatorModeAsync ( System.Guid deviceId, CancellationToken cancellationToken ) : Task
deviceId System.Guid
cancellationToken System.Threading.CancellationToken
return Task