public class VertexIconAndShapeFunction extends DefaultVertexIconFunction implements VertexShapeFunction
Modifier and Type | Field and Description |
---|---|
protected VertexShapeFunction |
delegate |
protected java.util.Map |
shapeMap |
iconMap
BROKEN_IMAGE
Constructor and Description |
---|
VertexIconAndShapeFunction(VertexShapeFunction delegate) |
Modifier and Type | Method and Description |
---|---|
VertexShapeFunction |
getDelegate() |
java.awt.Shape |
getShape(Vertex v)
get the shape from the image.
|
void |
setDelegate(VertexShapeFunction delegate) |
getIcon, getIconMap, setIconMap
protected java.util.Map shapeMap
protected VertexShapeFunction delegate
public VertexIconAndShapeFunction(VertexShapeFunction delegate)
public VertexShapeFunction getDelegate()
public void setDelegate(VertexShapeFunction delegate)
delegate
- The delegate to set.public java.awt.Shape getShape(Vertex v)
getShape
in interface VertexShapeFunction