Search in sources :

Example 6 with BasicVisualLexicon

use of org.cytoscape.view.presentation.property.BasicVisualLexicon in project cytoscape-api by cytoscape.

the class VisualPropertyDependencyTest method setUp.

@Before
public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);
    lexicon = new BasicVisualLexicon(rootVisualProperty);
    vpSet = new HashSet<VisualProperty<Paint>>();
    vpSet.add(BasicVisualLexicon.NODE_BORDER_PAINT);
    vpSet.add(BasicVisualLexicon.NODE_FILL_COLOR);
    dependency = new VisualPropertyDependency<Paint>(id, displayName, vpSet, lexicon);
}
Also used : BasicVisualLexicon(org.cytoscape.view.presentation.property.BasicVisualLexicon) VisualProperty(org.cytoscape.view.model.VisualProperty) Paint(java.awt.Paint) Before(org.junit.Before)

Aggregations

BasicVisualLexicon (org.cytoscape.view.presentation.property.BasicVisualLexicon)6 Before (org.junit.Before)6 NullVisualProperty (org.cytoscape.view.presentation.property.NullVisualProperty)5 CyServiceRegistrar (org.cytoscape.service.util.CyServiceRegistrar)4 NetworkViewTestSupport (org.cytoscape.ding.NetworkViewTestSupport)3 RenderingEngineManager (org.cytoscape.view.presentation.RenderingEngineManager)3 Paint (java.awt.Paint)2 CyApplicationManager (org.cytoscape.application.CyApplicationManager)2 NetworkViewRenderer (org.cytoscape.application.NetworkViewRenderer)2 CyEventHelper (org.cytoscape.event.CyEventHelper)2 CyNetworkView (org.cytoscape.view.model.CyNetworkView)2 VisualProperty (org.cytoscape.view.model.VisualProperty)2 VisualMappingFunctionFactory (org.cytoscape.view.vizmap.VisualMappingFunctionFactory)2 VisualStyle (org.cytoscape.view.vizmap.VisualStyle)2 TaskMonitor (org.cytoscape.work.TaskMonitor)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 HashSet (java.util.HashSet)1 Properties (java.util.Properties)1 CyGroupManager (org.cytoscape.group.CyGroupManager)1 GroupTestSupport (org.cytoscape.group.GroupTestSupport)1