cytoscape.visual.customgraphic.impl.vector
Class GradientLayerCustomGraphics
java.lang.Object
cytoscape.visual.customgraphic.impl.AbstractDCustomGraphics
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
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 |
paintFactory
protected PaintFactory paintFactory
bound
protected Shape bound
COLOR1
protected static final String COLOR1
- See Also:
- Constant Field Values
COLOR2
protected static final String COLOR2
- See Also:
- Constant Field Values
c1
protected final CustomGraphicsProperty<Color> c1
c2
protected final CustomGraphicsProperty<Color> c2
rendered
protected BufferedImage rendered
props
protected final Map<String,CustomGraphicsProperty<?>> props
GradientLayerCustomGraphics
public GradientLayerCustomGraphics(Long id,
String name)
getGraphicsProps
public Map<String,CustomGraphicsProperty<?>> getGraphicsProps()
- Specified by:
getGraphicsProps
in interface VectorCustomGraphics
renderImage
protected void renderImage(Graphics graphics)
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.
Copyright 2010 Cytoscape Consortium. All rights reserved.