apollo.dataadapter.graph
Class GraphAdapter

java.lang.Object
  extended by org.bdgp.io.AbstractDataAdapter
      extended by apollo.dataadapter.AbstractApolloAdapter
          extended by apollo.dataadapter.graph.GraphAdapter
All Implemented Interfaces:
ApolloDataAdapterI, org.bdgp.io.DataAdapter, org.bdgp.io.VisualDataAdapter

public class GraphAdapter
extends AbstractApolloAdapter

This is the adapter class for handling graph data

Author:
elee

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from class apollo.dataadapter.AbstractApolloAdapter
curation_set, region, style
 
Fields inherited from class org.bdgp.io.AbstractDataAdapter
listeners
 
Fields inherited from interface apollo.dataadapter.ApolloDataAdapterI
OP_APPEND_DATA, OP_READ_DATA, OP_READ_RAW_ANALYSIS, OP_READ_SEQUENCE, OP_WRITE_DATA
 
Constructor Summary
GraphAdapter()
          Constructor
 
Method Summary
 java.lang.Boolean addToCurationSet(java.awt.Color color)
          Add graph data
 java.lang.String getGraphFilename()
          Get the filename for the graph data
 org.bdgp.io.IOOperation[] getSupportedOperations()
          Get supported operations (append)
 org.bdgp.io.DataAdapterUI getUI(org.bdgp.io.IOOperation op)
          Get the UI for the data adapter
 void setGraphFilename(java.lang.String graphFilename)
          Set the filename for the graph data
 
Methods inherited from class apollo.dataadapter.AbstractApolloAdapter
addToCurationSet, cacheUI, canWriteData, clearOldData, clearStateInformation, commitChanges, commitChanges, commitChanges, commitChanges, commitChanges, commitChanges, getAdapters, getCachedUI, getChildAdapter, getChildAdapter, getCurationSet, getCurationState, getDatabase, getDataInput, getDefaultStyle, getFilename, getInput, getInputType, getName, getNameAdapter, getNumberOfChildAdapters, getRawAnalysisResults, getSequence, getSequence, getSequence, getSequences, getSequences, getSpecies, getStateInformation, getStyle, getType, hasLinkData, init, isComposite, loadNewSpeciesFromLink, operationIsSupported, rollbackAnnotations, rollbackAnnotations, setCuration, setCurationNumber, setCurationState, setDatabase, setDataInput, setDataLoadListener, setInput, setInputType, setLocation, setName, setPadLeft, setPadRight, setRegion, setSpecies, setStateInformation, setStyle
 
Methods inherited from class org.bdgp.io.AbstractDataAdapter
addProgressListener, fireProgressEvent, removeProgressListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.bdgp.io.VisualDataAdapter
addProgressListener, fireProgressEvent, removeProgressListener
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

GraphAdapter

public GraphAdapter()
Constructor

Method Detail

getSupportedOperations

public org.bdgp.io.IOOperation[] getSupportedOperations()
Get supported operations (append)

Returns:
IOOperation[] - supported operations

getUI

public org.bdgp.io.DataAdapterUI getUI(org.bdgp.io.IOOperation op)
Get the UI for the data adapter

Parameters:
op - - the IOOperation requested
Returns:
the UI for the data adapter

addToCurationSet

public java.lang.Boolean addToCurationSet(java.awt.Color color)
                                   throws ApolloAdapterException
Add graph data

Returns:
true if successful
Throws:
ApolloAdapterException - if there is a problem parsing the data

getGraphFilename

public java.lang.String getGraphFilename()
Get the filename for the graph data

Returns:
the filename for the graph data

setGraphFilename

public void setGraphFilename(java.lang.String graphFilename)
Set the filename for the graph data

Parameters:
graphFilename - - the filename for the graph data