public static final class VertexTransformer.IconSize
extends java.lang.Object
implements org.apache.commons.collections15.Transformer
Modifier and Type | Field and Description |
---|---|
protected ComponentGroupMultiGraph |
graph
The graph
|
protected java.util.Map |
iconMap
The icon map to save transformed icons for performance reason
|
static int |
MAX_VERTEX_SIZE
The max vertex icon size
|
static int |
MIN_VERTEX_SIZE
The min vertex icon size
|
protected int |
propFactor
The proportional factor (1<= proFactor<= 100)
|
protected boolean |
scale
If icon scaling is enabled
|
protected int |
scaleRange
The scale range.
|
Constructor and Description |
---|
IconSize(ComponentGroupMultiGraph graph)
Creates a IconSize transformer for the graph.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isScaling() |
void |
setPropFactor(int value) |
void |
setScaleRange(int scaleRange) |
void |
setScaling(boolean scale) |
java.lang.Object |
transform(java.lang.Object group)
Returns the icon for the given agent group.
|
public static final int MIN_VERTEX_SIZE
public static final int MAX_VERTEX_SIZE
protected java.util.Map iconMap
protected boolean scale
protected int scaleRange
protected int propFactor
protected ComponentGroupMultiGraph graph
public IconSize(ComponentGroupMultiGraph graph)
graph
- The graph.public java.lang.Object transform(java.lang.Object group)
transform
in interface org.apache.commons.collections15.Transformer
group
- The agent group.public void setScaling(boolean scale)
scale
- true
if scaling ought to be enabled.public boolean isScaling()
true
if scaling is enabledpublic void setScaleRange(int scaleRange)
scaleRange
- The scale range to set.public void setPropFactor(int value)
value
- The proportional factor to set.