|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biomoby.service.dashboard.renderers.AbstractRenderer
org.biomoby.service.dashboard.renderers.AbstractMobyRenderer
org.biomoby.service.dashboard.renderers.ICISPedigreeTree
public class ICISPedigreeTree
This is a very specific viewer (it understands just one specific Biomoby type - GCP_GermplasmPedigreeTree). I have included here, however, because it shows how a viewer can further ask for additional data using the same Biomoby service that created the initial data for this viewer.
| Field Summary |
|---|
| Fields inherited from interface org.biomoby.service.dashboard.renderers.Renderer |
|---|
CLASS, CLASS_NAME, DATA, DATA_CONTAINER, MIME_TYPE, MOBY_TYPE |
| Constructor Summary | |
|---|---|
ICISPedigreeTree()
|
|
| Method Summary | |
|---|---|
boolean |
canHandle(String criterion,
Object value)
Return true if this SPI can handle (render) data whose type complies with given value within given criterion. |
JComponent |
getComponent(DataContainer data)
Return a JComponent displaying (rendering) given data. |
boolean |
save2File(DataContainer data,
File file)
Does not provide any file saving facility. |
| Methods inherited from class org.biomoby.service.dashboard.renderers.AbstractRenderer |
|---|
getIcon, getName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ICISPedigreeTree()
| Method Detail |
|---|
public boolean canHandle(String criterion,
Object value)
Renderer
Any renderer should handle also a collection of objects that it
can handle - see examples in Renderer.getComponent(org.biomoby.service.dashboard.data.DataContainer) and Renderer.save2File(org.biomoby.service.dashboard.data.DataContainer, java.io.File).
canHandle in interface RenderercanHandle in class AbstractRenderercriterion - is a category of the value, e.g. "MIME-TYPE"value - is a value from the category criterion, e.g. "text/xml"
public JComponent getComponent(DataContainer data)
throws MobyException
Renderer
If it gets an array of data, it can always delegate their
accumulation to the CollectionRenderer by saying:
if (data.getData().getClass().isArray())
return new BoxCollectionRenderer (this).getComponent (data);
getComponent in interface RenderergetComponent in class AbstractRendererdata - to be rendered
MobyException - if called with wrong type of data
public boolean save2File(DataContainer data,
File file)
throws MobyException
save2File in interface Renderersave2File in class AbstractRendererMobyException - if saving was tried but failed
|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||