|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.bioinfweb.treegraph.document.format.FormatUtils
public class FormatUtils
Provides general format functionalities.
| Field Summary | |
|---|---|
static int |
MIN_COLOR_DIFFERENCE
The minimal difference of a foreground color to the background color. |
| Constructor Summary | |
|---|---|
FormatUtils()
|
|
| Method Summary | |
|---|---|
static Legend |
createLegend(Node anchor,
Legends legends)
Creates a legend to be inserted in the specified document. |
static Node |
createNode(Document document)
Creates a node with an afferent branch to be inserted in the specified document. |
static Node |
createNode(Node parent)
Creates a node with an afferent branch to be inserted in the specified document. |
static Color |
getLineColor(Document document)
Returns the default line color or its inversion depending in the background color of the specified document. |
static Color |
getTextColor(Document document)
Returns the default text color or its inversion depending in the background color of the specified document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int MIN_COLOR_DIFFERENCE
| Constructor Detail |
|---|
public FormatUtils()
| Method Detail |
|---|
public static Color getLineColor(Document document)
document -
public static Color getTextColor(Document document)
document -
public static Node createNode(Node parent)
parent - the future parent node of the returned nodecreateNode(Document)public static Node createNode(Document document)
createNode(Node) will probably more useful.
Their text- and line-colors are set depending on the document background color.
document - the document the returned node shall be inserted topublic static Legend createLegend(Node anchor, Legends legends)
parent - the future anchor node of the returned legendlegends - the legends object the the returned legend will be inserted to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||