|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.TransferHandler
jigcell.compare.impl.Transferer
jigcell.compare.impl.DataSource
jigcell.compare.plotter.Plotter
public abstract class Plotter
A default implementation of PlotterInteface.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jigcell.compare.plotter.IPlotter |
|---|
IPlotter.Combine |
| Nested classes/interfaces inherited from interface jigcell.compare.IDataSource |
|---|
IDataSource.Option |
| Field Summary | |
|---|---|
protected IDataElement |
data
Data aggregate |
protected static java.lang.String |
SERIES_COLOR
Series color key |
protected static java.lang.String |
SERIES_NAME
Series name key |
| Fields inherited from class jigcell.compare.impl.DataSource |
|---|
OPTIONS_LOCK, SEPARATOR_PAIR, SEPARATOR_PART, SEPARATORS |
| Fields inherited from class jigcell.compare.impl.Transferer |
|---|
CSV_FOOTER, CSV_LINEPOSTPEND, CSV_LINEPREPEND, CSV_LINESEPARATOR, HTML_FOOTER, HTML_HEADPOSTPEND, HTML_HEADPREPEND, HTML_HEADSEPARATOR, HTML_LINEPOSTPEND, HTML_LINEPREPEND, HTML_LINESEPARATOR |
| Fields inherited from class javax.swing.TransferHandler |
|---|
COPY, COPY_OR_MOVE, MOVE, NONE |
| Fields inherited from interface jigcell.compare.plotter.IPlotter |
|---|
OPTION_COMBINE, OPTION_VIEWRANGE, OPTION_VIEWTITLE |
| Fields inherited from interface jigcell.compare.IWriteableDataSource |
|---|
OPTION_WRITEDESCRIPTION, OPTION_WRITEICON |
| Fields inherited from interface jigcell.compare.IDataSource |
|---|
OPTION_NAME |
| Constructor Summary | |
|---|---|
Plotter()
Creates a new plotter bridge. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
The name of this data source. |
boolean |
getPredictedCompatibility(java.lang.Class clazz)
A prediction on whether this data source can hold a particular type. |
boolean |
getPredictedCompatibility(java.lang.Object instance)
A prediction on whether this data source can hold a particular type. |
IDataElement |
getSeries(long pos)
A data series from the data aggregate. |
java.awt.Color |
getSeriesColor(long pos)
The color of a series. |
protected static java.lang.String |
getSeriesColorOption(long pos)
The option indicating the color of a series. |
IPlotter.Combine |
getSeriesCombine()
The series combine option. |
protected int |
getSeriesCount()
The number of series to plot. |
java.lang.String |
getSeriesName(long pos)
The name of a series. |
protected static java.lang.String |
getSeriesNameOption(long pos)
The option indicating the name of a series. |
IDataElement |
getViewRange()
The view range option. |
boolean |
isImmutable()
Whether the data aggregate is immutable. |
void |
setData(IDataElement data)
Sets the data aggregate. |
void |
setSeries(long pos,
IDataElement series)
Sets one of the data series in the aggregate. |
void |
setSeriesColor(long pos,
java.awt.Color color)
Sets the color of a series. |
void |
setSeriesCombine(IPlotter.Combine option)
Sets the series combine option. |
void |
setSeriesName(long pos,
java.lang.String name)
Sets the name of a series. |
void |
setSeriesNames(java.lang.String[] names)
Sets the name of every series. |
void |
setTitle(java.lang.String title)
Sets the title of the plot window. |
void |
setViewRange(IDataElement range)
Sets the view range option. |
static IDataElement |
splitMultipleSeries(IDataElement series)
Splits time series data with multiple series to multiple time series with a single series. |
void |
write(java.lang.Object data)
Writes data to the source destroying the previous contents if multiple objects are not supported. |
| Methods inherited from class jigcell.compare.impl.Transferer |
|---|
addExtension, addFlavor, createCSVTable, createFormattedTable, createHTMLTable, getExceptionRecorder, getExpectedClasses, getExpectedClasses, getExpectedClasses, getFlavors, getFlavors, getPreferredExtensions, getPreferredExtensions, getTransferClass, getTransferData, getTransferDataFlavors, getTransferFlavor, isDataFlavorSupported, transfer |
| Methods inherited from class javax.swing.TransferHandler |
|---|
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getSourceActions, getVisualRepresentation, importData |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jigcell.compare.plotter.IPlotter |
|---|
plot |
| Methods inherited from interface jigcell.compare.IWriteableDataSource |
|---|
getWriteDescriptionOption, getWriteIconOption, setWriteDescriptionOption, setWriteIconOption |
| Methods inherited from interface jigcell.compare.IDataSource |
|---|
addOption, clone, configure, getOption, getState, setOption, setState |
| Methods inherited from interface java.awt.datatransfer.Transferable |
|---|
getTransferData, getTransferDataFlavors, isDataFlavorSupported |
| Field Detail |
|---|
protected static final java.lang.String SERIES_COLOR
protected static final java.lang.String SERIES_NAME
protected IDataElement data
| Constructor Detail |
|---|
public Plotter()
| Method Detail |
|---|
public static IDataElement splitMultipleSeries(IDataElement series)
series - Time series formatted for the combine across optionprotected static java.lang.String getSeriesColorOption(long pos)
pos - Positionprotected static java.lang.String getSeriesNameOption(long pos)
pos - Positionpublic java.lang.String getName()
getName in interface IDataSourcegetName in class DataSourcepublic boolean getPredictedCompatibility(java.lang.Class clazz)
getPredictedCompatibility in interface IWriteableDataSourceclazz - Typepublic boolean getPredictedCompatibility(java.lang.Object instance)
getPredictedCompatibility in interface IWriteableDataSourceinstance - Typepublic IDataElement getSeries(long pos)
getSeries in interface IPlotterpos - Positionpublic java.awt.Color getSeriesColor(long pos)
getSeriesColor in interface IPlotterpos - Positionpublic IPlotter.Combine getSeriesCombine()
getSeriesCombine in interface IPlotterpublic java.lang.String getSeriesName(long pos)
getSeriesName in interface IPlotterpos - Positionpublic IDataElement getViewRange()
getViewRange in interface IPlotterpublic boolean isImmutable()
isImmutable in interface IPlotterpublic void setData(IDataElement data)
setData in interface IPlotterdata - Data
public void setSeries(long pos,
IDataElement series)
setSeries in interface IPlotterpos - Positionseries - Data series
public void setSeriesColor(long pos,
java.awt.Color color)
setSeriesColor in interface IPlotterpos - Positioncolor - Series colorpublic void setSeriesCombine(IPlotter.Combine option)
setSeriesCombine in interface IPlotteroption - Series combine option
public void setSeriesName(long pos,
java.lang.String name)
setSeriesName in interface IPlotterpos - Positionname - Series namepublic void setSeriesNames(java.lang.String[] names)
names - Series namespublic void setTitle(java.lang.String title)
setTitle in interface IPlottertitle - Window titlepublic void setViewRange(IDataElement range)
setViewRange in interface IPlotterrange - View range
public void write(java.lang.Object data)
throws PlotException
write in interface IWriteableDataSourcedata - Data
PlotException
protected int getSeriesCount()
throws PlotException
PlotException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||