View Javadoc
1   /*
2    * Created on Jul 16, 2004
3    *
4    * Copyright (c) 2004, The JUNG Authors 
5    *
6    * All rights reserved.
7    *
8    * This software is open-source under the BSD license; see either
9    * "license.txt" or
10   * https://github.com/jrtom/jung/blob/master/LICENSE for a description.
11   */
12  package edu.uci.ics.jung.visualization.decorators;
13  
14  import java.awt.Shape;
15  
16  import com.google.common.base.Function;
17  
18  /**
19   * 
20   * @author Joshua O'Madadhain
21   */
22  public class EllipseVertexShapeTransformer<V> extends AbstractVertexShapeTransformer<V>
23  	implements Function<V,Shape>
24  {
25      public EllipseVertexShapeTransformer() 
26      {
27      }
28      public EllipseVertexShapeTransformer(Function<V,Integer> vsf, Function<V,Float> varf)
29      {
30          super(vsf, varf);
31      }
32      
33      public Shape apply(V v)
34      {
35          return factory.getEllipse(v);
36      }
37  }