edu.uci.ics.jung.visualization
Class AbstractRenderer

java.lang.Object
  extended byedu.uci.ics.jung.visualization.AbstractRenderer
All Implemented Interfaces:
Renderer
Direct Known Subclasses:
SettableRenderer

public abstract class AbstractRenderer
extends java.lang.Object
implements Renderer

This abstract class structures much of the annoying bits of Renderers, allowing the user to simply override the important methods and move on.

Author:
danyelf

Constructor Summary
AbstractRenderer()
           
 
Method Summary
abstract  void paintEdge(java.awt.Graphics g, Edge e, int x1, int y1, int x2, int y2)
           
abstract  void paintVertex(java.awt.Graphics g, Vertex v, int x, int y)
           
 void setPickedKey(PickedInfo pk)
          This call allows a _Renderer to ask whether a vertex is picked or not.
 int wiggleRoomX()
           
 int wiggleRoomY()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRenderer

public AbstractRenderer()
Method Detail

paintEdge

public abstract void paintEdge(java.awt.Graphics g,
                               Edge e,
                               int x1,
                               int y1,
                               int x2,
                               int y2)
Specified by:
paintEdge in interface Renderer

paintVertex

public abstract void paintVertex(java.awt.Graphics g,
                                 Vertex v,
                                 int x,
                                 int y)
Specified by:
paintVertex in interface Renderer

setPickedKey

public void setPickedKey(PickedInfo pk)
Description copied from interface: Renderer
This call allows a _Renderer to ask whether a vertex is picked or not.

Specified by:
setPickedKey in interface Renderer

wiggleRoomX

public int wiggleRoomX()

wiggleRoomY

public int wiggleRoomY()