zugvis
Class LineVis.DotRenderer

java.lang.Object
  extended by prefuse.render.AbstractShapeRenderer
      extended by zugvis.LineVis.DotRenderer
All Implemented Interfaces:
prefuse.render.Renderer
Enclosing class:
LineVis

public static class LineVis.DotRenderer
extends prefuse.render.AbstractShapeRenderer

This class is just a "dirty-trick" to draw dots into the visualization. It draws a dot for every visualitem at the position specified in the X2,Y2 fields of the item.


Field Summary
 
Fields inherited from class prefuse.render.AbstractShapeRenderer
m_manageBounds, m_transform, RENDER_TYPE_DRAW, RENDER_TYPE_DRAW_AND_FILL, RENDER_TYPE_FILL, RENDER_TYPE_NONE
 
Fields inherited from interface prefuse.render.Renderer
DEFAULT_GRAPHICS
 
Constructor Summary
LineVis.DotRenderer()
           
 
Method Summary
protected  void drawShape(java.awt.Graphics2D g, prefuse.visual.VisualItem item, java.awt.Shape shape)
          Draws a circle at the specified coordinates of the visualitem.
protected  java.awt.Shape getRawShape(prefuse.visual.VisualItem item)
          returns an ellipse at the position specified in the X2,Y2 field of the given visualitem
 
Methods inherited from class prefuse.render.AbstractShapeRenderer
getRenderType, getShape, getStroke, getTransform, locatePoint, render, setBounds, setManageBounds, setRenderType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineVis.DotRenderer

public LineVis.DotRenderer()
Method Detail

getRawShape

protected java.awt.Shape getRawShape(prefuse.visual.VisualItem item)
returns an ellipse at the position specified in the X2,Y2 field of the given visualitem

Specified by:
getRawShape in class prefuse.render.AbstractShapeRenderer

drawShape

protected void drawShape(java.awt.Graphics2D g,
                         prefuse.visual.VisualItem item,
                         java.awt.Shape shape)
Draws a circle at the specified coordinates of the visualitem. The color of the circle is determined by the highlightColor constant and the size of the circle is determined by the highlightRadius constant of the LineVis class.

Overrides:
drawShape in class prefuse.render.AbstractShapeRenderer