Search in sources :

Example 11 with VisualPropertyDependency

use of org.cytoscape.view.vizmap.VisualPropertyDependency in project cytoscape-impl by cytoscape.

the class DGraphView method renderGraph.

/**
 *  @param setLastRenderDetail if true, "m_lastRenderDetail" will be updated, otherwise it will not be updated.
 */
int renderGraph(GraphGraphics graphics, final GraphLOD lod, Paint bgColor, double xCenter, double yCenter, double scale, LongHash hash) {
    int lastRenderDetail = 0;
    try {
        synchronized (m_lock) {
            // final VisualMappingManager vmm = serviceRegistrar.getService(VisualMappingManager.class);
            final Set<VisualPropertyDependency<?>> dependencies = vmm.getVisualStyle(this).getAllVisualPropertyDependencies();
            lastRenderDetail = GraphRenderer.renderGraph(this, m_spacial, lod, m_nodeDetails, m_edgeDetails, hash, graphics, bgColor, xCenter, yCenter, scale, haveZOrder, dependencies);
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
    setContentChanged(false);
    setViewportChanged(false);
    m_visualChanged = true;
    return lastRenderDetail;
}
Also used : VisualPropertyDependency(org.cytoscape.view.vizmap.VisualPropertyDependency) Paint(java.awt.Paint) TexturePaint(java.awt.TexturePaint) IOException(java.io.IOException)

Aggregations

VisualPropertyDependency (org.cytoscape.view.vizmap.VisualPropertyDependency)11 HashSet (java.util.HashSet)5 VisualProperty (org.cytoscape.view.model.VisualProperty)5 VisualStyle (org.cytoscape.view.vizmap.VisualStyle)4 Paint (java.awt.Paint)3 IOException (java.io.IOException)3 HashMap (java.util.HashMap)3 CyNetwork (org.cytoscape.model.CyNetwork)3 VisualLexicon (org.cytoscape.view.model.VisualLexicon)3 TexturePaint (java.awt.TexturePaint)2 Set (java.util.Set)2 SortedSet (java.util.SortedSet)2 Dependency (org.cytoscape.io.internal.util.vizmap.model.Dependency)2 CyEdge (org.cytoscape.model.CyEdge)2 Color (java.awt.Color)1 Dimension (java.awt.Dimension)1 Font (java.awt.Font)1 GridBagConstraints (java.awt.GridBagConstraints)1 GridBagLayout (java.awt.GridBagLayout)1 ComponentAdapter (java.awt.event.ComponentAdapter)1