title: How to shape pickable verices?
body: <p>I am using JUNG to make a network diagram. I want to shape the vertices depending upon its type. The vertices are pickable and colored. The code for vertices so far is as under:</p>
  
  <pre><code>class VertexColors extends PickableVertexPaintTransformer&lt;Number&gt; {
      VertexColors(PickedInfo&lt;Number&gt; pi) {
          super(pi, Color.blue, Color.yellow);
      }
  
      public Paint transform(Number v) {
          if (pi.isPicked(v.intValue())) return picked_paint;
  
          return v.intValue()%2==1 ? Color.blue : Color.green;
      }
  }
  </code></pre>
  
  <p>I am using the following statement for each vertex:</p>
  
  <pre><code>vv.getRenderContext().setVertexFillPaintTransformer(new VertexColors(vv.getPickedVertexState()));
  </code></pre>
  
  <p>Now, I cannot find a way to shape the vertices while keeping them pickable and to wrap the vertices around their labels.</p>