cytoscape.ding
Class CyGraphAllLOD
java.lang.Object
cytoscape.render.stateful.GraphLOD
ding.view.PrintLOD
cytoscape.ding.CyGraphAllLOD
public class CyGraphAllLOD
- extends PrintLOD
CyGraphAllLOD is the level of detail (LOD) class used
for the "Show Graphics Details" menu item. It should
be thought of as a "preview" for printing or exporting
a network to some high-resolution graphical format (PDF,
SVG, etc.). Essentially, this extends PrintLOD, but to
preserve some efficiency we override the textAsShape method
to allow us to continue to use fonts.
Method Summary |
boolean |
textAsShape(int renderNodeCount,
int renderEdgeCount)
textAsShape is called to determine if the text
labels should be converted from fonts to text |
CyGraphAllLOD
public CyGraphAllLOD()
textAsShape
public boolean textAsShape(int renderNodeCount,
int renderEdgeCount)
- textAsShape is called to determine if the text
labels should be converted from fonts to text
- Overrides:
textAsShape
in class PrintLOD
- Parameters:
renderNodeCount
- the number of nodesrenderEdgeCount
- the number of edges
- Returns:
- true if text should be converted to shapes, false otherwise