Package org.apache.commons.collections15

Examples of org.apache.commons.collections15.TestLinkedList


      vv.getRenderContext().setEdgeDrawPaintTransformer(
            new ChainedTransformer<Edge, Paint>(
                  new Transformer[] { new ConstantTransformer<Paint>(
                        Color.GREEN) }));
      vv.getRenderContext().setEdgeStrokeTransformer(
            new ConstantTransformer(new BasicStroke(2.5f)));
      vv.getRenderer().setEdgeLabelRenderer(new BasicEdgeLabelRenderer());

      vv.setBackground(Color.white);

      // add a listener for ToolTips
View Full Code Here


public class TestModelAnalysisUtils extends TestCase{

 
  public void testCreateStateGraph() throws Exception
  {
     ChainedTransformer transformer = new ChainedTransformer( new Transformer[]{ExceptionTransformer.getInstance(), new ChainedTransformer(new Transformer[]{}), new ConstantTransformer("hallo") });
    
     Graph stateGraph = ModelAnalysisBoostUtils.createStateGraph(transformer);
    
     Window display = JungGraphBoostUtils.displayGraph(stateGraph, JFrame.DISPOSE_ON_CLOSE);
    
View Full Code Here

      public String transform(String input) {
        return "<html><center>Vertex<p>"+input;
      }}}));
    vv.getRenderContext().setVertexShapeTransformer(vlasr);
    vv.getRenderContext().setVertexLabelRenderer(new DefaultVertexLabelRenderer(Color.red));
    vv.getRenderContext().setEdgeDrawPaintTransformer(new ConstantTransformer(Color.yellow));
    vv.getRenderContext().setEdgeStrokeTransformer(new ConstantTransformer(new BasicStroke(2.5f)));
   
    // customize the renderer
    vv.getRenderer().setVertexRenderer(new GradientVertexRenderer<String,StringBuffer>(Color.gray, Color.white, true));
    vv.getRenderer().setVertexLabelRenderer(vlasr);
View Full Code Here

      else if (object instanceof Enumeration)
         return new EnumerationIterator( (Enumeration) object);
      else if (object instanceof Collection)
         return ((Collection)object).iterator();
      else if (object.getClass().isArray())
         return new ArrayIterator(object);
      else
         return new SingletonIterator(object);
   }
View Full Code Here

      else if (object instanceof List)
         return (List) object;
      else if (object instanceof Collection)
         return new ArrayList((Collection)object);
      else if (object.getClass().isArray())
         return toList(new ArrayIterator(object), context);
      else
         return Arrays.asList( object);
        
   }
View Full Code Here

      if (object == null)
         return EmptyIterator.getInstance();
      else if (object instanceof Iterator)
         return (Iterator) object;
      else if (object instanceof Enumeration)
         return new EnumerationIterator( (Enumeration) object);
      else if (object instanceof Collection)
         return ((Collection)object).iterator();
      else if (object.getClass().isArray())
         return new ArrayIterator(object);
      else
View Full Code Here

        
   }

   public Enumeration toEnumeration(Object objects, InvocationContext context)
   {
      return new IteratorEnumeration(toIterator(objects, context));
   }
View Full Code Here

      else if (object instanceof Collection)
         return ((Collection)object).iterator();
      else if (object.getClass().isArray())
         return new ArrayIterator(object);
      else
         return new SingletonIterator(object);
   }
View Full Code Here

  @SuppressWarnings("unchecked")
  private List<InfoSaison> preMergeInfosSaison(
      final List<InfoSaison> infosSaison1,
      final List<InfoSaison> infosSaison2)
  {
    final MultiKeyMap mkMap = new MultiKeyMap();

    preMergeInfosSaison(infosSaison1, mkMap);
    preMergeInfosSaison(infosSaison2, mkMap);

    return new Vector<InfoSaison>(mkMap.values());
  }
View Full Code Here

     * Override to return a map other than HashMap as the confirmed map.
     *
     * @return a map that is known to be valid
     */
    public MultiMap makeConfirmedMap() {
        return new MultiHashMap();
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections15.TestLinkedList

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.