Cytoscape 2.8.0-alpha1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.visual.customgraphic.impl.vector
Class GradientLayerCustomGraphics

java.lang.Object
  extended by cytoscape.visual.customgraphic.impl.AbstractDCustomGraphics
      extended by cytoscape.visual.customgraphic.impl.vector.GradientLayerCustomGraphics
All Implemented Interfaces:
CyCustomGraphics, VectorCustomGraphics, Taggable
Direct Known Subclasses:
GradientOvalLayer, GradientRoundRectangleLayer

public abstract class GradientLayerCustomGraphics
extends AbstractDCustomGraphics
implements VectorCustomGraphics

Proof of concept code to generate Custom Graphics dynamically as vector graphics.

Author:
kono

Field Summary
 
Fields inherited from class cytoscape.visual.customgraphic.impl.AbstractDCustomGraphics
LIST_DELIMITER
 
Constructor Summary
GradientLayerCustomGraphics(Long id, String name)
           
 
Method Summary
 Map<String,CustomGraphicsProperty<?>> getGraphicsProps()
           
 Image getRenderedImage()
          From layers of graphics objects, render scaled Image object.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GradientLayerCustomGraphics

public GradientLayerCustomGraphics(Long id,
                                   String name)
Method Detail

getGraphicsProps

public Map<String,CustomGraphicsProperty<?>> getGraphicsProps()
Specified by:
getGraphicsProps in interface VectorCustomGraphics

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.

www.cytoscape.org