public final class RenderableDomainArchitecture extends DomainArchitecture implements RenderablePhylogenyData
NHX_SEPARATOR| Constructor and Description |
|---|
RenderableDomainArchitecture(DomainArchitecture domain_structure,
Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuffer |
asSimpleText() |
java.lang.StringBuffer |
asText() |
PhylogenyData |
copy()
Creates a new PhylogenyData object with identical values as this
PhylogenyData.
|
ProteinDomain |
getDomain(int i) |
java.util.SortedMap<java.math.BigDecimal,ProteinDomain> |
getDomains() |
int |
getNumberOfDomains() |
java.awt.Dimension |
getOriginalSize() |
java.lang.Object |
getParameter() |
double |
getRenderingFactorWidth() |
java.awt.Dimension |
getRenderingSize() |
int |
getTotalLength() |
boolean |
isEqual(PhylogenyData data)
Returns true if the names and the order of the domains match (domain and
linker lengths are ignored).
|
void |
render(double x1,
double y1,
java.awt.Graphics2D g,
TreePanel tree_panel,
boolean to_pdf)
This can be used to render phylogeny data as graphics (for example,
display of the domain structure).
|
static void |
setColorMap(java.util.Map<java.lang.String,java.awt.Color> domain_colors) |
void |
setParameter(double e_value_threshold_exp) |
void |
setRenderingFactorWidth(double rendering_factor_width) |
void |
setRenderingHeight(double rendering_height) |
java.lang.StringBuffer |
toNHX() |
void |
toPhyloXML(java.io.Writer writer,
int level,
java.lang.String indentation)
Writes a phyloXML representation of this phylogeny data.
|
addDomain, setTotalLength, toStringpublic RenderableDomainArchitecture(DomainArchitecture domain_structure, Configuration configuration)
public java.lang.StringBuffer asSimpleText()
asSimpleText in interface PhylogenyDataasSimpleText in class DomainArchitecturepublic java.lang.StringBuffer asText()
asText in interface PhylogenyDataasText in class DomainArchitecturepublic PhylogenyData copy()
PhylogenyDatacopy in interface PhylogenyDatacopy in class DomainArchitecturepublic ProteinDomain getDomain(int i)
getDomain in class DomainArchitecturepublic java.util.SortedMap<java.math.BigDecimal,ProteinDomain> getDomains()
getDomains in class DomainArchitecturepublic int getNumberOfDomains()
getNumberOfDomains in class DomainArchitecturepublic java.awt.Dimension getOriginalSize()
getOriginalSize in interface RenderablePhylogenyDatapublic java.lang.Object getParameter()
getParameter in interface RenderablePhylogenyDatapublic double getRenderingFactorWidth()
public java.awt.Dimension getRenderingSize()
getRenderingSize in interface RenderablePhylogenyDatapublic int getTotalLength()
getTotalLength in class DomainArchitecturepublic boolean isEqual(PhylogenyData data)
DomainArchitectureisEqual in interface PhylogenyDataisEqual in class DomainArchitecturepublic void render(double x1,
double y1,
java.awt.Graphics2D g,
TreePanel tree_panel,
boolean to_pdf)
RenderablePhylogenyDatarender in interface RenderablePhylogenyDatag - the Graphics to render topublic void setParameter(double e_value_threshold_exp)
setParameter in interface RenderablePhylogenyDatapublic void setRenderingFactorWidth(double rendering_factor_width)
public void setRenderingHeight(double rendering_height)
setRenderingHeight in interface RenderablePhylogenyDatapublic java.lang.StringBuffer toNHX()
toNHX in interface PhylogenyDatatoNHX in class DomainArchitecturepublic void toPhyloXML(java.io.Writer writer,
int level,
java.lang.String indentation)
throws java.io.IOException
PhylogenyDatatoPhyloXML in interface PhylogenyDatatoPhyloXML in class DomainArchitecturejava.io.IOExceptionpublic static void setColorMap(java.util.Map<java.lang.String,java.awt.Color> domain_colors)