Package project.gluebooster.graphics

Examples of project.gluebooster.graphics.ComponentFunctions


      graph.setPreferredSize(new Dimension(width, height));
      functionGraph.addChangeListener(graph);
      //graph.setGraph(SampleGraphFactory.createSampleGraph1());
      graph.setContext(context);
      graph.setGraph( functionGraph.getGraph());
      graph.setVertexComponentGetter( new ComponentFunctions(ComponentFunctions.Operation.toJTextArea));
      graph.setEdgeComponentGetter(new ComponentFunctions(ComponentFunctions.Operation.toJTextArea));
      graph.afterPropertiesSet();
     
      return graph;
   }
View Full Code Here


  
   public void testVisual() throws Exception
   {
      ComponentGraph<String, String> graph = new ComponentGraph<String, String>();
      graph.setGraph(SampleGraphFactory.createSampleGraph1());
      graph.setVertexComponentGetter(new ComponentFunctions(ComponentFunctions.Operation.toJTextArea));
      graph.setEdgeComponentGetter(new ComponentFunctions(ComponentFunctions.Operation.toJTextArea));
      graph.setContext(new InvocationContext());
      graph.afterPropertiesSet();
     
      JFrame frame = JComponentBoostUtils.createDisposingJFrameWithOneComponent(graph, 800, 800);
      //ThreadBoostUtils.sleep(10000);
View Full Code Here

TOP

Related Classes of project.gluebooster.graphics.ComponentFunctions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.