public class NullRenderer extends java.lang.Object implements Renderer
DEFAULT_GRAPHICS
Constructor and Description |
---|
NullRenderer() |
Modifier and Type | Method and Description |
---|---|
boolean |
locatePoint(java.awt.geom.Point2D p,
VisualItem item)
Returns true if the Point is located inside the extents of the item.
|
void |
render(java.awt.Graphics2D g,
VisualItem item)
Render item into a Graphics2D context.
|
void |
setBounds(VisualItem item)
Calculates and sets the bounding rectangle for an item.
|
public void render(java.awt.Graphics2D g, VisualItem item)
Renderer
render
in interface Renderer
g
- the Graphics2D contextitem
- the visual item to drawRenderer.render(java.awt.Graphics2D, prefuse.visual.VisualItem)
public boolean locatePoint(java.awt.geom.Point2D p, VisualItem item)
Renderer
locatePoint
in interface Renderer
p
- the point to test for containmentitem
- the item to test containment againstRenderer.locatePoint(java.awt.geom.Point2D, prefuse.visual.VisualItem)
public void setBounds(VisualItem item)
Renderer
setBounds
in interface Renderer
item
- the item to compute the bounding box forRenderer.setBounds(prefuse.visual.VisualItem)
Copyright ? 2013 Regents of the University of California