net.sourceforge.taverna.scuflui.renderers
Class SVGRenderer

java.lang.Object
  extended by org.embl.ebi.escience.scuflui.renderers.AbstractRenderer
      extended by org.embl.ebi.escience.scuflui.renderers.AbstractRenderer.ByMimeType
          extended by org.embl.ebi.escience.scuflui.renderers.AbstractRenderer.ByPattern
              extended by net.sourceforge.taverna.scuflui.renderers.SVGRenderer
All Implemented Interfaces:
RendererSPI

public class SVGRenderer
extends AbstractRenderer.ByPattern
implements RendererSPI

This class renders SVG Documents. Last edited by $Author: stain $

Version:
$Revision: 1.5 $
Author:
Mark

Nested Class Summary
 
Nested classes/interfaces inherited from class org.embl.ebi.escience.scuflui.renderers.AbstractRenderer
AbstractRenderer.ByJavaClass, AbstractRenderer.ByMimeType, AbstractRenderer.ByPattern, AbstractRenderer.BySemanticType
 
Constructor Summary
SVGRenderer()
           
 
Method Summary
 javax.swing.JComponent getComponent(RendererRegistry renderers, DataThing dataThing)
          Return a JComponent that renders this object that proports to have a particular mime type.
 boolean isTerminal()
          Discover if this is a terminal renderer.
 
Methods inherited from class org.embl.ebi.escience.scuflui.renderers.AbstractRenderer.ByPattern
getPattern
 
Methods inherited from class org.embl.ebi.escience.scuflui.renderers.AbstractRenderer.ByMimeType
canHandle
 
Methods inherited from class org.embl.ebi.escience.scuflui.renderers.AbstractRenderer
getIcon, getName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.embl.ebi.escience.scuflui.spi.RendererSPI
canHandle, getIcon, getName
 

Constructor Detail

SVGRenderer

public SVGRenderer()
Method Detail

isTerminal

public boolean isTerminal()
Description copied from interface: RendererSPI
Discover if this is a terminal renderer. A renderer is terminal if it renders the given DataThing. It is not terminal if it first calculates some property of that DataThing that may potentially lead to some other non-terminal Renderer being used.

Specified by:
isTerminal in interface RendererSPI
Returns:
true if this is a terminal renderer, false otherwise
See Also:
RendererSPI.isTerminal()

getComponent

public javax.swing.JComponent getComponent(RendererRegistry renderers,
                                           DataThing dataThing)
                                    throws RendererException
Description copied from interface: RendererSPI
Return a JComponent that renders this object that proports to have a particular mime type. If canHandle() returns true, then getComponent() must not return null.

Specified by:
getComponent in interface RendererSPI
Parameters:
renderers - the MimeTypeRendereRegistry to look up sibling renderers
dataThing - the object to render
Returns:
a JComponent for displaying the object, or null
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
RendererException
See Also:
RendererSPI.getComponent(RendererRegistry, org.embl.ebi.escience.baclava.DataThing)