Cytoscape 2.8.0 API

cytoscape.ding
Class CyGraphAllLOD

java.lang.Object
  extended by cytoscape.render.stateful.GraphLOD
      extended by ding.view.PrintLOD
          extended by 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.


Constructor Summary
CyGraphAllLOD()
           
 
Method Summary
 boolean textAsShape(int renderNodeCount, int renderEdgeCount)
          textAsShape is called to determine if the text labels should be converted from fonts to text
 
Methods inherited from class ding.view.PrintLOD
customGraphics, dashedEdges, detail, edgeAnchors, edgeArrows, edgeLabels, nodeBorders, nodeLabels, renderEdges, setPrintingTextAsShape
 
Methods inherited from class cytoscape.render.stateful.GraphLOD
getNestedNetworkImageScaleFactor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CyGraphAllLOD

public CyGraphAllLOD()
Method Detail

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 nodes
renderEdgeCount - the number of edges
Returns:
true if text should be converted to shapes, false otherwise
See Also:
GraphLOD.nodeLabels(int, int), GraphLOD.edgeLabels(int, int)

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.