diva.graph.basic
Class BubbleRenderer

java.lang.Object
  extended by diva.graph.basic.BubbleRenderer
All Implemented Interfaces:
NodeRenderer

public class BubbleRenderer
extends Object
implements NodeRenderer

A factory which creates and returns a bubble given a node input to render.

Version:
$Revision: 1.2 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu), John Reekie (johnr@eecs.berkeley.edu)

Constructor Summary
BubbleRenderer()
          Create a renderer which renders bubbles white
BubbleRenderer(Paint fillPaint, Paint strokePaint, double size)
          Create a renderer which renders bubbles in the given fill paint, outlie paint, and size.
 
Method Summary
 Paint getFillPaint()
          Get the fill paint pattern of this figure.
 Paint getStrokePaint()
          Get the stroke paint pattern of this figure.
 Figure render(Object n)
          Return the rendered visual representation of this node.
 void setFillPaint(Paint p)
          Set the fill paint pattern of this figure.
 void setStrokePaint(Paint p)
          Set the stroke paint pattern of this figure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BubbleRenderer

public BubbleRenderer()
Create a renderer which renders bubbles white


BubbleRenderer

public BubbleRenderer(Paint fillPaint,
                      Paint strokePaint,
                      double size)
Create a renderer which renders bubbles in the given fill paint, outlie paint, and size.

Method Detail

getFillPaint

public Paint getFillPaint()
Get the fill paint pattern of this figure.


getStrokePaint

public Paint getStrokePaint()
Get the stroke paint pattern of this figure.


render

public Figure render(Object n)
Return the rendered visual representation of this node.

Specified by:
render in interface NodeRenderer

setFillPaint

public void setFillPaint(Paint p)
Set the fill paint pattern of this figure. The figure will be filled with this paint pattern. If no pattern is given, do not fill it.


setStrokePaint

public void setStrokePaint(Paint p)
Set the stroke paint pattern of this figure.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.