cytoscape.visual.customgraphic.impl.bitmap
Class URLImageCustomGraphics
java.lang.Object
cytoscape.visual.customgraphic.impl.AbstractDCustomGraphics
cytoscape.visual.customgraphic.impl.bitmap.URLImageCustomGraphics
- All Implemented Interfaces:
- CyCustomGraphics, Taggable
public class URLImageCustomGraphics
- extends AbstractDCustomGraphics
Fields inherited from class cytoscape.visual.customgraphic.impl.AbstractDCustomGraphics |
DELIMITER, displayName, fitRatio, height, id, layers, LIST_DELIMITER, parser, position, tags, width |
Methods inherited from class cytoscape.visual.customgraphic.impl.AbstractDCustomGraphics |
getDisplayName, getFitRatio, getHeight, getIdentifier, getLayers, getPosition, getTags, getWidth, setDisplayName, setFitRatio, setHeight, setPosition, setWidth, toString |
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
-
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()
Copyright 2010 Cytoscape Consortium. All rights reserved.