org.biojava.spice.manypanel.drawable
Class DrawableSequence

java.lang.Object
  extended byorg.biojava.spice.manypanel.drawable.DrawableSequence
All Implemented Interfaces:
Drawable
Direct Known Subclasses:
DrawableStructure

public class DrawableSequence
extends Object
implements Drawable

at its core a DraawableSequence is also a Structure obbject - but without coordinates

Author:
Andreas Prlic

Constructor Summary
DrawableSequence(String accessionCode)
           
DrawableSequence(String accessionCode, Chain sequence)
           
 
Method Summary
static DrawableSequence fromChain(String accessionCode, Chain sequence)
           
 String getAccessionCode()
           
 Color getColor()
          get the color of the object
 boolean getLoading()
          is the Drawable currently being loaded?
 Chain getSequence()
           
 void setColor(Color col)
          set the color of the object
 void setLoading(boolean flag)
          the data for this drawable is currently being loaded
 void setSequence(Chain sequence)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawableSequence

public DrawableSequence(String accessionCode)

DrawableSequence

public DrawableSequence(String accessionCode,
                        Chain sequence)
Method Detail

fromChain

public static DrawableSequence fromChain(String accessionCode,
                                         Chain sequence)

getColor

public Color getColor()
Description copied from interface: Drawable
get the color of the object

Specified by:
getColor in interface Drawable
Returns:
a color

setColor

public void setColor(Color col)
Description copied from interface: Drawable
set the color of the object

Specified by:
setColor in interface Drawable
Parameters:
col -

getLoading

public boolean getLoading()
Description copied from interface: Drawable
is the Drawable currently being loaded?

Specified by:
getLoading in interface Drawable
Returns:
a flag if currently is loading data

setLoading

public void setLoading(boolean flag)
Description copied from interface: Drawable
the data for this drawable is currently being loaded

Specified by:
setLoading in interface Drawable
Parameters:
flag -

getSequence

public Chain getSequence()

setSequence

public void setSequence(Chain sequence)

getAccessionCode

public String getAccessionCode()