Package edu.uci.ics.jung.samples
Class PluggableRendererDemo.VertexShapeSizeAspect<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.decorators.AbstractVertexShapeTransformer<V>
-
- edu.uci.ics.jung.samples.PluggableRendererDemo.VertexShapeSizeAspect<V,E>
-
- All Implemented Interfaces:
com.google.common.base.Function<V,java.awt.Shape>,SettableVertexShapeTransformer<V>,java.util.function.Function<V,java.awt.Shape>
- Enclosing class:
- PluggableRendererDemo
private static final class PluggableRendererDemo.VertexShapeSizeAspect<V,E> extends AbstractVertexShapeTransformer<V> implements com.google.common.base.Function<V,java.awt.Shape>
Controls the shape, size, and aspect ratio for each vertex.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanfunny_shapesprotected Graph<V,E>graphprotected booleanscaleprotected booleanstretchprotected com.google.common.base.Function<V,java.lang.Double>voltages-
Fields inherited from class edu.uci.ics.jung.visualization.decorators.AbstractVertexShapeTransformer
DEFAULT_ASPECT_RATIO, DEFAULT_SIZE, factory, varf, vsf
-
-
Constructor Summary
Constructors Constructor Description VertexShapeSizeAspect(Graph<V,E> graphIn, com.google.common.base.Function<V,java.lang.Double> voltagesIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Shapeapply(V v)voidsetScaling(boolean scale)voidsetStretching(boolean stretch)voiduseFunnyShapes(boolean use)-
Methods inherited from class edu.uci.ics.jung.visualization.decorators.AbstractVertexShapeTransformer
setAspectRatioTransformer, setSizeTransformer
-
-