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 boolean
funny_shapes
protected Graph<V,E>
graph
protected boolean
scale
protected boolean
stretch
protected 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.Shape
apply(V v)
void
setScaling(boolean scale)
void
setStretching(boolean stretch)
void
useFunnyShapes(boolean use)
-
Methods inherited from class edu.uci.ics.jung.visualization.decorators.AbstractVertexShapeTransformer
setAspectRatioTransformer, setSizeTransformer
-
-