Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## samples.preview_new_graphdraw
Class OldToNewRenderer

    java.lang.Object
      samples.preview_new_graphdraw.OldToNewRenderer

All Implemented Interfaces:
  EdgeRenderer, VertexRenderer

public class OldToNewRenderer
extends Object
implements VertexRenderer, EdgeRenderer

This utility class converts your favorite old-style renderer into the newfangled NewGraphDraw VertexRenderer and EdgeRenderer.

Author:
  danyelf

Constructor Summary
`OldToNewRenderer(Renderer r)`

Method Summary
`void` | `renderEdge(Graphics g, VisEdge ec)`
`void` | `renderVertex(Graphics g, VisVertex vc)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### OldToNewRenderer

    public OldToNewRenderer(Renderer r)

Method Detail

### renderVertex

    public void renderVertex(Graphics g,
                             VisVertex vc)

  Specified by:
    `renderVertex` in interface `VertexRenderer`
  See Also:
    `VertexRenderer.renderVertex(java.awt.Graphics, samples.preview_new_graphdraw.VisVertex)`

### renderEdge

    public void renderEdge(Graphics g,
                           VisEdge ec)

  Specified by:
    `renderEdge` in interface `EdgeRenderer`
  See Also:
    `EdgeRenderer.renderEdge(java.awt.Graphics, samples.preview_new_graphdraw.VisEdge)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD