Class Lirical2Svg
java.lang.Object
org.monarchinitiative.lirical.io.output.svg.Lirical2Svg
- Direct Known Subclasses:
Lr2Svg
,Posttest2Svg
,Sparkline2Svg
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final int
protected static final int
distance between two adjacent "boxes"protected static final String
protected static final String
protected static final String
protected static final String
protected static final int
minimum distance to top of image of graphic elementsprotected static final String
protected static final String
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
prettifyDiseaseName
(String originalDiseaseName) This method shortens items such as #101200 APERT SYNDROME;;ACROCEPHALOSYNDACTYLY, TYPE I; ACS1;;ACS IAPERT-CROUZON DISEASE, INCLUDED;; to simply APERT SYNDROMEprotected static <K,
V extends Comparable<? super V>>
Map<K,V> sortByValue
(Map<K, V> map) protected void
writeDiamond
(Writer writer, int X, int Y) We use a diamond symbol to show a value that would be too small to appear as a visible box.protected void
writeDiamond
(Writer writer, int X, int Y, String msg) We use a diamond symbol to show a value that would be too small to appear as a visible box.protected void
writeFooter
(Writer writer)
-
Field Details
-
MIN_VERTICAL_OFFSET
protected static final int MIN_VERTICAL_OFFSETminimum distance to top of image of graphic elements- See Also:
-
BOX_OFFSET
protected static final int BOX_OFFSETdistance between two adjacent "boxes"- See Also:
-
BOX_HEIGHT
protected static final int BOX_HEIGHT- See Also:
-
BLUE
- See Also:
-
RED
- See Also:
-
BROWN
- See Also:
-
DARKBLUE
- See Also:
-
VIOLET
- See Also:
-
ORANGE
- See Also:
-
BLACK
- See Also:
-
GREEN
- See Also:
-
BRIGHT_GREEN
- See Also:
-
-
Constructor Details
-
Lirical2Svg
public Lirical2Svg()
-
-
Method Details
-
prettifyDiseaseName
This method shortens items such as #101200 APERT SYNDROME;;ACROCEPHALOSYNDACTYLY, TYPE I; ACS1;;ACS IAPERT-CROUZON DISEASE, INCLUDED;; to simply APERT SYNDROME- Parameters:
originalDiseaseName
- original String from HPO database, derived from OMIM and potentially historic- Returns:
- simplified and prettified name
-
writeDiamond
We use a diamond symbol to show a value that would be too small to appear as a visible box. We do this bothfor the likelihood ratio as well as for the post-test probability- Throws:
IOException
-
writeDiamond
We use a diamond symbol to show a value that would be too small to appear as a visible box. We do this bothfor the likelihood ratio as well as for the post-test probability- Throws:
IOException
-
sortByValue