samples.graph
Class SWTVertexImageShaperDemo.DemoVertexImageShapeTransformer<V>
java.lang.Object
edu.uci.ics.jung.visualization.swt.decorators.VertexImageShapeTransformer<V>
samples.graph.SWTVertexImageShaperDemo.DemoVertexImageShapeTransformer<V>
- All Implemented Interfaces:
- org.apache.commons.collections15.Transformer<V,Shape>
- Enclosing class:
- SWTVertexImageShaperDemo
public static class SWTVertexImageShaperDemo.DemoVertexImageShapeTransformer<V>
- extends VertexImageShapeTransformer<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 |
SWTVertexImageShaperDemo.DemoVertexImageShapeTransformer
public SWTVertexImageShaperDemo.DemoVertexImageShapeTransformer(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:
VertexImageShapeTransformer
- 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 VertexImageShapeTransformer<V>
Copyright © 2007. All Rights Reserved.