Package org.jungrapht.samples
Class VertexImageShaperDemo.DemoVertexIconTransformer<V>
- java.lang.Object
-
- org.jungrapht.samples.VertexImageShaperDemo.DemoVertexIconTransformer<V>
-
- Enclosing class:
- VertexImageShaperDemo
public static class VertexImageShaperDemo.DemoVertexIconTransformer<V> extends Object implements Function<V,Icon>
This class exists only to provide settings to turn on/off shapes and image fill in this demo.For a real application, just use
Functions.forMap(iconMap)
to provide aFunction<V, Icon>
.
-
-
Constructor Summary
Constructors Constructor Description DemoVertexIconTransformer(Map<V,Icon> iconMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Icon
apply(V v)
boolean
isFillImages()
boolean
isOutlineImages()
void
setFillImages(boolean fillImages)
void
setOutlineImages(boolean outlineImages)
-
-
-
Method Detail
-
isFillImages
public boolean isFillImages()
- Returns:
- Returns the fillImages.
-
setFillImages
public void setFillImages(boolean fillImages)
- Parameters:
fillImages
- The fillImages to set.
-
isOutlineImages
public boolean isOutlineImages()
-
setOutlineImages
public void setOutlineImages(boolean outlineImages)
-
-