public static class FreeNodeLabelLayoutModel.ModelParameter extends Object
FreeNodeLabelLayoutModel
.
It represents every possible location in relation to the node. The point describes the offset of the label's center to the upper-left corner of the node.
setPoint(double, double)
Constructor and Description |
---|
ModelParameter()
Creates a new instance of
FreeNodeLabelLayoutModel.ModelParameter . |
ModelParameter(double dx,
double dy)
Creates a new instance of
FreeNodeLabelLayoutModel.ModelParameter with the given offset. |
Modifier and Type | Method and Description |
---|---|
YPoint |
getPoint()
Gets the offset of the label's center to the upper-left corner of the node.
|
void |
setPoint(double dx,
double dy)
Specifies the offset of the label's center to the upper-left corner of the node.
|
public ModelParameter()
FreeNodeLabelLayoutModel.ModelParameter
.
It has no offset, i.e., the upper-left corners of both node label and node are at the same location.
public ModelParameter(double dx, double dy)
FreeNodeLabelLayoutModel.ModelParameter
with the given offset.dx
- the horizontal offsetdy
- the vertical offsetpublic YPoint getPoint()
public void setPoint(double dx, double dy)
dx
- the horizontal offsetdy
- the vertical offset