public class EdgeLabel extends AbstractBaseLabel implements LeafRenderable, YedConstants
| Modifier and Type | Field and Description |
|---|---|
boolean |
autoFlippingLabel |
Double |
distance |
Double |
ratio |
alignment, autoSizePolicy, backgroundColor, bottomInset, fontFamily, fontSize, fontStyle, height, leftInset, lineColor, modelName, modelPosition, rightInset, rotationAngle, text, textColor, topInset, underlinedText, visible, width, x, yY| Modifier and Type | Method and Description |
|---|---|
static EdgeLabel |
centered(String text) |
void |
setLabelModel(LabelModel labelModel) |
static EdgeLabel |
sourceCenter(String text) |
static EdgeLabel |
sourceHead(String text) |
static EdgeLabel |
targetCenter(String text) |
static EdgeLabel |
targetHead(String text) |
static EdgeLabel |
withModelAndPosition(String text,
ModelName modelName,
ModelPosition modelPosition) |
void |
writeTo(ElementWriter w) |
writerAttributespublic boolean autoFlippingLabel
public Double distance
public Double ratio
public EdgeLabel()
public EdgeLabel(String text)
public void setLabelModel(LabelModel labelModel)
public void writeTo(ElementWriter w)
writeTo in interface LeafRenderablepublic static EdgeLabel withModelAndPosition(String text, ModelName modelName, ModelPosition modelPosition)
Copyright © 2016. All rights reserved.