Cytoscape 2.8.0 API

cytoscape.visual.customgraphic.impl.bitmap
Class URLImageCustomGraphics

java.lang.Object
  extended by cytoscape.visual.customgraphic.impl.AbstractDCustomGraphics
      extended by cytoscape.visual.customgraphic.impl.bitmap.URLImageCustomGraphics
All Implemented Interfaces:
CyCustomGraphics, Taggable

public class URLImageCustomGraphics
extends AbstractDCustomGraphics


Field Summary
 
Fields inherited from class cytoscape.visual.customgraphic.impl.AbstractDCustomGraphics
DELIMITER, displayName, fitRatio, height, id, layers, LIST_DELIMITER, parser, position, tags, width
 
Constructor Summary
URLImageCustomGraphics(Long id, String url)
           
URLImageCustomGraphics(String url)
           
URLImageCustomGraphics(String name, BufferedImage img)
           
 
Method Summary
 Image getRenderedImage()
          From layers of graphics objects, render scaled Image object.
 URL getSourceURL()
           
 Image resetImage()
           
 
Methods inherited from class cytoscape.visual.customgraphic.impl.AbstractDCustomGraphics
getDisplayName, getFitRatio, getHeight, getIdentifier, getLayers, getPosition, getTags, getWidth, setDisplayName, setFitRatio, setHeight, setPosition, setWidth, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLImageCustomGraphics

public URLImageCustomGraphics(String url)
                       throws IOException
Throws:
IOException

URLImageCustomGraphics

public URLImageCustomGraphics(Long id,
                              String url)
                       throws IOException
Throws:
IOException

URLImageCustomGraphics

public URLImageCustomGraphics(String name,
                              BufferedImage img)
Parameters:
name - - display name of this object. NOT UNIQUE!
img -
Method Detail

getRenderedImage

public Image getRenderedImage()
Description copied from interface: CyCustomGraphics
From layers of graphics objects, render scaled Image object. Usually done by Java2D low level code. Usually, the image returned by this method is used in GUI components (as icons).

Specified by:
getRenderedImage in interface CyCustomGraphics
Overrides:
getRenderedImage in class AbstractDCustomGraphics
Returns:
rendered image object.

resetImage

public Image resetImage()

getSourceURL

public URL getSourceURL()

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.