public class CSVProxyPlot extends ProxyPlot implements IPlotListener
CSVPlot
, which is itself
responsible for loading and storing the CSV data. Instances of this class are
provided from the CSVVizService
when a plot is created, and it gives
full access to customizing a plot without affecting the data source plot.DEFAULT_CATEGORY
Constructor and Description |
---|
CSVProxyPlot() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createAdditionalPage(org.eclipse.ui.part.MultiPageEditorPart parent,
org.eclipse.ui.IFileEditorInput file,
int pageNum)
Directs the service to draw one of its additional pages and add it to the
MultiPageEditorPart.
|
org.eclipse.swt.widgets.Composite |
draw(org.eclipse.swt.widgets.Composite parent)
This operation draws the canvas contents onto the given parent Composite.
|
java.util.List<java.lang.String> |
getCategories()
Gets all of the categories currently associated with this plot.
|
java.util.List<ISeries> |
getDependentSeries(java.lang.String category)
Gets all of the dependent series specified for this IPlot, as a list, for
the specified category.
|
ISeries |
getIndependentSeries()
Gets the independent series for the plot.
|
int |
getNumAdditionalPages()
Gets the number of pages this service will display in the plot editor in
addition to the main canvas.
|
IRenderElementHolder |
getRenderElementHolder(Geometry geometry)
Get the list of render elements used to display the given geometry in
this canvas.
|
void |
plotUpdated(IPlot plot,
java.lang.String key,
java.lang.String value)
Notifies the listener that the plot has been updated along with state
information that the listener may be able to use.
|
void |
redraw()
This operation directs the IPlot to redraw its contents.
|
void |
save(org.eclipse.core.runtime.IProgressMonitor monitor)
Save the contents of the plot to the source file.
|
void |
saveAs()
Open a dialog to save the plot's contents.
|
void |
setIndependentSeries(ISeries series)
Sets the series that will be on the independent axis for this plot.
|
void |
setSource(IPlot source)
Sets the source
IPlot on which this plot is based. |
getDataSource, getNumberOfAxes
addPlotListener, getCustomActions, getPlotTitle, getProperties, getSourceHost, isSourceRemote, removePlotListener, setDataSource, setPlotTitle, setProperties
public org.eclipse.swt.widgets.Composite draw(org.eclipse.swt.widgets.Composite parent) throws java.lang.Exception
IVizCanvas
draw
in interface IVizCanvas
draw
in class AbstractPlot
java.lang.Exception
public java.util.List<java.lang.String> getCategories()
IPlot
getCategories
in interface IPlot
getCategories
in class ProxyPlot
public java.util.List<ISeries> getDependentSeries(java.lang.String category)
IPlot
getDependentSeries
in interface IPlot
getDependentSeries
in class ProxyPlot
public ISeries getIndependentSeries()
IPlot
getIndependentSeries
in interface IPlot
getIndependentSeries
in class AbstractPlot
public void plotUpdated(IPlot plot, java.lang.String key, java.lang.String value)
IPlotListener
plotUpdated
in interface IPlotListener
plot
- The plot that was updated.key
- The key for the update event that occurred.value
- An associated value for the update event that occurred.public void redraw()
IVizCanvas
redraw
in interface IVizCanvas
redraw
in class AbstractPlot
public void setIndependentSeries(ISeries series)
IPlot
setIndependentSeries
in interface IPlot
setIndependentSeries
in class AbstractPlot
series
- The independent series, used to plot the other independent
seriespublic void setSource(IPlot source)
ProxyPlot
IPlot
on which this plot is based. This method
synchronizes this plot's dependent series with those of the original plot
by creating a ProxySeries
to those of the source plot.public java.lang.String createAdditionalPage(org.eclipse.ui.part.MultiPageEditorPart parent, org.eclipse.ui.IFileEditorInput file, int pageNum)
IPlot
createAdditionalPage
in interface IPlot
createAdditionalPage
in class AbstractPlot
parent
- The part which the page will be added to.file
- The file to use as input for the page.pageNum
- The id of the page to be drawn.public int getNumAdditionalPages()
IPlot
getNumAdditionalPages
in interface IPlot
getNumAdditionalPages
in class AbstractPlot
public void save(org.eclipse.core.runtime.IProgressMonitor monitor)
IPlot
save
in interface IPlot
save
in class AbstractPlot
monitor
- The monitor for the save action's progress.public void saveAs()
IPlot
saveAs
in interface IPlot
saveAs
in class AbstractPlot
public IRenderElementHolder getRenderElementHolder(Geometry geometry)
IVizCanvas
getRenderElementHolder
in interface IVizCanvas
getRenderElementHolder
in class AbstractPlot
geometry
- The geometry whose corresponding IRenderElements are sought.