edu.uci.ics.jung.samples
Class VertexImageShaperDemo.DemoVertexIconShapeTransformer<V>
java.lang.Object
edu.uci.ics.jung.visualization.decorators.VertexIconShapeTransformer<V>
edu.uci.ics.jung.samples.VertexImageShaperDemo.DemoVertexIconShapeTransformer<V>
- All Implemented Interfaces:
- org.apache.commons.collections15.Transformer<V,Shape>
- Enclosing class:
- VertexImageShaperDemo
public static class VertexImageShaperDemo.DemoVertexIconShapeTransformer<V>
- extends VertexIconShapeTransformer<V>
this class exists only to provide settings to turn on/off shapes and image fill
in this demo.
In a real application, use VertexIconShapeTransformer instead.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VertexImageShaperDemo.DemoVertexIconShapeTransformer
public VertexImageShaperDemo.DemoVertexIconShapeTransformer(org.apache.commons.collections15.Transformer<V,Shape> delegate)
isShapeImages
public boolean isShapeImages()
- Returns:
- Returns the shapeImages.
setShapeImages
public void setShapeImages(boolean shapeImages)
- Parameters:
shapeImages
- The shapeImages to set.
transform
public Shape transform(V v)
- Description copied from class:
VertexIconShapeTransformer
- get the shape from the image. If not available, get
the shape from the delegate VertexShapeFunction
- Specified by:
transform
in interface org.apache.commons.collections15.Transformer<V,Shape>
- Overrides:
transform
in class VertexIconShapeTransformer<V>
Copyright © 2009. All Rights Reserved.