public class VertexIconShapeTransformer<V> extends Object implements com.google.common.base.Function<V,Shape>
Modifier and Type | Field and Description |
---|---|
protected com.google.common.base.Function<V,Shape> |
delegate |
protected Map<V,Icon> |
iconMap |
protected Map<Image,Shape> |
shapeMap |
Constructor and Description |
---|
VertexIconShapeTransformer(com.google.common.base.Function<V,Shape> delegate)
Creates an instance with the specified delegate.
|
Modifier and Type | Method and Description |
---|---|
Shape |
apply(V v)
get the shape from the image.
|
com.google.common.base.Function<V,Shape> |
getDelegate() |
Map<V,Icon> |
getIconMap() |
Map<Image,Shape> |
getShapeMap() |
void |
setDelegate(com.google.common.base.Function<V,Shape> delegate) |
void |
setIconMap(Map<V,Icon> iconMap) |
void |
setShapeMap(Map<Image,Shape> shapeMap) |
public com.google.common.base.Function<V,Shape> getDelegate()
public void setDelegate(com.google.common.base.Function<V,Shape> delegate)
delegate
- The delegate to set.public Shape apply(V v)
Copyright © 2015. All rights reserved.