Examples of FunctionByMap


Examples of project.gluebooster.math.functions.FunctionByMap

      Map<String, BoostFunction<? extends Object, Dimension,?>> typeDimensionGetter = new HashMap<String, BoostFunction<? extends Object, Dimension, ?>>();
      typeDimensionGetter.put(VERTEX, vertexDimensionGetter);
      typeDimensionGetter.put(EDGE, edgeLabelDimensionGetter);

      ModifyingFunction/*<Dimension>*/ newDimensionGetter = new ModifyingFunction(ModifyingFunction.Operation.useFunctionChooser, new FunctionByMap( typeDimensionGetter));
      //newDimensionGetter.setFunctions(typeDimensionGetter);
      newDimensionGetter.getInternalInformation().setShortDescription("newDimensionGetter");
      /*
       * TODO replace by ModifyingFunction.useFunctionChooser   you have to adapt the setFunctions method
       *
 
View Full Code Here

Examples of project.gluebooster.math.functions.FunctionByMap

         Pair<Map<Vertex, RectangularShape>, Map<Edge,Pair<RectangularShape,PolyLine>>> layout;
        
         if (skipEdgeLabels)
         {
           layout = JungGraphBoostUtils.layoutGraphWithoutEdgeLabels(graph,
               FunctionFactory.concatenation( new FunctionByMap( vertexComponentMap), ReflectionFunctions.createInvokeMethod("getPreferredSize"), distanceChanger),
               context
           );
          
         }
         else
           layout = JungGraphBoostUtils.layoutGraph(graph,
               FunctionFactory.concatenation( new FunctionByMap( vertexComponentMap), ReflectionFunctions.createInvokeMethod("getPreferredSize"), distanceChanger),
               FunctionFactory.concatenation(new FunctionByMap( edgeLabelComponentMap), ReflectionFunctions.createInvokeMethod("getPreferredSize"), distanceChanger),
               context
         );
         edgePositions = layout.getSecond();
        
         ArrayList<RectangularShape> componentShapes = new ArrayList<RectangularShape>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.