edu.uci.ics.jung.samples
Class VertexImageShaperDemo.DemoVertexIconShapeTransformer<V>

java.lang.Object
  extended by edu.uci.ics.jung.visualization.decorators.VertexIconShapeTransformer<V>
      extended by 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.


Field Summary
 
Fields inherited from class edu.uci.ics.jung.visualization.decorators.VertexIconShapeTransformer
delegate, iconMap, shapeMap
 
Constructor Summary
VertexImageShaperDemo.DemoVertexIconShapeTransformer(org.apache.commons.collections15.Transformer<V,Shape> delegate)
           
 
Method Summary
 boolean isShapeImages()
           
 void setShapeImages(boolean shapeImages)
           
 Shape transform(V v)
          get the shape from the image.
 
Methods inherited from class edu.uci.ics.jung.visualization.decorators.VertexIconShapeTransformer
getDelegate, getIconMap, getShapeMap, setDelegate, setIconMap, setShapeMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VertexImageShaperDemo.DemoVertexIconShapeTransformer

public VertexImageShaperDemo.DemoVertexIconShapeTransformer(org.apache.commons.collections15.Transformer<V,Shape> delegate)
Method Detail

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.