org.embl.ebi.escience.scuflui.renderers
Class SeqVistaRenderer
java.lang.Object
org.embl.ebi.escience.scuflui.renderers.AbstractRenderer
org.embl.ebi.escience.scuflui.renderers.AbstractRenderer.ByMimeType
org.embl.ebi.escience.scuflui.renderers.SeqVistaRenderer
- All Implemented Interfaces:
- RendererSPI
public class SeqVistaRenderer
- extends AbstractRenderer.ByMimeType
Uses the SeqVista renderer to draw an EMBL or SwissProt sequence
|
Method Summary |
boolean |
canHandle(RendererRegistry renderers,
java.lang.Object userObject,
java.lang.String mimeType)
Make a decision about each mime type presented. |
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SeqVistaRenderer
public SeqVistaRenderer()
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.
- Returns:
- true if this is a terminal renderer, false otherwise
canHandle
public boolean canHandle(RendererRegistry renderers,
java.lang.Object userObject,
java.lang.String mimeType)
- Description copied from class:
AbstractRenderer.ByMimeType
- Make a decision about each mime type presented.
- Parameters:
renderers - the sibling renderersuserObject - the user data object to rendermimeType - one of the mime types associated with it
- Returns:
- true if we can handle this object with this mime type
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.
- Parameters:
renderers - the MimeTypeRendereRegistry to look up sibling
renderersdataThing - the object to render
- Returns:
- a JComponent for displaying the object, or null
- Throws:
RendererException