public static final class EdgeTransformer.WeightStroke
extends java.lang.Object
implements org.apache.commons.collections15.Transformer
Modifier and Type | Field and Description |
---|---|
static java.awt.Stroke |
basic
The basic stroke
|
static java.awt.Stroke |
dotted
The dotted stroke
|
protected ComponentGroupMultiGraph |
graph
The graph
|
static java.awt.Stroke |
heavy
The heavy stroke
|
static int |
MAX_EDGE_SIZE
The max edge size
|
static int |
MIN_EDGE_SIZE
The min edge size
|
protected int |
propFactor
The proportional factor (1<= proFactor<= 100)
|
protected boolean |
scale
If stroke scaling is enabled
|
protected int |
scaleRange
The scale range.
|
Constructor and Description |
---|
WeightStroke(ComponentGroupMultiGraph graph)
Creates a WeightStroke transformer for the graph.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isScaling() |
void |
setPropValue(int value) |
void |
setScaleRange(int scaleRange) |
void |
setScaling(boolean scale) |
java.lang.Object |
transform(java.lang.Object group)
Returns the stroke for the given message group.
|
public static final int MIN_EDGE_SIZE
public static final int MAX_EDGE_SIZE
public static final java.awt.Stroke basic
public static final java.awt.Stroke heavy
public static final java.awt.Stroke dotted
protected ComponentGroupMultiGraph graph
protected boolean scale
protected int scaleRange
protected int propFactor
public WeightStroke(ComponentGroupMultiGraph graph)
graph
- The graph.public java.lang.Object transform(java.lang.Object group)
transform
in interface org.apache.commons.collections15.Transformer
group
- The message 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 setPropValue(int value)
value
- The proportional factor to set.