public class RotatedDiscreteEdgeLabelModel extends Object implements LabelModel
| Modifier and Type | Class and Description |
|---|---|
static class |
RotatedDiscreteEdgeLabelModel.RotatedDiscreteEdgeLabelModelParameter |
| Modifier and Type | Field and Description |
|---|---|
double |
angle |
boolean |
autoRotationEnabled |
int |
candidateMask |
static int |
CENTER
label placement near the middle of the edge, directly on the edge's path
|
static int |
CENTERED
allowed positions to the center of the edge's path
|
double |
distance |
static int |
HEAD
label placement near the middle of the edge, left/above the edge's path
|
RotatedDiscreteEdgeLabelModel.RotatedDiscreteEdgeLabelModelParameter |
parameter |
boolean |
positionRelativeToSegment |
static int |
SCENTER
label placement near the source, directly on the edge's path
|
static int |
SHEAD
label placement near the source, left/above the edge's path
|
static int |
SIX_POS
allowed positions to a set of six positions beside the edge path
|
static int |
STAIL
label placement near the source, right/below the edge's path
|
static int |
TAIL
label placement near the middle of the edge, right/below the edge's path
|
static int |
TCENTER
label placement near the target, directly on the edge's path
|
static int |
THEAD
label placement near the target, left/above the edge's path
|
static int |
THREE_CENTER
positions to a set of three positions directly on the edge's path
|
static int |
TTAIL
label placement near the target, right/below the edge's path
|
static int |
TWO_POS
allowed positions to the two locations near the center of the edge, beside the edge path
|
Y| Constructor and Description |
|---|
RotatedDiscreteEdgeLabelModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
writeParameter(ElementWriter w) |
void |
writeTo(ElementWriter w) |
public static final int CENTER
public static final int CENTERED
public static final int HEAD
public static final int SCENTER
public static final int SHEAD
public static final int SIX_POS
public static final int STAIL
public static final int TAIL
public static final int TCENTER
public static final int THEAD
public static final int THREE_CENTER
public static final int TTAIL
public static final int TWO_POS
public boolean autoRotationEnabled
public double angle
public double distance
public int candidateMask
public boolean positionRelativeToSegment
public RotatedDiscreteEdgeLabelModel.RotatedDiscreteEdgeLabelModelParameter parameter
public void writeTo(ElementWriter w)
writeTo in interface LeafRenderablepublic void writeParameter(ElementWriter w)
writeParameter in interface LabelModelCopyright © 2016. All rights reserved.