public class CSVPlot extends AbstractPlot
CSVPlotRender
s rather than
DrawnPlots.DEFAULT_CATEGORY
Constructor and Description |
---|
CSVPlot()
The default constructor.
|
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.
|
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.
|
int |
getNumAdditionalPages()
Gets the number of pages this service will display in the plot editor in
addition to the main canvas.
|
int |
getNumberOfAxes()
Always returns two as CSV plots are always 2D
|
IRenderElementHolder |
getRenderElementHolder(Geometry geometry)
Get the list of render elements used to display the given geometry in
this canvas.
|
boolean |
isLoaded()
Gets whether or not data has been loaded from the data source.
|
void |
load()
This operation loads the data that will be plotted.
|
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.
|
boolean |
setDataSource(java.net.URI uri)
Sets the URI for this plot.
|
addPlotListener, draw, getCustomActions, getDataSource, getIndependentSeries, getPlotTitle, getProperties, getSourceHost, isSourceRemote, removePlotListener, setIndependentSeries, setPlotTitle, setProperties
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 java.util.List<java.lang.String> getCategories()
IPlot
getCategories
in interface IPlot
getCategories
in class AbstractPlot
public java.util.List<ISeries> getDependentSeries(java.lang.String category)
IPlot
getDependentSeries
in interface IPlot
getDependentSeries
in class AbstractPlot
public int getNumAdditionalPages()
IPlot
getNumAdditionalPages
in interface IPlot
getNumAdditionalPages
in class AbstractPlot
public int getNumberOfAxes()
getNumberOfAxes
in interface IVizCanvas
getNumberOfAxes
in class AbstractPlot
IVizCanvas.getNumberOfAxes()
public boolean isLoaded()
public void load()
public void redraw()
IVizCanvas
redraw
in interface IVizCanvas
redraw
in class AbstractPlot
public boolean setDataSource(java.net.URI uri) throws java.lang.Exception
AbstractPlot
setDataSource
in class AbstractPlot
uri
- The new data source URI.java.lang.Exception
- If there was an error setting the data source.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.