org.grinvin.render

Class AnnotatedRenderer

Implemented Interfaces:
Renderer

public class AnnotatedRenderer
extends DefaultRenderer

An extension of DefaultRenderer that adds rendering of annotations.

Method Summary

static Renderer
getInstance()
Get the singleton instance of this renderer.
void
paint(Edge edge, double[] coordinates_first, double[] coordinates_second, boolean rollover, boolean selected, Graphics2D g2)
Paints the given edge onto the given graphics context, with annotations (when available).
void
paint(Vertex vertex, double[] coordinates, boolean rollover, boolean selected, Graphics2D g2)
Paints the given vertex onto the given graphics context, with annotations (when available).

Methods inherited from class org.grinvin.render.DefaultRenderer

getInstance, paint, paint

Method Details

getInstance

public static Renderer getInstance()
Get the singleton instance of this renderer.
Overrides:
getInstance in interface DefaultRenderer

paint

public void paint(Edge edge,
                  double[] coordinates_first,
                  double[] coordinates_second,
                  boolean rollover,
                  boolean selected,
                  Graphics2D g2)
Paints the given edge onto the given graphics context, with annotations (when available).
Specified by:
paint in interface Renderer
Overrides:
paint in interface DefaultRenderer

paint

public void paint(Vertex vertex,
                  double[] coordinates,
                  boolean rollover,
                  boolean selected,
                  Graphics2D g2)
Paints the given vertex onto the given graphics context, with annotations (when available).
Specified by:
paint in interface Renderer
Overrides:
paint in interface DefaultRenderer